static void qmp_input_type_number(Visitor *v, double *obj, const char *name,

                                  Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

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



    if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&

        qobject_type(qobj) != QTYPE_QINT)) {

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

                   "number");

        return;

    }



    if (qobject_type(qobj) == QTYPE_QINT) {

        *obj = qint_get_int(qobject_to_qint(qobj));

    } else {

        *obj = qfloat_get_double(qobject_to_qfloat(qobj));

    }

}

static void qmp_input_type_number(Visitor *v, double *obj, const char *name,

                                  Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

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



    if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&

        qobject_type(qobj) != QTYPE_QINT)) {

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

                   "number");

        return;

    }



    if (qobject_type(qobj) == QTYPE_QINT) {

        *obj = qint_get_int(qobject_to_qint(qobj));

    } else {

        *obj = qfloat_get_double(qobject_to_qfloat(qobj));

    }

}

    QObject *qobj = qmp_input_get_object(qiv, name, true);     if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&         qobject_type(qobj) != QTYPE_QINT)) {         error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",                    "number");     if (qobject_type(qobj) == QTYPE_QINT) {         *obj = qint_get_int(qobject_to_qint(qobj));     } else {
static void FUNC_0(Visitor *VAR_0, double *VAR_1, const char *VAR_2,

                                  Error **VAR_3)

{

    QmpInputVisitor *qiv = to_qiv(VAR_0);

    QObject *qobj = qmp_input_get_object(qiv, VAR_2, true);



    if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&

        qobject_type(qobj) != QTYPE_QINT)) {

        error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_2 ? VAR_2 : "null",

                   "number");

        return;

    }



    if (qobject_type(qobj) == QTYPE_QINT) {

        *VAR_1 = qint_get_int(qobject_to_qint(qobj));

    } else {

        *VAR_1 = qfloat_get_double(qobject_to_qfloat(qobj));

    }

}

static void FUNC_0(Visitor *VAR_0, double *VAR_1, const char *VAR_2,
Error **VAR_3)
{ QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_input_get_object(qiv, VAR_2, true); if (!qobj || (qobject_type(qobj) != QTYPE_QFLOAT &&
qobject_type(qobj) != QTYPE_QINT)) { error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_2 ? VAR_2 : "null",
"number"); return; } if (qobject_type(qobj) == QTYPE_QINT) { *VAR_1 = qint_get_int(qobject_to_qint(qobj)); } else { *VAR_1 = qfloat_get_double(qobject_to_qfloat(qobj)); } }