static int ram_save_host_page(RAMState *rs, PageSearchStatus *pss,

                              bool last_stage,

                              ram_addr_t dirty_ram_abs)

{

    int tmppages, pages = 0;

    size_t pagesize = qemu_ram_pagesize(pss->block);



    do {

        tmppages = ram_save_target_page(rs, pss, last_stage, dirty_ram_abs);

        if (tmppages < 0) {

            return tmppages;

        }



        pages += tmppages;

        pss->offset += TARGET_PAGE_SIZE;

        dirty_ram_abs += TARGET_PAGE_SIZE;

    } while (pss->offset & (pagesize - 1));



    /* The offset we leave with is the last one we looked at */

    pss->offset -= TARGET_PAGE_SIZE;

    return pages;

}

static int ram_save_host_page(RAMState *rs, PageSearchStatus *pss,

                              bool last_stage,

                              ram_addr_t dirty_ram_abs)

{

    int tmppages, pages = 0;

    size_t pagesize = qemu_ram_pagesize(pss->block);



    do {

        tmppages = ram_save_target_page(rs, pss, last_stage, dirty_ram_abs);

        if (tmppages < 0) {

            return tmppages;

        }



        pages += tmppages;

        pss->offset += TARGET_PAGE_SIZE;

        dirty_ram_abs += TARGET_PAGE_SIZE;

    } while (pss->offset & (pagesize - 1));



    

    pss->offset -= TARGET_PAGE_SIZE;

    return pages;

}

                              ram_addr_t dirty_ram_abs)         tmppages = ram_save_target_page(rs, pss, last_stage, dirty_ram_abs);         dirty_ram_abs += TARGET_PAGE_SIZE;
static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1,

                              bool VAR_2,

                              ram_addr_t VAR_3)

{

    int VAR_4, VAR_5 = 0;

    size_t pagesize = qemu_ram_pagesize(VAR_1->block);



    do {

        VAR_4 = ram_save_target_page(VAR_0, VAR_1, VAR_2, VAR_3);

        if (VAR_4 < 0) {

            return VAR_4;

        }



        VAR_5 += VAR_4;

        VAR_1->offset += TARGET_PAGE_SIZE;

        VAR_3 += TARGET_PAGE_SIZE;

    } while (VAR_1->offset & (pagesize - 1));



    

    VAR_1->offset -= TARGET_PAGE_SIZE;

    return VAR_5;

}

static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1,
bool VAR_2,
ram_addr_t VAR_3)
{ int VAR_4, VAR_5 = 0; size_t pagesize = qemu_ram_pagesize(VAR_1->block); do { VAR_4 = ram_save_target_page(VAR_0, VAR_1, VAR_2, VAR_3); if (VAR_4 < 0) { return VAR_4; } VAR_5 += VAR_4; VAR_1->offset += TARGET_PAGE_SIZE; VAR_3 += TARGET_PAGE_SIZE; } while (VAR_1->offset & (pagesize - 1)); VAR_1->offset -= TARGET_PAGE_SIZE; return VAR_5; }