static void qmp_input_start_list(Visitor *v, const char *name,

                                 GenericList **list, size_t size, Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

    QObject *qobj = qmp_input_get_object(qiv, name, true, errp);

    const QListEntry *entry;



    if (!qobj) {

        return;

    }

    if (qobject_type(qobj) != QTYPE_QLIST) {

        if (list) {

            *list = NULL;

        }

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "list");

        return;

    }



    entry = qmp_input_push(qiv, qobj, list, errp);

    if (list) {

        if (entry) {

            *list = g_malloc0(size);

        } else {

            *list = NULL;

        }

    }

}

static void qmp_input_start_list(Visitor *v, const char *name,

                                 GenericList **list, size_t size, Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

    QObject *qobj = qmp_input_get_object(qiv, name, true, errp);

    const QListEntry *entry;



    if (!qobj) {

        return;

    }

    if (qobject_type(qobj) != QTYPE_QLIST) {

        if (list) {

            *list = NULL;

        }

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "list");

        return;

    }



    entry = qmp_input_push(qiv, qobj, list, errp);

    if (list) {

        if (entry) {

            *list = g_malloc0(size);

        } else {

            *list = NULL;

        }

    }

}

static void FUNC_0(Visitor *VAR_0, const char *VAR_1,

                                 GenericList **VAR_2, size_t VAR_3, Error **VAR_4)

{

    QmpInputVisitor *qiv = to_qiv(VAR_0);

    QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_4);

    const QListEntry *VAR_5;



    if (!qobj) {

        return;

    }

    if (qobject_type(qobj) != QTYPE_QLIST) {

        if (VAR_2) {

            *VAR_2 = NULL;

        }

        error_setg(VAR_4, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",

                   "VAR_2");

        return;

    }



    VAR_5 = qmp_input_push(qiv, qobj, VAR_2, VAR_4);

    if (VAR_2) {

        if (VAR_5) {

            *VAR_2 = g_malloc0(VAR_3);

        } else {

            *VAR_2 = NULL;

        }

    }

}

static void FUNC_0(Visitor *VAR_0, const char *VAR_1,
GenericList **VAR_2, size_t VAR_3, Error **VAR_4)
{ QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_4); const QListEntry *VAR_5; if (!qobj) { return; } if (qobject_type(qobj) != QTYPE_QLIST) { if (VAR_2) { *VAR_2 = NULL; } error_setg(VAR_4, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",
"VAR_2"); return; } VAR_5 = qmp_input_push(qiv, qobj, VAR_2, VAR_4); if (VAR_2) { if (VAR_5) { *VAR_2 = g_malloc0(VAR_3); } else { *VAR_2 = NULL; } } }