static void handle_user_command(Monitor *mon, const char *cmdline)

{

    QDict *qdict;

    const mon_cmd_t *cmd;



    qdict = qdict_new();



    cmd = monitor_parse_command(mon, cmdline, qdict);

    if (!cmd)

        goto out;



    if (monitor_handler_is_async(cmd)) {

        user_async_cmd_handler(mon, cmd, qdict);

    } else if (monitor_handler_ported(cmd)) {

        monitor_call_handler(mon, cmd, qdict);

    } else {

        cmd->mhandler.cmd(mon, qdict);

    }



    if (monitor_has_error(mon))

        monitor_print_error(mon);



out:

    QDECREF(qdict);

}

static void handle_user_command(Monitor *mon, const char *cmdline)

{

    QDict *qdict;

    const mon_cmd_t *cmd;



    qdict = qdict_new();



    cmd = monitor_parse_command(mon, cmdline, qdict);

    if (!cmd)

        goto out;



    if (monitor_handler_is_async(cmd)) {

        user_async_cmd_handler(mon, cmd, qdict);

    } else if (monitor_handler_ported(cmd)) {

        monitor_call_handler(mon, cmd, qdict);

    } else {

        cmd->mhandler.cmd(mon, qdict);

    }



    if (monitor_has_error(mon))

        monitor_print_error(mon);



out:

    QDECREF(qdict);

}

static void FUNC_0(Monitor *VAR_0, const char *VAR_1)

{

    QDict *qdict;

    const mon_cmd_t *VAR_2;



    qdict = qdict_new();



    VAR_2 = monitor_parse_command(VAR_0, VAR_1, qdict);

    if (!VAR_2)

        goto out;



    if (monitor_handler_is_async(VAR_2)) {

        user_async_cmd_handler(VAR_0, VAR_2, qdict);

    } else if (monitor_handler_ported(VAR_2)) {

        monitor_call_handler(VAR_0, VAR_2, qdict);

    } else {

        VAR_2->mhandler.VAR_2(VAR_0, qdict);

    }



    if (monitor_has_error(VAR_0))

        monitor_print_error(VAR_0);



out:

    QDECREF(qdict);

}

static void FUNC_0(Monitor *VAR_0, const char *VAR_1)
{ QDict *qdict; const mon_cmd_t *VAR_2; qdict = qdict_new(); VAR_2 = monitor_parse_command(VAR_0, VAR_1, qdict); if (!VAR_2)
goto out; if (monitor_handler_is_async(VAR_2)) { user_async_cmd_handler(VAR_0, VAR_2, qdict); } else if (monitor_handler_ported(VAR_2)) { monitor_call_handler(VAR_0, VAR_2, qdict); } else { VAR_2->mhandler.VAR_2(VAR_0, qdict); } if (monitor_has_error(VAR_0))
monitor_print_error(VAR_0); out:
QDECREF(qdict); }