static int blk_mig_save_dirty_block(QEMUFile *f, int is_async)

{

    BlkMigDevState *bmds;

    int ret = 1;



    QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {

        ret = mig_save_device_dirty(f, bmds, is_async);

        if (ret <= 0) {

            break;

        }

    }



    return ret;

}

static int blk_mig_save_dirty_block(QEMUFile *f, int is_async)

{

    BlkMigDevState *bmds;

    int ret = 1;



    QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {

        ret = mig_save_device_dirty(f, bmds, is_async);

        if (ret <= 0) {

            break;

        }

    }



    return ret;

}

static int FUNC_0(QEMUFile *VAR_0, int VAR_1)

{

    BlkMigDevState *bmds;

    int VAR_2 = 1;



    QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {

        VAR_2 = mig_save_device_dirty(VAR_0, bmds, VAR_1);

        if (VAR_2 <= 0) {

            break;

        }

    }



    return VAR_2;

}

static int FUNC_0(QEMUFile *VAR_0, int VAR_1)
{ BlkMigDevState *bmds; int VAR_2 = 1; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { VAR_2 = mig_save_device_dirty(VAR_0, bmds, VAR_1); if (VAR_2 <= 0) { break; } } return VAR_2; }