void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)

{

    Error *errp = NULL;

    int paging = qdict_get_try_bool(qdict, "paging", 0);

    const char *file = qdict_get_str(qdict, "filename");

    bool has_begin = qdict_haskey(qdict, "begin");

    bool has_length = qdict_haskey(qdict, "length");

    int64_t begin = 0;

    int64_t length = 0;

    char *prot;



    if (has_begin) {

        begin = qdict_get_int(qdict, "begin");

    }

    if (has_length) {

        length = qdict_get_int(qdict, "length");

    }



    prot = g_strconcat("file:", file, NULL);



    qmp_dump_guest_memory(paging, prot, has_begin, begin, has_length, length,

                          &errp);

    hmp_handle_error(mon, &errp);

    g_free(prot);

}

void hmp_dump_guest_memory(Monitor *mon, const QDict *qdict)

{

    Error *errp = NULL;

    int paging = qdict_get_try_bool(qdict, "paging", 0);

    const char *file = qdict_get_str(qdict, "filename");

    bool has_begin = qdict_haskey(qdict, "begin");

    bool has_length = qdict_haskey(qdict, "length");

    int64_t begin = 0;

    int64_t length = 0;

    char *prot;



    if (has_begin) {

        begin = qdict_get_int(qdict, "begin");

    }

    if (has_length) {

        length = qdict_get_int(qdict, "length");

    }



    prot = g_strconcat("file:", file, NULL);



    qmp_dump_guest_memory(paging, prot, has_begin, begin, has_length, length,

                          &errp);

    hmp_handle_error(mon, &errp);

    g_free(prot);

}

                          &errp);
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)

{

    Error *errp = NULL;

    int VAR_2 = qdict_get_try_bool(VAR_1, "VAR_2", 0);

    const char *VAR_3 = qdict_get_str(VAR_1, "filename");

    bool has_begin = qdict_haskey(VAR_1, "begin");

    bool has_length = qdict_haskey(VAR_1, "length");

    int64_t begin = 0;

    int64_t length = 0;

    char *VAR_4;



    if (has_begin) {

        begin = qdict_get_int(VAR_1, "begin");

    }

    if (has_length) {

        length = qdict_get_int(VAR_1, "length");

    }



    VAR_4 = g_strconcat("VAR_3:", VAR_3, NULL);



    qmp_dump_guest_memory(VAR_2, VAR_4, has_begin, begin, has_length, length,

                          &errp);

    hmp_handle_error(VAR_0, &errp);

    g_free(VAR_4);

}

void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{ Error *errp = NULL; int VAR_2 = qdict_get_try_bool(VAR_1, "VAR_2", 0); const char *VAR_3 = qdict_get_str(VAR_1, "filename"); bool has_begin = qdict_haskey(VAR_1, "begin"); bool has_length = qdict_haskey(VAR_1, "length"); int64_t begin = 0; int64_t length = 0; char *VAR_4; if (has_begin) { begin = qdict_get_int(VAR_1, "begin"); } if (has_length) { length = qdict_get_int(VAR_1, "length"); } VAR_4 = g_strconcat("VAR_3:", VAR_3, NULL); qmp_dump_guest_memory(VAR_2, VAR_4, has_begin, begin, has_length, length,
&errp); hmp_handle_error(VAR_0, &errp); g_free(VAR_4); }