static const QObject *qmp_input_get_object(QmpInputVisitor *qiv,

                                           const char *name)

{

    const QObject *qobj;



    if (qiv->nb_stack == 0) {

        qobj = qiv->obj;

    } else {

        qobj = qiv->stack[qiv->nb_stack - 1].obj;

    }



    if (name && qobject_type(qobj) == QTYPE_QDICT) {

        return qdict_get(qobject_to_qdict(qobj), name);

    } else if (qiv->nb_stack > 0 && qobject_type(qobj) == QTYPE_QLIST) {

        return qlist_entry_obj(qiv->stack[qiv->nb_stack - 1].entry);

    }



    return qobj;

}

static const QObject *qmp_input_get_object(QmpInputVisitor *qiv,

                                           const char *name)

{

    const QObject *qobj;



    if (qiv->nb_stack == 0) {

        qobj = qiv->obj;

    } else {

        qobj = qiv->stack[qiv->nb_stack - 1].obj;

    }



    if (name && qobject_type(qobj) == QTYPE_QDICT) {

        return qdict_get(qobject_to_qdict(qobj), name);

    } else if (qiv->nb_stack > 0 && qobject_type(qobj) == QTYPE_QLIST) {

        return qlist_entry_obj(qiv->stack[qiv->nb_stack - 1].entry);

    }



    return qobj;

}

    if (name && qobject_type(qobj) == QTYPE_QDICT) {         return qdict_get(qobject_to_qdict(qobj), name);     } else if (qiv->nb_stack > 0 && qobject_type(qobj) == QTYPE_QLIST) {         return qlist_entry_obj(qiv->stack[qiv->nb_stack - 1].entry);
static const QObject *FUNC_0(QmpInputVisitor *qiv,

                                           const char *name)

{

    const QObject *VAR_0;



    if (qiv->nb_stack == 0) {

        VAR_0 = qiv->obj;

    } else {

        VAR_0 = qiv->stack[qiv->nb_stack - 1].obj;

    }



    if (name && qobject_type(VAR_0) == QTYPE_QDICT) {

        return qdict_get(qobject_to_qdict(VAR_0), name);

    } else if (qiv->nb_stack > 0 && qobject_type(VAR_0) == QTYPE_QLIST) {

        return qlist_entry_obj(qiv->stack[qiv->nb_stack - 1].entry);

    }



    return VAR_0;

}

static const QObject *FUNC_0(QmpInputVisitor *qiv,
const char *name)
{ const QObject *VAR_0; if (qiv->nb_stack == 0) { VAR_0 = qiv->obj; } else { VAR_0 = qiv->stack[qiv->nb_stack - 1].obj; } if (name && qobject_type(VAR_0) == QTYPE_QDICT) { return qdict_get(qobject_to_qdict(VAR_0), name); } else if (qiv->nb_stack > 0 && qobject_type(VAR_0) == QTYPE_QLIST) { return qlist_entry_obj(qiv->stack[qiv->nb_stack - 1].entry); } return VAR_0; }