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

{

    Error *errp = NULL;



    qmp_cont(&errp);

    if (error_is_set(&errp)) {

        if (error_is_type(errp, QERR_DEVICE_ENCRYPTED)) {

            const char *device;



            /* The device is encrypted. Ask the user for the password

               and retry */



            device = error_get_field(errp, "device");

            assert(device != NULL);



            monitor_read_block_device_key(mon, device, hmp_cont_cb, mon);

            error_free(errp);

            return;

        }

        hmp_handle_error(mon, &errp);

    }

}

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

{

    Error *errp = NULL;



    qmp_cont(&errp);

    if (error_is_set(&errp)) {

        if (error_is_type(errp, QERR_DEVICE_ENCRYPTED)) {

            const char *device;



            





            device = error_get_field(errp, "device");

            assert(device != NULL);



            monitor_read_block_device_key(mon, device, hmp_cont_cb, mon);

            error_free(errp);

            return;

        }

        hmp_handle_error(mon, &errp);

    }

}

void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)

{

    Error *errp = NULL;



    qmp_cont(&errp);

    if (error_is_set(&errp)) {

        if (error_is_type(errp, QERR_DEVICE_ENCRYPTED)) {

            const char *VAR_2;



            





            VAR_2 = error_get_field(errp, "VAR_2");

            assert(VAR_2 != NULL);



            monitor_read_block_device_key(VAR_0, VAR_2, hmp_cont_cb, VAR_0);

            error_free(errp);

            return;

        }

        hmp_handle_error(VAR_0, &errp);

    }

}

void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{ Error *errp = NULL; qmp_cont(&errp); if (error_is_set(&errp)) { if (error_is_type(errp, QERR_DEVICE_ENCRYPTED)) { const char *VAR_2; VAR_2 = error_get_field(errp, "VAR_2"); assert(VAR_2 != NULL); monitor_read_block_device_key(VAR_0, VAR_2, hmp_cont_cb, VAR_0); error_free(errp); return; } hmp_handle_error(VAR_0, &errp); } }