static int sector_limits_lun2qemu(int64_t sector, IscsiLun *iscsilun)

{

    int limit = MIN(sector_lun2qemu(sector, iscsilun), INT_MAX / 2 + 1);



    return limit < BDRV_REQUEST_MAX_SECTORS ? limit : 0;

}

static int sector_limits_lun2qemu(int64_t sector, IscsiLun *iscsilun)

{

    int limit = MIN(sector_lun2qemu(sector, iscsilun), INT_MAX / 2 + 1);



    return limit < BDRV_REQUEST_MAX_SECTORS ? limit : 0;

}

static int FUNC_0(int64_t VAR_0, IscsiLun *VAR_1)

{

    int VAR_2 = MIN(sector_lun2qemu(VAR_0, VAR_1), INT_MAX / 2 + 1);



    return VAR_2 < BDRV_REQUEST_MAX_SECTORS ? VAR_2 : 0;

}

static int FUNC_0(int64_t VAR_0, IscsiLun *VAR_1)
{ int VAR_2 = MIN(sector_lun2qemu(VAR_0, VAR_1), INT_MAX / 2 + 1); return VAR_2 < BDRV_REQUEST_MAX_SECTORS ? VAR_2 : 0; }