static void guess_chs_for_size(BlockDriverState *bs,

                uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs)

{

    uint64_t nb_sectors;

    int cylinders;



    bdrv_get_geometry(bs, &nb_sectors);



    cylinders = nb_sectors / (16 * 63);

    if (cylinders > 16383) {

        cylinders = 16383;

    } else if (cylinders < 2) {

        cylinders = 2;

    }

    *pcyls = cylinders;

    *pheads = 16;

    *psecs = 63;

}

static void guess_chs_for_size(BlockDriverState *bs,

                uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs)

{

    uint64_t nb_sectors;

    int cylinders;



    bdrv_get_geometry(bs, &nb_sectors);



    cylinders = nb_sectors / (16 * 63);

    if (cylinders > 16383) {

        cylinders = 16383;

    } else if (cylinders < 2) {

        cylinders = 2;

    }

    *pcyls = cylinders;

    *pheads = 16;

    *psecs = 63;

}

static void FUNC_0(BlockDriverState *VAR_0,

                uint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3)

{

    uint64_t nb_sectors;

    int VAR_4;



    bdrv_get_geometry(VAR_0, &nb_sectors);



    VAR_4 = nb_sectors / (16 * 63);

    if (VAR_4 > 16383) {

        VAR_4 = 16383;

    } else if (VAR_4 < 2) {

        VAR_4 = 2;

    }

    *VAR_1 = VAR_4;

    *VAR_2 = 16;

    *VAR_3 = 63;

}

static void FUNC_0(BlockDriverState *VAR_0,
uint32_t *VAR_1, uint32_t *VAR_2, uint32_t *VAR_3)
{ uint64_t nb_sectors; int VAR_4; bdrv_get_geometry(VAR_0, &nb_sectors); VAR_4 = nb_sectors / (16 * 63); if (VAR_4 > 16383) { VAR_4 = 16383; } else if (VAR_4 < 2) { VAR_4 = 2; } *VAR_1 = VAR_4; *VAR_2 = 16; *VAR_3 = 63; }