static int get_next_block(DumpState *s, RAMBlock *block)

{

    while (1) {

        block = QTAILQ_NEXT(block, next);

        if (!block) {

            /* no more block */

            return 1;

        }



        s->start = 0;

        s->block = block;

        if (s->has_filter) {

            if (block->offset >= s->begin + s->length ||

                block->offset + block->length <= s->begin) {

                /* This block is out of the range */

                continue;

            }



            if (s->begin > block->offset) {

                s->start = s->begin - block->offset;

            }

        }



        return 0;

    }

}

static int get_next_block(DumpState *s, RAMBlock *block)

{

    while (1) {

        block = QTAILQ_NEXT(block, next);

        if (!block) {

            

            return 1;

        }



        s->start = 0;

        s->block = block;

        if (s->has_filter) {

            if (block->offset >= s->begin + s->length ||

                block->offset + block->length <= s->begin) {

                

                continue;

            }



            if (s->begin > block->offset) {

                s->start = s->begin - block->offset;

            }

        }



        return 0;

    }

}

            if (block->offset >= s->begin + s->length ||                 block->offset + block->length <= s->begin) { static int get_next_block(DumpState *s, RAMBlock *block)         s->block = block;             if (block->offset >= s->begin + s->length ||                 block->offset + block->length <= s->begin) {             if (s->begin > block->offset) {                 s->start = s->begin - block->offset;         s->block = block;
static int FUNC_0(DumpState *VAR_0, RAMBlock *VAR_1)

{

    while (1) {

        VAR_1 = QTAILQ_NEXT(VAR_1, next);

        if (!VAR_1) {

            

            return 1;

        }



        VAR_0->start = 0;

        VAR_0->VAR_1 = VAR_1;

        if (VAR_0->has_filter) {

            if (VAR_1->offset >= VAR_0->begin + VAR_0->length ||

                VAR_1->offset + VAR_1->length <= VAR_0->begin) {

                

                continue;

            }



            if (VAR_0->begin > VAR_1->offset) {

                VAR_0->start = VAR_0->begin - VAR_1->offset;

            }

        }



        return 0;

    }

}

static int FUNC_0(DumpState *VAR_0, RAMBlock *VAR_1)
{ while (1) { VAR_1 = QTAILQ_NEXT(VAR_1, next); if (!VAR_1) { return 1; } VAR_0->start = 0; VAR_0->VAR_1 = VAR_1; if (VAR_0->has_filter) { if (VAR_1->offset >= VAR_0->begin + VAR_0->length ||
VAR_1->offset + VAR_1->length <= VAR_0->begin) { continue; } if (VAR_0->begin > VAR_1->offset) { VAR_0->start = VAR_0->begin - VAR_1->offset; } } return 0; } }