static void dump_iterate(DumpState *s, Error **errp)

{

    GuestPhysBlock *block;

    int64_t size;

    int ret;

    Error *local_err = NULL;



    while (1) {

        block = s->next_block;



        size = block->target_end - block->target_start;

        if (s->has_filter) {

            size -= s->start;

            if (s->begin + s->length < block->target_end) {

                size -= block->target_end - (s->begin + s->length);

            }

        }

        write_memory(s, block, s->start, size, &local_err);

        if (local_err) {

            error_propagate(errp, local_err);

            return;

        }



        ret = get_next_block(s, block);

        if (ret == 1) {

            dump_completed(s);

        }

    }

}

static void dump_iterate(DumpState *s, Error **errp)

{

    GuestPhysBlock *block;

    int64_t size;

    int ret;

    Error *local_err = NULL;



    while (1) {

        block = s->next_block;



        size = block->target_end - block->target_start;

        if (s->has_filter) {

            size -= s->start;

            if (s->begin + s->length < block->target_end) {

                size -= block->target_end - (s->begin + s->length);

            }

        }

        write_memory(s, block, s->start, size, &local_err);

        if (local_err) {

            error_propagate(errp, local_err);

            return;

        }



        ret = get_next_block(s, block);

        if (ret == 1) {

            dump_completed(s);

        }

    }

}

    int ret;     while (1) {         ret = get_next_block(s, block);         if (ret == 1) {             dump_completed(s);
static void FUNC_0(DumpState *VAR_0, Error **VAR_1)

{

    GuestPhysBlock *block;

    int64_t size;

    int VAR_2;

    Error *local_err = NULL;



    while (1) {

        block = VAR_0->next_block;



        size = block->target_end - block->target_start;

        if (VAR_0->has_filter) {

            size -= VAR_0->start;

            if (VAR_0->begin + VAR_0->length < block->target_end) {

                size -= block->target_end - (VAR_0->begin + VAR_0->length);

            }

        }

        write_memory(VAR_0, block, VAR_0->start, size, &local_err);

        if (local_err) {

            error_propagate(VAR_1, local_err);

            return;

        }



        VAR_2 = get_next_block(VAR_0, block);

        if (VAR_2 == 1) {

            dump_completed(VAR_0);

        }

    }

}

static void FUNC_0(DumpState *VAR_0, Error **VAR_1)
{ GuestPhysBlock *block; int64_t size; int VAR_2; Error *local_err = NULL; while (1) { block = VAR_0->next_block; size = block->target_end - block->target_start; if (VAR_0->has_filter) { size -= VAR_0->start; if (VAR_0->begin + VAR_0->length < block->target_end) { size -= block->target_end - (VAR_0->begin + VAR_0->length); } } write_memory(VAR_0, block, VAR_0->start, size, &local_err); if (local_err) { error_propagate(VAR_1, local_err); return; } VAR_2 = get_next_block(VAR_0, block); if (VAR_2 == 1) { dump_completed(VAR_0); } } }