static void read_partition(uint8_t *p, struct partition_record *r)

{

    r->bootable = p[0];

    r->start_head = p[1];

    r->start_cylinder = p[3] | ((p[2] << 2) & 0x0300);

    r->start_sector = p[2] & 0x3f;

    r->system = p[4];

    r->end_head = p[5];

    r->end_cylinder = p[7] | ((p[6] << 2) & 0x300);

    r->end_sector = p[6] & 0x3f;

    r->start_sector_abs = p[8] | p[9] << 8 | p[10] << 16 | p[11] << 24;

    r->nb_sectors_abs = p[12] | p[13] << 8 | p[14] << 16 | p[15] << 24;

}

static void read_partition(uint8_t *p, struct partition_record *r)

{

    r->bootable = p[0];

    r->start_head = p[1];

    r->start_cylinder = p[3] | ((p[2] << 2) & 0x0300);

    r->start_sector = p[2] & 0x3f;

    r->system = p[4];

    r->end_head = p[5];

    r->end_cylinder = p[7] | ((p[6] << 2) & 0x300);

    r->end_sector = p[6] & 0x3f;

    r->start_sector_abs = p[8] | p[9] << 8 | p[10] << 16 | p[11] << 24;

    r->nb_sectors_abs = p[12] | p[13] << 8 | p[14] << 16 | p[15] << 24;

}

    r->start_sector_abs = p[8] | p[9] << 8 | p[10] << 16 | p[11] << 24;     r->nb_sectors_abs = p[12] | p[13] << 8 | p[14] << 16 | p[15] << 24;
static void FUNC_0(uint8_t *VAR_0, struct partition_record *VAR_1)

{

    VAR_1->bootable = VAR_0[0];

    VAR_1->start_head = VAR_0[1];

    VAR_1->start_cylinder = VAR_0[3] | ((VAR_0[2] << 2) & 0x0300);

    VAR_1->start_sector = VAR_0[2] & 0x3f;

    VAR_1->system = VAR_0[4];

    VAR_1->end_head = VAR_0[5];

    VAR_1->end_cylinder = VAR_0[7] | ((VAR_0[6] << 2) & 0x300);

    VAR_1->end_sector = VAR_0[6] & 0x3f;

    VAR_1->start_sector_abs = VAR_0[8] | VAR_0[9] << 8 | VAR_0[10] << 16 | VAR_0[11] << 24;

    VAR_1->nb_sectors_abs = VAR_0[12] | VAR_0[13] << 8 | VAR_0[14] << 16 | VAR_0[15] << 24;

}

static void FUNC_0(uint8_t *VAR_0, struct partition_record *VAR_1)
{ VAR_1->bootable = VAR_0[0]; VAR_1->start_head = VAR_0[1]; VAR_1->start_cylinder = VAR_0[3] | ((VAR_0[2] << 2) & 0x0300); VAR_1->start_sector = VAR_0[2] & 0x3f; VAR_1->system = VAR_0[4]; VAR_1->end_head = VAR_0[5]; VAR_1->end_cylinder = VAR_0[7] | ((VAR_0[6] << 2) & 0x300); VAR_1->end_sector = VAR_0[6] & 0x3f; VAR_1->start_sector_abs = VAR_0[8] | VAR_0[9] << 8 | VAR_0[10] << 16 | VAR_0[11] << 24; VAR_1->nb_sectors_abs = VAR_0[12] | VAR_0[13] << 8 | VAR_0[14] << 16 | VAR_0[15] << 24; }