static inline bool migration_bitmap_clear_dirty(RAMState *rs, ram_addr_t addr)

{

    bool ret;

    int nr = addr >> TARGET_PAGE_BITS;

    unsigned long *bitmap = atomic_rcu_read(&rs->ram_bitmap)->bmap;



    ret = test_and_clear_bit(nr, bitmap);



    if (ret) {

        rs->migration_dirty_pages--;

    }

    return ret;

}

static inline bool migration_bitmap_clear_dirty(RAMState *rs, ram_addr_t addr)

{

    bool ret;

    int nr = addr >> TARGET_PAGE_BITS;

    unsigned long *bitmap = atomic_rcu_read(&rs->ram_bitmap)->bmap;



    ret = test_and_clear_bit(nr, bitmap);



    if (ret) {

        rs->migration_dirty_pages--;

    }

    return ret;

}

static inline bool migration_bitmap_clear_dirty(RAMState *rs, ram_addr_t addr)     int nr = addr >> TARGET_PAGE_BITS;     ret = test_and_clear_bit(nr, bitmap);
static inline bool FUNC_0(RAMState *rs, ram_addr_t addr)

{

    bool ret;

    int VAR_0 = addr >> TARGET_PAGE_BITS;

    unsigned long *VAR_1 = atomic_rcu_read(&rs->ram_bitmap)->bmap;



    ret = test_and_clear_bit(VAR_0, VAR_1);



    if (ret) {

        rs->migration_dirty_pages--;

    }

    return ret;

}

static inline bool FUNC_0(RAMState *rs, ram_addr_t addr)
{ bool ret; int VAR_0 = addr >> TARGET_PAGE_BITS; unsigned long *VAR_1 = atomic_rcu_read(&rs->ram_bitmap)->bmap; ret = test_and_clear_bit(VAR_0, VAR_1); if (ret) { rs->migration_dirty_pages--; } return ret; }