
void png_do_gray_to_rgb(png_row_infop row_info,png_bytep row)

{
  byte bVar1;
  png_byte pVar3;
  png_byte *ppVar2;
  png_byte pVar4;
  png_uint_32 *row_width;
  png_bytep ppVar5;
  png_uint_32 pVar6;
  byte bVar7;
  png_bytep ppVar8;
  png_uint_32 pVar9;
  
  bVar7 = row_info->bit_depth;
  if (bVar7 < 8) {
    return;
  }
  bVar1 = row_info->color_type;
  if ((bVar1 & 2) != 0) {
    return;
  }
  pVar9 = row_info->width;
  if (bVar1 == 0) {
    if (bVar7 == 8) {
      if (pVar9 == 0) goto LAB_000245f4;
      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;
      ppVar5 = row + (pVar9 - 1);
      do {
        pVar4 = *ppVar5;
        ppVar8 = ppVar5 + -1;
        *ppVar2 = pVar4;
        ppVar2[-1] = pVar4;
        ppVar2[-2] = *ppVar5;
        ppVar2 = ppVar2 + -3;
        ppVar5 = ppVar8;
      } while (ppVar8 != row + -1);
      bVar7 = row_info->color_type;
      pVar4 = row_info->bit_depth;
    }
    else {
      if (pVar9 == 0) {
LAB_000245f4:
        row_info->color_type = bVar1 | 2;
        bVar7 = (row_info->channels + '\x02') * bVar7;
        row_info->channels = row_info->channels + '\x02';
        row_info->pixel_depth = bVar7;
        goto joined_r0x00024618;
      }
      pVar6 = 0;
      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;
      ppVar5 = row + pVar9 * 2 + -1;
      do {
        pVar6 = pVar6 + 1;
        *ppVar2 = *ppVar5;
        ppVar2[-1] = ppVar5[-1];
        ppVar2[-2] = *ppVar5;
        ppVar2[-3] = ppVar5[-1];
        ppVar2[-4] = *ppVar5;
        ppVar2[-5] = ppVar5[-1];
        ppVar2 = ppVar2 + -6;
        ppVar5 = ppVar5 + -2;
      } while (pVar9 != pVar6);
      bVar7 = row_info->color_type;
      pVar4 = row_info->bit_depth;
    }
  }
  else {
    if (bVar1 != 4) goto LAB_000245f4;
    if (bVar7 == 8) {
      if (pVar9 == 0) goto LAB_000245f4;
      pVar6 = 0;
      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;
      ppVar5 = row + pVar9 * 2 + -1;
      do {
        pVar6 = pVar6 + 1;
        *ppVar2 = *ppVar5;
        pVar4 = ppVar5[-1];
        ppVar2[-1] = pVar4;
        ppVar2[-2] = pVar4;
        ppVar2[-3] = ppVar5[-1];
        ppVar2 = ppVar2 + -4;
        ppVar5 = ppVar5 + -2;
      } while (pVar9 != pVar6);
      bVar7 = row_info->color_type;
      pVar4 = row_info->bit_depth;
    }
    else {
      if (pVar9 == 0) goto LAB_000245f4;
      pVar6 = 0;
      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;
      ppVar5 = row + pVar9 * 4 + -1;
      do {
        pVar6 = pVar6 + 1;
        *ppVar2 = *ppVar5;
        ppVar2[-1] = ppVar5[-1];
        ppVar2[-2] = ppVar5[-2];
        ppVar2[-3] = ppVar5[-3];
        ppVar2[-4] = ppVar5[-2];
        ppVar2[-5] = ppVar5[-3];
        ppVar2[-6] = ppVar5[-2];
        ppVar2[-7] = ppVar5[-3];
        ppVar2 = ppVar2 + -8;
        ppVar5 = ppVar5 + -4;
      } while (pVar9 != pVar6);
      bVar7 = row_info->color_type;
      pVar4 = row_info->bit_depth;
    }
  }
  row_info->color_type = bVar7 | 2;
  pVar3 = row_info->channels + '\x02';
  bVar7 = pVar3 * pVar4;
  row_info->channels = pVar3;
  row_info->pixel_depth = bVar7;
joined_r0x00024618:
  if (bVar7 < 8) {
    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;
    return;
  }
  row_info->rowbytes = (bVar7 >> 3) * pVar9;
  return;
}



void FUN_00024510(int *param_1,int param_2)

{
  byte bVar1;
  undefined1 uVar2;
  char cVar4;
  undefined1 *puVar3;
  char cVar5;
  undefined1 *puVar6;
  int iVar7;
  byte bVar8;
  undefined1 *puVar9;
  int iVar10;
  
  bVar8 = *(byte *)((int)param_1 + 9);
  if (bVar8 < 8) {
    return;
  }
  bVar1 = *(byte *)(param_1 + 2);
  if ((bVar1 & 2) != 0) {
    return;
  }
  iVar10 = *param_1;
  if (bVar1 == 0) {
    if (bVar8 == 8) {
      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);
      if (iVar10 == 0) goto LAB_000245f4;
      puVar3 = puVar6 + iVar10 * 2;
      do {
        uVar2 = *puVar6;
        puVar9 = puVar6 + -1;
        *puVar3 = uVar2;
        puVar3[-1] = uVar2;
        puVar3[-2] = *puVar6;
        puVar3 = puVar3 + -3;
        puVar6 = puVar9;
      } while (puVar9 != (undefined1 *)(param_2 + -1));
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
    else {
      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);
      if (iVar10 == 0) {
LAB_000245f4:
        *(byte *)(param_1 + 2) = bVar1 | 2;
        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;
        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';
        *(byte *)((int)param_1 + 0xb) = bVar8;
        goto joined_r0x00024618;
      }
      iVar7 = 0;
      puVar3 = puVar6 + iVar10 * 4;
      do {
        iVar7 = iVar7 + 1;
        *puVar3 = *puVar6;
        puVar3[-1] = puVar6[-1];
        puVar3[-2] = *puVar6;
        puVar3[-3] = puVar6[-1];
        puVar3[-4] = *puVar6;
        puVar3[-5] = puVar6[-1];
        puVar3 = puVar3 + -6;
        puVar6 = puVar6 + -2;
      } while (iVar10 != iVar7);
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
  }
  else {
    if (bVar1 != 4) goto LAB_000245f4;
    if (bVar8 == 8) {
      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);
      if (iVar10 == 0) goto LAB_000245f4;
      iVar7 = 0;
      puVar3 = puVar6 + iVar10 * 2;
      do {
        iVar7 = iVar7 + 1;
        *puVar3 = *puVar6;
        uVar2 = puVar6[-1];
        puVar3[-1] = uVar2;
        puVar3[-2] = uVar2;
        puVar3[-3] = puVar6[-1];
        puVar3 = puVar3 + -4;
        puVar6 = puVar6 + -2;
      } while (iVar10 != iVar7);
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
    else {
      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);
      if (iVar10 == 0) goto LAB_000245f4;
      iVar7 = 0;
      puVar3 = puVar6 + iVar10 * 4;
      do {
        iVar7 = iVar7 + 1;
        *puVar3 = *puVar6;
        puVar3[-1] = puVar6[-1];
        puVar3[-2] = puVar6[-2];
        puVar3[-3] = puVar6[-3];
        puVar3[-4] = puVar6[-2];
        puVar3[-5] = puVar6[-3];
        puVar3[-6] = puVar6[-2];
        puVar3[-7] = puVar6[-3];
        puVar3 = puVar3 + -8;
        puVar6 = puVar6 + -4;
      } while (iVar10 != iVar7);
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
  }
  *(byte *)(param_1 + 2) = bVar8 | 2;
  cVar4 = *(char *)((int)param_1 + 10) + '\x02';
  bVar8 = cVar4 * cVar5;
  *(char *)((int)param_1 + 10) = cVar4;
  *(byte *)((int)param_1 + 0xb) = bVar8;
joined_r0x00024618:
  if (bVar8 < 8) {
    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;
    return;
  }
  param_1[1] = (uint)(bVar8 >> 3) * iVar10;
  return;
}


lbu v1,0x9(a0)
sltiu v0,v1,0x8
bne v0,zero,0x000245e0
_nop
lbu a2,0x8(a0)
andi v0,a2,0x2
bne v0,zero,0x000245e0
_nop
bne a2,zero,0x000245e8
_lw t0,0x0(a0)
li a3,0x8
beq v1,a3,0x000246ac
_sll v0,t0,0x1
addiu a3,v0,-0x1
sll v0,t0,0x2
addu a1,a1,a3
beq t0,zero,0x000245f4
_addu v0,a1,v0
or a2,zero,zero
lbu v1,0x0(a1)
addiu v0,v0,-0x6
addiu a1,a1,-0x2
addiu a2,a2,0x1
sb v1,0x6(v0)
lbu v1,0x1(a1)
sb v1,0x5(v0)
lbu v1,0x2(a1)
sb v1,0x4(v0)
lbu v1,0x1(a1)
sb v1,0x3(v0)
lbu v1,0x2(a1)
sb v1,0x2(v0)
lbu v1,0x1(a1)
bne t0,a2,0x0002455c
_sb v1,0x1(v0)
lbu a2,0x8(a0)
lbu v1,0x9(a0)
lbu v0,0xa(a0)
ori a2,a2,0x2
sb a2,0x8(a0)
addiu v0,v0,0x2
andi v0,v0,0xff
mul v1,v0,v1
sb v0,0xa(a0)
andi v1,v1,0xff
sltiu v0,v1,0x8
beq v0,zero,0x00024620
_sb v1,0xb(a0)
mul v1,v1,t0
addiu v1,v1,0x7
srl v1,v1,0x3
sw v1,0x4(a0)
jr ra
_nop
li v0,0x4
beq a2,v0,0x00024630
_li v0,0x8
lbu v0,0xa(a0)
ori a2,a2,0x2
sb a2,0x8(a0)
addiu v0,v0,0x2
andi v0,v0,0xff
mul v1,v0,v1
sb v0,0xa(a0)
andi v1,v1,0xff
sltiu v0,v1,0x8
bne v0,zero,0x000245d0
_sb v1,0xb(a0)
srl v1,v1,0x3
mul v1,v1,t0
jr ra
_sw v1,0x4(a0)
beq v1,v0,0x000246ec
_nop
sll v0,t0,0x2
addiu a3,v0,-0x1
addu a1,a1,a3
beq t0,zero,0x000245f4
_addu v0,a1,v0
or v1,zero,zero
lbu a2,0x0(a1)
addiu v0,v0,-0x8
addiu a1,a1,-0x4
addiu v1,v1,0x1
sb a2,0x8(v0)
lbu a2,0x3(a1)
sb a2,0x7(v0)
lbu a2,0x2(a1)
sb a2,0x6(v0)
lbu a2,0x1(a1)
sb a2,0x5(v0)
lbu a2,0x2(a1)
sb a2,0x4(v0)
lbu a2,0x1(a1)
sb a2,0x3(v0)
lbu a2,0x2(a1)
sb a2,0x2(v0)
lbu a2,0x1(a1)
bne t0,v1,0x00024650
_sb a2,0x1(v0)
lbu a2,0x8(a0)
b 0x000245a4
_lbu v1,0x9(a0)
addiu a3,t0,-0x1
addu a3,a1,a3
beq t0,zero,0x000245f4
_addu v0,a3,v0
addiu a1,a1,-0x1
lbu v1,0x0(a3)
addiu v0,v0,-0x3
addiu a3,a3,-0x1
sb v1,0x3(v0)
sb v1,0x2(v0)
lbu v1,0x1(a3)
bne a3,a1,0x000246c0
_sb v1,0x1(v0)
lbu a2,0x8(a0)
b 0x000245a4
_lbu v1,0x9(a0)
sll v0,t0,0x1
addiu a3,v0,-0x1
addu a1,a1,a3
beq t0,zero,0x000245f4
_addu v0,a1,v0
or v1,zero,zero
lbu a2,0x0(a1)
addiu v0,v0,-0x4
addiu a1,a1,-0x2
addiu v1,v1,0x1
sb a2,0x4(v0)
lbu a2,0x1(a1)
sb a2,0x3(v0)
sb a2,0x2(v0)
lbu a2,0x1(a1)
bne t0,v1,0x00024704
_sb a2,0x1(v0)
lbu a2,0x8(a0)
b 0x000245a4
_lbu v1,0x9(a0)
(translation_unit "void FUN_00024510(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}\n\n" (function_definition "void FUN_00024510(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}" primitive_type (function_declarator "FUN_00024510(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (expression_statement "bVar8 = *(byte *)((int)param_1 + 9);" (assignment_expression "bVar8 = *(byte *)((int)param_1 + 9)" identifier = (pointer_expression "*(byte *)((int)param_1 + 9)" * (cast_expression "(byte *)((int)param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (bVar8 < 8) {\n    return;\n  }" if (parenthesized_expression "(bVar8 < 8)" ( (binary_expression "bVar8 < 8" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "bVar1 = *(byte *)(param_1 + 2);" (assignment_expression "bVar1 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if ((bVar1 & 2) != 0) {\n    return;\n  }" if (parenthesized_expression "((bVar1 & 2) != 0)" ( (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar10 = *param_1;" (assignment_expression "iVar10 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" { (if_statement "if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" if (parenthesized_expression "(bVar8 == 8)" ( (binary_expression "bVar8 == 8" identifier == number_literal) )) (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 + -1)" ( (binary_expression "param_2 + iVar10 + -1" (binary_expression "param_2 + iVar10" identifier + identifier) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "puVar3 = puVar6 + iVar10 * 2;" (assignment_expression "puVar3 = puVar6 + iVar10 * 2" identifier = (binary_expression "puVar6 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal))) ;) (do_statement "do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));" do (compound_statement "{\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      }" { (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar9 = puVar6 + -1;" (assignment_expression "puVar9 = puVar6 + -1" identifier = (binary_expression "puVar6 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[-1] = uVar2;" (assignment_expression "puVar3[-1] = uVar2" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[-2] = *puVar6;" (assignment_expression "puVar3[-2] = *puVar6" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3 = puVar3 + -3;" (assignment_expression "puVar3 = puVar3 + -3" identifier = (binary_expression "puVar3 + -3" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 != (undefined1 *)(param_2 + -1))" ( (binary_expression "puVar9 != (undefined1 *)(param_2 + -1)" identifier != (cast_expression "(undefined1 *)(param_2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + -1)" ( (binary_expression "param_2 + -1" identifier + number_literal) )))) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" else (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 * 2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 * 2 + -1)" ( (binary_expression "param_2 + iVar10 * 2 + -1" (binary_expression "param_2 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }" { (labeled_statement "LAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;" statement_identifier : (expression_statement "*(byte *)(param_1 + 2) = bVar1 | 2;" (assignment_expression "*(byte *)(param_1 + 2) = bVar1 | 2" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (binary_expression "bVar1 | 2" identifier | number_literal)) ;)) (expression_statement "bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;" (assignment_expression "bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8" identifier = (binary_expression "(*(char *)((int)param_1 + 10) + '\x02') * bVar8" (parenthesized_expression "(*(char *)((int)param_1 + 10) + '\x02')" ( (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (char_literal "'\x02'" ' escape_sequence ')) )) * identifier)) ;) (expression_statement "*(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';" (assignment_expression "*(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "*(byte *)((int)param_1 + 0xb) = bVar8;" (assignment_expression "*(byte *)((int)param_1 + 0xb) = bVar8" (pointer_expression "*(byte *)((int)param_1 + 0xb)" * (cast_expression "(byte *)((int)param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xb)" ( (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (goto_statement "goto joined_r0x00024618;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = puVar6 + iVar10 * 4;" (assignment_expression "puVar3 = puVar6 + iVar10 * 4" identifier = (binary_expression "puVar6 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-1] = puVar6[-1];" (assignment_expression "puVar3[-1] = puVar6[-1]" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-2] = *puVar6;" (assignment_expression "puVar3[-2] = *puVar6" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-3] = puVar6[-1];" (assignment_expression "puVar3[-3] = puVar6[-1]" (subscript_expression "puVar3[-3]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-4] = *puVar6;" (assignment_expression "puVar3[-4] = *puVar6" (subscript_expression "puVar3[-4]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-5] = puVar6[-1];" (assignment_expression "puVar3[-5] = puVar6[-1]" (subscript_expression "puVar3[-5]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar3 + -6;" (assignment_expression "puVar3 = puVar3 + -6" identifier = (binary_expression "puVar3 + -6" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + -2;" (assignment_expression "puVar6 = puVar6 + -2" identifier = (binary_expression "puVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != iVar7)" ( (binary_expression "iVar10 != iVar7" identifier != identifier) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) }) (else_clause "else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" else (compound_statement "{\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" { (if_statement "if (bVar1 != 4) goto LAB_000245f4;" if (parenthesized_expression "(bVar1 != 4)" ( (binary_expression "bVar1 != 4" identifier != number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (if_statement "if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" if (parenthesized_expression "(bVar8 == 8)" ( (binary_expression "bVar8 == 8" identifier == number_literal) )) (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 * 2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 * 2 + -1)" ( (binary_expression "param_2 + iVar10 * 2 + -1" (binary_expression "param_2 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = puVar6 + iVar10 * 2;" (assignment_expression "puVar3 = puVar6 + iVar10 * 2" identifier = (binary_expression "puVar6 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar2 = puVar6[-1];" (assignment_expression "uVar2 = puVar6[-1]" identifier = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = uVar2;" (assignment_expression "puVar3[-1] = uVar2" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[-2] = uVar2;" (assignment_expression "puVar3[-2] = uVar2" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[-3] = puVar6[-1];" (assignment_expression "puVar3[-3] = puVar6[-1]" (subscript_expression "puVar3[-3]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar3 + -4;" (assignment_expression "puVar3 = puVar3 + -4" identifier = (binary_expression "puVar3 + -4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + -2;" (assignment_expression "puVar6 = puVar6 + -2" identifier = (binary_expression "puVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != iVar7)" ( (binary_expression "iVar10 != iVar7" identifier != identifier) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" else (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 * 4 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 * 4 + -1)" ( (binary_expression "param_2 + iVar10 * 4 + -1" (binary_expression "param_2 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = puVar6 + iVar10 * 4;" (assignment_expression "puVar3 = puVar6 + iVar10 * 4" identifier = (binary_expression "puVar6 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-1] = puVar6[-1];" (assignment_expression "puVar3[-1] = puVar6[-1]" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-2] = puVar6[-2];" (assignment_expression "puVar3[-2] = puVar6[-2]" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = (subscript_expression "puVar6[-2]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-3] = puVar6[-3];" (assignment_expression "puVar3[-3] = puVar6[-3]" (subscript_expression "puVar3[-3]" identifier [ number_literal ]) = (subscript_expression "puVar6[-3]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-4] = puVar6[-2];" (assignment_expression "puVar3[-4] = puVar6[-2]" (subscript_expression "puVar3[-4]" identifier [ number_literal ]) = (subscript_expression "puVar6[-2]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-5] = puVar6[-3];" (assignment_expression "puVar3[-5] = puVar6[-3]" (subscript_expression "puVar3[-5]" identifier [ number_literal ]) = (subscript_expression "puVar6[-3]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-6] = puVar6[-2];" (assignment_expression "puVar3[-6] = puVar6[-2]" (subscript_expression "puVar3[-6]" identifier [ number_literal ]) = (subscript_expression "puVar6[-2]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-7] = puVar6[-3];" (assignment_expression "puVar3[-7] = puVar6[-3]" (subscript_expression "puVar3[-7]" identifier [ number_literal ]) = (subscript_expression "puVar6[-3]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar3 + -8;" (assignment_expression "puVar3 = puVar3 + -8" identifier = (binary_expression "puVar3 + -8" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + -4;" (assignment_expression "puVar6 = puVar6 + -4" identifier = (binary_expression "puVar6 + -4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != iVar7)" ( (binary_expression "iVar10 != iVar7" identifier != identifier) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) }))) (expression_statement "*(byte *)(param_1 + 2) = bVar8 | 2;" (assignment_expression "*(byte *)(param_1 + 2) = bVar8 | 2" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (binary_expression "bVar8 | 2" identifier | number_literal)) ;) (expression_statement "cVar4 = *(char *)((int)param_1 + 10) + '\x02';" (assignment_expression "cVar4 = *(char *)((int)param_1 + 10) + '\x02'" identifier = (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "bVar8 = cVar4 * cVar5;" (assignment_expression "bVar8 = cVar4 * cVar5" identifier = (binary_expression "cVar4 * cVar5" identifier * identifier)) ;) (expression_statement "*(char *)((int)param_1 + 10) = cVar4;" (assignment_expression "*(char *)((int)param_1 + 10) = cVar4" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)((int)param_1 + 0xb) = bVar8;" (assignment_expression "*(byte *)((int)param_1 + 0xb) = bVar8" (pointer_expression "*(byte *)((int)param_1 + 0xb)" * (cast_expression "(byte *)((int)param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xb)" ( (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (labeled_statement "joined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" statement_identifier : (if_statement "if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" if (parenthesized_expression "(bVar8 < 8)" ( (binary_expression "bVar8 < 8" identifier < number_literal) )) (compound_statement "{\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" { (expression_statement "param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;" (assignment_expression "param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(uint)bVar8 * iVar10 + 7 >> 3" (binary_expression "(uint)bVar8 * iVar10 + 7" (binary_expression "(uint)bVar8 * iVar10" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * identifier) + number_literal) >> number_literal)) ;) (return_statement "return;" return ;) }))) (expression_statement "param_1[1] = (uint)(bVar8 >> 3) * iVar10;" (assignment_expression "param_1[1] = (uint)(bVar8 >> 3) * iVar10" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(uint)(bVar8 >> 3) * iVar10" (call_expression "(uint)(bVar8 >> 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar8 >> 3)" ( (binary_expression "bVar8 >> 3" identifier >> number_literal) ))) * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void png_do_gray_to_rgb(png_row_infop row_info,png_bytep row)\n\n{\n  byte bVar1;\n  png_byte pVar3;\n  png_byte *ppVar2;\n  png_byte pVar4;\n  png_uint_32 *row_width;\n  png_bytep ppVar5;\n  png_uint_32 pVar6;\n  byte bVar7;\n  png_bytep ppVar8;\n  png_uint_32 pVar9;\n  \n  bVar7 = row_info->bit_depth;\n  if (bVar7 < 8) {\n    return;\n  }\n  bVar1 = row_info->color_type;\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  pVar9 = row_info->width;\n  if (bVar1 == 0) {\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  row_info->color_type = bVar7 | 2;\n  pVar3 = row_info->channels + '\x02';\n  bVar7 = pVar3 * pVar4;\n  row_info->channels = pVar3;\n  row_info->pixel_depth = bVar7;\njoined_r0x00024618:\n  if (bVar7 < 8) {\n    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;\n    return;\n  }\n  row_info->rowbytes = (bVar7 >> 3) * pVar9;\n  return;\n}\n\n" (function_definition "void png_do_gray_to_rgb(png_row_infop row_info,png_bytep row)\n\n{\n  byte bVar1;\n  png_byte pVar3;\n  png_byte *ppVar2;\n  png_byte pVar4;\n  png_uint_32 *row_width;\n  png_bytep ppVar5;\n  png_uint_32 pVar6;\n  byte bVar7;\n  png_bytep ppVar8;\n  png_uint_32 pVar9;\n  \n  bVar7 = row_info->bit_depth;\n  if (bVar7 < 8) {\n    return;\n  }\n  bVar1 = row_info->color_type;\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  pVar9 = row_info->width;\n  if (bVar1 == 0) {\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  row_info->color_type = bVar7 | 2;\n  pVar3 = row_info->channels + '\x02';\n  bVar7 = pVar3 * pVar4;\n  row_info->channels = pVar3;\n  row_info->pixel_depth = bVar7;\njoined_r0x00024618:\n  if (bVar7 < 8) {\n    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;\n    return;\n  }\n  row_info->rowbytes = (bVar7 >> 3) * pVar9;\n  return;\n}" primitive_type (function_declarator "png_do_gray_to_rgb(png_row_infop row_info,png_bytep row)" identifier (parameter_list "(png_row_infop row_info,png_bytep row)" ( (parameter_declaration "png_row_infop row_info" type_identifier identifier) , (parameter_declaration "png_bytep row" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  png_byte pVar3;\n  png_byte *ppVar2;\n  png_byte pVar4;\n  png_uint_32 *row_width;\n  png_bytep ppVar5;\n  png_uint_32 pVar6;\n  byte bVar7;\n  png_bytep ppVar8;\n  png_uint_32 pVar9;\n  \n  bVar7 = row_info->bit_depth;\n  if (bVar7 < 8) {\n    return;\n  }\n  bVar1 = row_info->color_type;\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  pVar9 = row_info->width;\n  if (bVar1 == 0) {\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  row_info->color_type = bVar7 | 2;\n  pVar3 = row_info->channels + '\x02';\n  bVar7 = pVar3 * pVar4;\n  row_info->channels = pVar3;\n  row_info->pixel_depth = bVar7;\njoined_r0x00024618:\n  if (bVar7 < 8) {\n    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;\n    return;\n  }\n  row_info->rowbytes = (bVar7 >> 3) * pVar9;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "png_byte pVar3;" type_identifier identifier ;) (declaration "png_byte *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "png_byte pVar4;" type_identifier identifier ;) (declaration "png_uint_32 *row_width;" type_identifier (pointer_declarator "*row_width" * identifier) ;) (declaration "png_bytep ppVar5;" type_identifier identifier ;) (declaration "png_uint_32 pVar6;" type_identifier identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "png_bytep ppVar8;" type_identifier identifier ;) (declaration "png_uint_32 pVar9;" type_identifier identifier ;) (expression_statement "bVar7 = row_info->bit_depth;" (assignment_expression "bVar7 = row_info->bit_depth" identifier = (field_expression "row_info->bit_depth" identifier -> field_identifier)) ;) (if_statement "if (bVar7 < 8) {\n    return;\n  }" if (parenthesized_expression "(bVar7 < 8)" ( (binary_expression "bVar7 < 8" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "bVar1 = row_info->color_type;" (assignment_expression "bVar1 = row_info->color_type" identifier = (field_expression "row_info->color_type" identifier -> field_identifier)) ;) (if_statement "if ((bVar1 & 2) != 0) {\n    return;\n  }" if (parenthesized_expression "((bVar1 & 2) != 0)" ( (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pVar9 = row_info->width;" (assignment_expression "pVar9 = row_info->width" identifier = (field_expression "row_info->width" identifier -> field_identifier)) ;) (if_statement "if (bVar1 == 0) {\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }" { (if_statement "if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" if (parenthesized_expression "(bVar7 == 8)" ( (binary_expression "bVar7 == 8" identifier == number_literal) )) (compound_statement "{\n      if (pVar9 == 0) goto LAB_000245f4;\n      ppVar2 = row + (pVar9 - 1) + pVar9 * 2;\n      ppVar5 = row + (pVar9 - 1);\n      do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" { (if_statement "if (pVar9 == 0) goto LAB_000245f4;" if (parenthesized_expression "(pVar9 == 0)" ( (binary_expression "pVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "ppVar2 = row + (pVar9 - 1) + pVar9 * 2;" (assignment_expression "ppVar2 = row + (pVar9 - 1) + pVar9 * 2" identifier = (binary_expression "row + (pVar9 - 1) + pVar9 * 2" (binary_expression "row + (pVar9 - 1)" identifier + (parenthesized_expression "(pVar9 - 1)" ( (binary_expression "pVar9 - 1" identifier - number_literal) ))) + (binary_expression "pVar9 * 2" identifier * number_literal))) ;) (expression_statement "ppVar5 = row + (pVar9 - 1);" (assignment_expression "ppVar5 = row + (pVar9 - 1)" identifier = (binary_expression "row + (pVar9 - 1)" identifier + (parenthesized_expression "(pVar9 - 1)" ( (binary_expression "pVar9 - 1" identifier - number_literal) )))) ;) (do_statement "do {\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      } while (ppVar8 != row + -1);" do (compound_statement "{\n        pVar4 = *ppVar5;\n        ppVar8 = ppVar5 + -1;\n        *ppVar2 = pVar4;\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = *ppVar5;\n        ppVar2 = ppVar2 + -3;\n        ppVar5 = ppVar8;\n      }" { (expression_statement "pVar4 = *ppVar5;" (assignment_expression "pVar4 = *ppVar5" identifier = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "ppVar8 = ppVar5 + -1;" (assignment_expression "ppVar8 = ppVar5 + -1" identifier = (binary_expression "ppVar5 + -1" identifier + number_literal)) ;) (expression_statement "*ppVar2 = pVar4;" (assignment_expression "*ppVar2 = pVar4" (pointer_expression "*ppVar2" * identifier) = identifier) ;) (expression_statement "ppVar2[-1] = pVar4;" (assignment_expression "ppVar2[-1] = pVar4" (subscript_expression "ppVar2[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "ppVar2[-2] = *ppVar5;" (assignment_expression "ppVar2[-2] = *ppVar5" (subscript_expression "ppVar2[-2]" identifier [ number_literal ]) = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "ppVar2 = ppVar2 + -3;" (assignment_expression "ppVar2 = ppVar2 + -3" identifier = (binary_expression "ppVar2 + -3" identifier + number_literal)) ;) (expression_statement "ppVar5 = ppVar8;" (assignment_expression "ppVar5 = ppVar8" identifier = identifier) ;) }) while (parenthesized_expression "(ppVar8 != row + -1)" ( (binary_expression "ppVar8 != row + -1" identifier != (binary_expression "row + -1" identifier + number_literal)) )) ;) (expression_statement "bVar7 = row_info->color_type;" (assignment_expression "bVar7 = row_info->color_type" identifier = (field_expression "row_info->color_type" identifier -> field_identifier)) ;) (expression_statement "pVar4 = row_info->bit_depth;" (assignment_expression "pVar4 = row_info->bit_depth" identifier = (field_expression "row_info->bit_depth" identifier -> field_identifier)) ;) }) (else_clause "else {\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" else (compound_statement "{\n      if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" { (if_statement "if (pVar9 == 0) {\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }" if (parenthesized_expression "(pVar9 == 0)" ( (binary_expression "pVar9 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000245f4:\n        row_info->color_type = bVar1 | 2;\n        bVar7 = (row_info->channels + '\x02') * bVar7;\n        row_info->channels = row_info->channels + '\x02';\n        row_info->pixel_depth = bVar7;\n        goto joined_r0x00024618;\n      }" { (labeled_statement "LAB_000245f4:\n        row_info->color_type = bVar1 | 2;" statement_identifier : (expression_statement "row_info->color_type = bVar1 | 2;" (assignment_expression "row_info->color_type = bVar1 | 2" (field_expression "row_info->color_type" identifier -> field_identifier) = (binary_expression "bVar1 | 2" identifier | number_literal)) ;)) (expression_statement "bVar7 = (row_info->channels + '\x02') * bVar7;" (assignment_expression "bVar7 = (row_info->channels + '\x02') * bVar7" identifier = (binary_expression "(row_info->channels + '\x02') * bVar7" (parenthesized_expression "(row_info->channels + '\x02')" ( (binary_expression "row_info->channels + '\x02'" (field_expression "row_info->channels" identifier -> field_identifier) + (char_literal "'\x02'" ' escape_sequence ')) )) * identifier)) ;) (expression_statement "row_info->channels = row_info->channels + '\x02';" (assignment_expression "row_info->channels = row_info->channels + '\x02'" (field_expression "row_info->channels" identifier -> field_identifier) = (binary_expression "row_info->channels + '\x02'" (field_expression "row_info->channels" identifier -> field_identifier) + (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "row_info->pixel_depth = bVar7;" (assignment_expression "row_info->pixel_depth = bVar7" (field_expression "row_info->pixel_depth" identifier -> field_identifier) = identifier) ;) (goto_statement "goto joined_r0x00024618;" goto statement_identifier ;) })) (expression_statement "pVar6 = 0;" (assignment_expression "pVar6 = 0" identifier = number_literal) ;) (expression_statement "ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4;" (assignment_expression "ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 4" identifier = (binary_expression "row + pVar9 * 2 + -1 + pVar9 * 4" (binary_expression "row + pVar9 * 2 + -1" (binary_expression "row + pVar9 * 2" identifier + (binary_expression "pVar9 * 2" identifier * number_literal)) + number_literal) + (binary_expression "pVar9 * 4" identifier * number_literal))) ;) (expression_statement "ppVar5 = row + pVar9 * 2 + -1;" (assignment_expression "ppVar5 = row + pVar9 * 2 + -1" identifier = (binary_expression "row + pVar9 * 2 + -1" (binary_expression "row + pVar9 * 2" identifier + (binary_expression "pVar9 * 2" identifier * number_literal)) + number_literal)) ;) (do_statement "do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);" do (compound_statement "{\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = *ppVar5;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2[-4] = *ppVar5;\n        ppVar2[-5] = ppVar5[-1];\n        ppVar2 = ppVar2 + -6;\n        ppVar5 = ppVar5 + -2;\n      }" { (expression_statement "pVar6 = pVar6 + 1;" (assignment_expression "pVar6 = pVar6 + 1" identifier = (binary_expression "pVar6 + 1" identifier + number_literal)) ;) (expression_statement "*ppVar2 = *ppVar5;" (assignment_expression "*ppVar2 = *ppVar5" (pointer_expression "*ppVar2" * identifier) = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "ppVar2[-1] = ppVar5[-1];" (assignment_expression "ppVar2[-1] = ppVar5[-1]" (subscript_expression "ppVar2[-1]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-1]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-2] = *ppVar5;" (assignment_expression "ppVar2[-2] = *ppVar5" (subscript_expression "ppVar2[-2]" identifier [ number_literal ]) = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "ppVar2[-3] = ppVar5[-1];" (assignment_expression "ppVar2[-3] = ppVar5[-1]" (subscript_expression "ppVar2[-3]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-1]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-4] = *ppVar5;" (assignment_expression "ppVar2[-4] = *ppVar5" (subscript_expression "ppVar2[-4]" identifier [ number_literal ]) = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "ppVar2[-5] = ppVar5[-1];" (assignment_expression "ppVar2[-5] = ppVar5[-1]" (subscript_expression "ppVar2[-5]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-1]" identifier [ number_literal ])) ;) (expression_statement "ppVar2 = ppVar2 + -6;" (assignment_expression "ppVar2 = ppVar2 + -6" identifier = (binary_expression "ppVar2 + -6" identifier + number_literal)) ;) (expression_statement "ppVar5 = ppVar5 + -2;" (assignment_expression "ppVar5 = ppVar5 + -2" identifier = (binary_expression "ppVar5 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pVar9 != pVar6)" ( (binary_expression "pVar9 != pVar6" identifier != identifier) )) ;) (expression_statement "bVar7 = row_info->color_type;" (assignment_expression "bVar7 = row_info->color_type" identifier = (field_expression "row_info->color_type" identifier -> field_identifier)) ;) (expression_statement "pVar4 = row_info->bit_depth;" (assignment_expression "pVar4 = row_info->bit_depth" identifier = (field_expression "row_info->bit_depth" identifier -> field_identifier)) ;) }))) }) (else_clause "else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }" else (compound_statement "{\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n  }" { (if_statement "if (bVar1 != 4) goto LAB_000245f4;" if (parenthesized_expression "(bVar1 != 4)" ( (binary_expression "bVar1 != 4" identifier != number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (if_statement "if (bVar7 == 8) {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }\n    else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" if (parenthesized_expression "(bVar7 == 8)" ( (binary_expression "bVar7 == 8" identifier == number_literal) )) (compound_statement "{\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;\n      ppVar5 = row + pVar9 * 2 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" { (if_statement "if (pVar9 == 0) goto LAB_000245f4;" if (parenthesized_expression "(pVar9 == 0)" ( (binary_expression "pVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "pVar6 = 0;" (assignment_expression "pVar6 = 0" identifier = number_literal) ;) (expression_statement "ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2;" (assignment_expression "ppVar2 = row + pVar9 * 2 + -1 + pVar9 * 2" identifier = (binary_expression "row + pVar9 * 2 + -1 + pVar9 * 2" (binary_expression "row + pVar9 * 2 + -1" (binary_expression "row + pVar9 * 2" identifier + (binary_expression "pVar9 * 2" identifier * number_literal)) + number_literal) + (binary_expression "pVar9 * 2" identifier * number_literal))) ;) (expression_statement "ppVar5 = row + pVar9 * 2 + -1;" (assignment_expression "ppVar5 = row + pVar9 * 2 + -1" identifier = (binary_expression "row + pVar9 * 2 + -1" (binary_expression "row + pVar9 * 2" identifier + (binary_expression "pVar9 * 2" identifier * number_literal)) + number_literal)) ;) (do_statement "do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      } while (pVar9 != pVar6);" do (compound_statement "{\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        pVar4 = ppVar5[-1];\n        ppVar2[-1] = pVar4;\n        ppVar2[-2] = pVar4;\n        ppVar2[-3] = ppVar5[-1];\n        ppVar2 = ppVar2 + -4;\n        ppVar5 = ppVar5 + -2;\n      }" { (expression_statement "pVar6 = pVar6 + 1;" (assignment_expression "pVar6 = pVar6 + 1" identifier = (binary_expression "pVar6 + 1" identifier + number_literal)) ;) (expression_statement "*ppVar2 = *ppVar5;" (assignment_expression "*ppVar2 = *ppVar5" (pointer_expression "*ppVar2" * identifier) = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "pVar4 = ppVar5[-1];" (assignment_expression "pVar4 = ppVar5[-1]" identifier = (subscript_expression "ppVar5[-1]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-1] = pVar4;" (assignment_expression "ppVar2[-1] = pVar4" (subscript_expression "ppVar2[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "ppVar2[-2] = pVar4;" (assignment_expression "ppVar2[-2] = pVar4" (subscript_expression "ppVar2[-2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "ppVar2[-3] = ppVar5[-1];" (assignment_expression "ppVar2[-3] = ppVar5[-1]" (subscript_expression "ppVar2[-3]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-1]" identifier [ number_literal ])) ;) (expression_statement "ppVar2 = ppVar2 + -4;" (assignment_expression "ppVar2 = ppVar2 + -4" identifier = (binary_expression "ppVar2 + -4" identifier + number_literal)) ;) (expression_statement "ppVar5 = ppVar5 + -2;" (assignment_expression "ppVar5 = ppVar5 + -2" identifier = (binary_expression "ppVar5 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(pVar9 != pVar6)" ( (binary_expression "pVar9 != pVar6" identifier != identifier) )) ;) (expression_statement "bVar7 = row_info->color_type;" (assignment_expression "bVar7 = row_info->color_type" identifier = (field_expression "row_info->color_type" identifier -> field_identifier)) ;) (expression_statement "pVar4 = row_info->bit_depth;" (assignment_expression "pVar4 = row_info->bit_depth" identifier = (field_expression "row_info->bit_depth" identifier -> field_identifier)) ;) }) (else_clause "else {\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" else (compound_statement "{\n      if (pVar9 == 0) goto LAB_000245f4;\n      pVar6 = 0;\n      ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;\n      ppVar5 = row + pVar9 * 4 + -1;\n      do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);\n      bVar7 = row_info->color_type;\n      pVar4 = row_info->bit_depth;\n    }" { (if_statement "if (pVar9 == 0) goto LAB_000245f4;" if (parenthesized_expression "(pVar9 == 0)" ( (binary_expression "pVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "pVar6 = 0;" (assignment_expression "pVar6 = 0" identifier = number_literal) ;) (expression_statement "ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4;" (assignment_expression "ppVar2 = row + pVar9 * 4 + -1 + pVar9 * 4" identifier = (binary_expression "row + pVar9 * 4 + -1 + pVar9 * 4" (binary_expression "row + pVar9 * 4 + -1" (binary_expression "row + pVar9 * 4" identifier + (binary_expression "pVar9 * 4" identifier * number_literal)) + number_literal) + (binary_expression "pVar9 * 4" identifier * number_literal))) ;) (expression_statement "ppVar5 = row + pVar9 * 4 + -1;" (assignment_expression "ppVar5 = row + pVar9 * 4 + -1" identifier = (binary_expression "row + pVar9 * 4 + -1" (binary_expression "row + pVar9 * 4" identifier + (binary_expression "pVar9 * 4" identifier * number_literal)) + number_literal)) ;) (do_statement "do {\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      } while (pVar9 != pVar6);" do (compound_statement "{\n        pVar6 = pVar6 + 1;\n        *ppVar2 = *ppVar5;\n        ppVar2[-1] = ppVar5[-1];\n        ppVar2[-2] = ppVar5[-2];\n        ppVar2[-3] = ppVar5[-3];\n        ppVar2[-4] = ppVar5[-2];\n        ppVar2[-5] = ppVar5[-3];\n        ppVar2[-6] = ppVar5[-2];\n        ppVar2[-7] = ppVar5[-3];\n        ppVar2 = ppVar2 + -8;\n        ppVar5 = ppVar5 + -4;\n      }" { (expression_statement "pVar6 = pVar6 + 1;" (assignment_expression "pVar6 = pVar6 + 1" identifier = (binary_expression "pVar6 + 1" identifier + number_literal)) ;) (expression_statement "*ppVar2 = *ppVar5;" (assignment_expression "*ppVar2 = *ppVar5" (pointer_expression "*ppVar2" * identifier) = (pointer_expression "*ppVar5" * identifier)) ;) (expression_statement "ppVar2[-1] = ppVar5[-1];" (assignment_expression "ppVar2[-1] = ppVar5[-1]" (subscript_expression "ppVar2[-1]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-1]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-2] = ppVar5[-2];" (assignment_expression "ppVar2[-2] = ppVar5[-2]" (subscript_expression "ppVar2[-2]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-2]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-3] = ppVar5[-3];" (assignment_expression "ppVar2[-3] = ppVar5[-3]" (subscript_expression "ppVar2[-3]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-3]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-4] = ppVar5[-2];" (assignment_expression "ppVar2[-4] = ppVar5[-2]" (subscript_expression "ppVar2[-4]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-2]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-5] = ppVar5[-3];" (assignment_expression "ppVar2[-5] = ppVar5[-3]" (subscript_expression "ppVar2[-5]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-3]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-6] = ppVar5[-2];" (assignment_expression "ppVar2[-6] = ppVar5[-2]" (subscript_expression "ppVar2[-6]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-2]" identifier [ number_literal ])) ;) (expression_statement "ppVar2[-7] = ppVar5[-3];" (assignment_expression "ppVar2[-7] = ppVar5[-3]" (subscript_expression "ppVar2[-7]" identifier [ number_literal ]) = (subscript_expression "ppVar5[-3]" identifier [ number_literal ])) ;) (expression_statement "ppVar2 = ppVar2 + -8;" (assignment_expression "ppVar2 = ppVar2 + -8" identifier = (binary_expression "ppVar2 + -8" identifier + number_literal)) ;) (expression_statement "ppVar5 = ppVar5 + -4;" (assignment_expression "ppVar5 = ppVar5 + -4" identifier = (binary_expression "ppVar5 + -4" identifier + number_literal)) ;) }) while (parenthesized_expression "(pVar9 != pVar6)" ( (binary_expression "pVar9 != pVar6" identifier != identifier) )) ;) (expression_statement "bVar7 = row_info->color_type;" (assignment_expression "bVar7 = row_info->color_type" identifier = (field_expression "row_info->color_type" identifier -> field_identifier)) ;) (expression_statement "pVar4 = row_info->bit_depth;" (assignment_expression "pVar4 = row_info->bit_depth" identifier = (field_expression "row_info->bit_depth" identifier -> field_identifier)) ;) }))) }))) (expression_statement "row_info->color_type = bVar7 | 2;" (assignment_expression "row_info->color_type = bVar7 | 2" (field_expression "row_info->color_type" identifier -> field_identifier) = (binary_expression "bVar7 | 2" identifier | number_literal)) ;) (expression_statement "pVar3 = row_info->channels + '\x02';" (assignment_expression "pVar3 = row_info->channels + '\x02'" identifier = (binary_expression "row_info->channels + '\x02'" (field_expression "row_info->channels" identifier -> field_identifier) + (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "bVar7 = pVar3 * pVar4;" (assignment_expression "bVar7 = pVar3 * pVar4" identifier = (binary_expression "pVar3 * pVar4" identifier * identifier)) ;) (expression_statement "row_info->channels = pVar3;" (assignment_expression "row_info->channels = pVar3" (field_expression "row_info->channels" identifier -> field_identifier) = identifier) ;) (expression_statement "row_info->pixel_depth = bVar7;" (assignment_expression "row_info->pixel_depth = bVar7" (field_expression "row_info->pixel_depth" identifier -> field_identifier) = identifier) ;) (labeled_statement "joined_r0x00024618:\n  if (bVar7 < 8) {\n    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;\n    return;\n  }" statement_identifier : (if_statement "if (bVar7 < 8) {\n    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;\n    return;\n  }" if (parenthesized_expression "(bVar7 < 8)" ( (binary_expression "bVar7 < 8" identifier < number_literal) )) (compound_statement "{\n    row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;\n    return;\n  }" { (expression_statement "row_info->rowbytes = bVar7 * pVar9 + 7 >> 3;" (assignment_expression "row_info->rowbytes = bVar7 * pVar9 + 7 >> 3" (field_expression "row_info->rowbytes" identifier -> field_identifier) = (binary_expression "bVar7 * pVar9 + 7 >> 3" (binary_expression "bVar7 * pVar9 + 7" (binary_expression "bVar7 * pVar9" identifier * identifier) + number_literal) >> number_literal)) ;) (return_statement "return;" return ;) }))) (expression_statement "row_info->rowbytes = (bVar7 >> 3) * pVar9;" (assignment_expression "row_info->rowbytes = (bVar7 >> 3) * pVar9" (field_expression "row_info->rowbytes" identifier -> field_identifier) = (binary_expression "(bVar7 >> 3) * pVar9" (parenthesized_expression "(bVar7 >> 3)" ( (binary_expression "bVar7 >> 3" identifier >> number_literal) )) * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00024510(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}\n\n" (function_definition "void FUN_00024510(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}" primitive_type (function_declarator "FUN_00024510(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (expression_statement "bVar8 = *(byte *)((int)param_1 + 9);" (assignment_expression "bVar8 = *(byte *)((int)param_1 + 9)" identifier = (pointer_expression "*(byte *)((int)param_1 + 9)" * (cast_expression "(byte *)((int)param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (bVar8 < 8) {\n    return;\n  }" if (parenthesized_expression "(bVar8 < 8)" ( (binary_expression "bVar8 < 8" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "bVar1 = *(byte *)(param_1 + 2);" (assignment_expression "bVar1 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (if_statement "if ((bVar1 & 2) != 0) {\n    return;\n  }" if (parenthesized_expression "((bVar1 & 2) != 0)" ( (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar10 = *param_1;" (assignment_expression "iVar10 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" { (if_statement "if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" if (parenthesized_expression "(bVar8 == 8)" ( (binary_expression "bVar8 == 8" identifier == number_literal) )) (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 + -1)" ( (binary_expression "param_2 + iVar10 + -1" (binary_expression "param_2 + iVar10" identifier + identifier) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "puVar3 = puVar6 + iVar10 * 2;" (assignment_expression "puVar3 = puVar6 + iVar10 * 2" identifier = (binary_expression "puVar6 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal))) ;) (do_statement "do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));" do (compound_statement "{\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      }" { (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar9 = puVar6 + -1;" (assignment_expression "puVar9 = puVar6 + -1" identifier = (binary_expression "puVar6 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3[-1] = uVar2;" (assignment_expression "puVar3[-1] = uVar2" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[-2] = *puVar6;" (assignment_expression "puVar3[-2] = *puVar6" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3 = puVar3 + -3;" (assignment_expression "puVar3 = puVar3 + -3" identifier = (binary_expression "puVar3 + -3" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" identifier = identifier) ;) }) while (parenthesized_expression "(puVar9 != (undefined1 *)(param_2 + -1))" ( (binary_expression "puVar9 != (undefined1 *)(param_2 + -1)" identifier != (cast_expression "(undefined1 *)(param_2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + -1)" ( (binary_expression "param_2 + -1" identifier + number_literal) )))) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" else (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 * 2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 * 2 + -1)" ( (binary_expression "param_2 + iVar10 * 2 + -1" (binary_expression "param_2 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }" { (labeled_statement "LAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;" statement_identifier : (expression_statement "*(byte *)(param_1 + 2) = bVar1 | 2;" (assignment_expression "*(byte *)(param_1 + 2) = bVar1 | 2" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (binary_expression "bVar1 | 2" identifier | number_literal)) ;)) (expression_statement "bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;" (assignment_expression "bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8" identifier = (binary_expression "(*(char *)((int)param_1 + 10) + '\x02') * bVar8" (parenthesized_expression "(*(char *)((int)param_1 + 10) + '\x02')" ( (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (char_literal "'\x02'" ' escape_sequence ')) )) * identifier)) ;) (expression_statement "*(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';" (assignment_expression "*(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "*(byte *)((int)param_1 + 0xb) = bVar8;" (assignment_expression "*(byte *)((int)param_1 + 0xb) = bVar8" (pointer_expression "*(byte *)((int)param_1 + 0xb)" * (cast_expression "(byte *)((int)param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xb)" ( (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (goto_statement "goto joined_r0x00024618;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = puVar6 + iVar10 * 4;" (assignment_expression "puVar3 = puVar6 + iVar10 * 4" identifier = (binary_expression "puVar6 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-1] = puVar6[-1];" (assignment_expression "puVar3[-1] = puVar6[-1]" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-2] = *puVar6;" (assignment_expression "puVar3[-2] = *puVar6" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-3] = puVar6[-1];" (assignment_expression "puVar3[-3] = puVar6[-1]" (subscript_expression "puVar3[-3]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-4] = *puVar6;" (assignment_expression "puVar3[-4] = *puVar6" (subscript_expression "puVar3[-4]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-5] = puVar6[-1];" (assignment_expression "puVar3[-5] = puVar6[-1]" (subscript_expression "puVar3[-5]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar3 + -6;" (assignment_expression "puVar3 = puVar3 + -6" identifier = (binary_expression "puVar3 + -6" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + -2;" (assignment_expression "puVar6 = puVar6 + -2" identifier = (binary_expression "puVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != iVar7)" ( (binary_expression "iVar10 != iVar7" identifier != identifier) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) }) (else_clause "else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" else (compound_statement "{\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" { (if_statement "if (bVar1 != 4) goto LAB_000245f4;" if (parenthesized_expression "(bVar1 != 4)" ( (binary_expression "bVar1 != 4" identifier != number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (if_statement "if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" if (parenthesized_expression "(bVar8 == 8)" ( (binary_expression "bVar8 == 8" identifier == number_literal) )) (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 * 2 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 * 2 + -1)" ( (binary_expression "param_2 + iVar10 * 2 + -1" (binary_expression "param_2 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = puVar6 + iVar10 * 2;" (assignment_expression "puVar3 = puVar6 + iVar10 * 2" identifier = (binary_expression "puVar6 + iVar10 * 2" identifier + (binary_expression "iVar10 * 2" identifier * number_literal))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar2 = puVar6[-1];" (assignment_expression "uVar2 = puVar6[-1]" identifier = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-1] = uVar2;" (assignment_expression "puVar3[-1] = uVar2" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[-2] = uVar2;" (assignment_expression "puVar3[-2] = uVar2" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[-3] = puVar6[-1];" (assignment_expression "puVar3[-3] = puVar6[-1]" (subscript_expression "puVar3[-3]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar3 + -4;" (assignment_expression "puVar3 = puVar3 + -4" identifier = (binary_expression "puVar3 + -4" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + -2;" (assignment_expression "puVar6 = puVar6 + -2" identifier = (binary_expression "puVar6 + -2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != iVar7)" ( (binary_expression "iVar10 != iVar7" identifier != identifier) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" else (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" { (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1)" identifier = (cast_expression "(undefined1 *)(param_2 + iVar10 * 4 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + iVar10 * 4 + -1)" ( (binary_expression "param_2 + iVar10 * 4 + -1" (binary_expression "param_2 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal)) + number_literal) )))) ;) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000245f4;" goto statement_identifier ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = puVar6 + iVar10 * 4;" (assignment_expression "puVar3 = puVar6 + iVar10 * 4" identifier = (binary_expression "puVar6 + iVar10 * 4" identifier + (binary_expression "iVar10 * 4" identifier * number_literal))) ;) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);" do (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      }" { (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar3[-1] = puVar6[-1];" (assignment_expression "puVar3[-1] = puVar6[-1]" (subscript_expression "puVar3[-1]" identifier [ number_literal ]) = (subscript_expression "puVar6[-1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-2] = puVar6[-2];" (assignment_expression "puVar3[-2] = puVar6[-2]" (subscript_expression "puVar3[-2]" identifier [ number_literal ]) = (subscript_expression "puVar6[-2]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-3] = puVar6[-3];" (assignment_expression "puVar3[-3] = puVar6[-3]" (subscript_expression "puVar3[-3]" identifier [ number_literal ]) = (subscript_expression "puVar6[-3]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-4] = puVar6[-2];" (assignment_expression "puVar3[-4] = puVar6[-2]" (subscript_expression "puVar3[-4]" identifier [ number_literal ]) = (subscript_expression "puVar6[-2]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-5] = puVar6[-3];" (assignment_expression "puVar3[-5] = puVar6[-3]" (subscript_expression "puVar3[-5]" identifier [ number_literal ]) = (subscript_expression "puVar6[-3]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-6] = puVar6[-2];" (assignment_expression "puVar3[-6] = puVar6[-2]" (subscript_expression "puVar3[-6]" identifier [ number_literal ]) = (subscript_expression "puVar6[-2]" identifier [ number_literal ])) ;) (expression_statement "puVar3[-7] = puVar6[-3];" (assignment_expression "puVar3[-7] = puVar6[-3]" (subscript_expression "puVar3[-7]" identifier [ number_literal ]) = (subscript_expression "puVar6[-3]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar3 + -8;" (assignment_expression "puVar3 = puVar3 + -8" identifier = (binary_expression "puVar3 + -8" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + -4;" (assignment_expression "puVar6 = puVar6 + -4" identifier = (binary_expression "puVar6 + -4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar10 != iVar7)" ( (binary_expression "iVar10 != iVar7" identifier != identifier) )) ;) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" identifier = (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" identifier = (pointer_expression "*(char *)((int)param_1 + 9)" * (cast_expression "(char *)((int)param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 9)" ( (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) }))) }))) (expression_statement "*(byte *)(param_1 + 2) = bVar8 | 2;" (assignment_expression "*(byte *)(param_1 + 2) = bVar8 | 2" (pointer_expression "*(byte *)(param_1 + 2)" * (cast_expression "(byte *)(param_1 + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = (binary_expression "bVar8 | 2" identifier | number_literal)) ;) (expression_statement "cVar4 = *(char *)((int)param_1 + 10) + '\x02';" (assignment_expression "cVar4 = *(char *)((int)param_1 + 10) + '\x02'" identifier = (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (char_literal "'\x02'" ' escape_sequence '))) ;) (expression_statement "bVar8 = cVar4 * cVar5;" (assignment_expression "bVar8 = cVar4 * cVar5" identifier = (binary_expression "cVar4 * cVar5" identifier * identifier)) ;) (expression_statement "*(char *)((int)param_1 + 10) = cVar4;" (assignment_expression "*(char *)((int)param_1 + 10) = cVar4" (pointer_expression "*(char *)((int)param_1 + 10)" * (cast_expression "(char *)((int)param_1 + 10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 10)" ( (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(byte *)((int)param_1 + 0xb) = bVar8;" (assignment_expression "*(byte *)((int)param_1 + 0xb) = bVar8" (pointer_expression "*(byte *)((int)param_1 + 0xb)" * (cast_expression "(byte *)((int)param_1 + 0xb)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xb)" ( (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (labeled_statement "joined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" statement_identifier : (if_statement "if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" if (parenthesized_expression "(bVar8 < 8)" ( (binary_expression "bVar8 < 8" identifier < number_literal) )) (compound_statement "{\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" { (expression_statement "param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;" (assignment_expression "param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(uint)bVar8 * iVar10 + 7 >> 3" (binary_expression "(uint)bVar8 * iVar10 + 7" (binary_expression "(uint)bVar8 * iVar10" (cast_expression "(uint)bVar8" ( (type_descriptor "uint" type_identifier) ) identifier) * identifier) + number_literal) >> number_literal)) ;) (return_statement "return;" return ;) }))) (expression_statement "param_1[1] = (uint)(bVar8 >> 3) * iVar10;" (assignment_expression "param_1[1] = (uint)(bVar8 >> 3) * iVar10" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "(uint)(bVar8 >> 3) * iVar10" (call_expression "(uint)(bVar8 >> 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar8 >> 3)" ( (binary_expression "bVar8 >> 3" identifier >> number_literal) ))) * identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + (char_literal ' escape_sequence ')) )) * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) }))) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * IDENT) + LIT) >> LIT)) ;) (return_statement return ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) * IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00024510(int *param_1,int param_2)\n\n{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00024510(int *param_1,int param_2)" (identifier "FUN_00024510") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined1 uVar2;\n  char cVar4;\n  undefined1 *puVar3;\n  char cVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  byte bVar8;\n  undefined1 *puVar9;\n  int iVar10;\n  \n  bVar8 = *(byte *)((int)param_1 + 9);\n  if (bVar8 < 8) {\n    return;\n  }\n  bVar1 = *(byte *)(param_1 + 2);\n  if ((bVar1 & 2) != 0) {\n    return;\n  }\n  iVar10 = *param_1;\n  if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  *(byte *)(param_1 + 2) = bVar8 | 2;\n  cVar4 = *(char *)((int)param_1 + 10) + '\x02';\n  bVar8 = cVar4 * cVar5;\n  *(char *)((int)param_1 + 10) = cVar4;\n  *(byte *)((int)param_1 + 0xb) = bVar8;\njoined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }\n  param_1[1] = (uint)(bVar8 >> 3) * iVar10;\n  return;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (expression_statement "bVar8 = *(byte *)((int)param_1 + 9);" (assignment_expression "bVar8 = *(byte *)((int)param_1 + 9)" (identifier "bVar8") (= "=") (pointer_expression "*(byte *)((int)param_1 + 9)" (* "*") (cast_expression "(byte *)((int)param_1 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")"))))) (; ";")) (if_statement "if (bVar8 < 8) {\n    return;\n  }" (if "if") (parenthesized_expression "(bVar8 < 8)" (( "(") (binary_expression "bVar8 < 8" (identifier "bVar8") (< "<") (number_literal "8")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "bVar1 = *(byte *)(param_1 + 2);" (assignment_expression "bVar1 = *(byte *)(param_1 + 2)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if ((bVar1 & 2) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((bVar1 & 2) != 0)" (( "(") (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" (( "(") (binary_expression "bVar1 & 2" (identifier "bVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar10 = *param_1;" (assignment_expression "iVar10 = *param_1" (identifier "iVar10") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (bVar1 == 0) {\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }\n  else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" (if "if") (parenthesized_expression "(bVar1 == 0)" (( "(") (binary_expression "bVar1 == 0" (identifier "bVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" ({ "{") (if_statement "if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" (if "if") (parenthesized_expression "(bVar8 == 8)" (( "(") (binary_expression "bVar8 == 8" (identifier "bVar8") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" ({ "{") (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 + -1)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)(param_2 + iVar10 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar10 + -1)" (( "(") (binary_expression "param_2 + iVar10 + -1" (binary_expression "param_2 + iVar10" (identifier "param_2") (+ "+") (identifier "iVar10")) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000245f4;" (goto "goto") (statement_identifier "LAB_000245f4") (; ";"))) (expression_statement "puVar3 = puVar6 + iVar10 * 2;" (assignment_expression "puVar3 = puVar6 + iVar10 * 2" (identifier "puVar3") (= "=") (binary_expression "puVar6 + iVar10 * 2" (identifier "puVar6") (+ "+") (binary_expression "iVar10 * 2" (identifier "iVar10") (* "*") (number_literal "2")))) (; ";")) (do_statement "do {\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      } while (puVar9 != (undefined1 *)(param_2 + -1));" (do "do") (compound_statement "{\n        uVar2 = *puVar6;\n        puVar9 = puVar6 + -1;\n        *puVar3 = uVar2;\n        puVar3[-1] = uVar2;\n        puVar3[-2] = *puVar6;\n        puVar3 = puVar3 + -3;\n        puVar6 = puVar9;\n      }" ({ "{") (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" (identifier "uVar2") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar9 = puVar6 + -1;" (assignment_expression "puVar9 = puVar6 + -1" (identifier "puVar9") (= "=") (binary_expression "puVar6 + -1" (identifier "puVar6") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar3[-1] = uVar2;" (assignment_expression "puVar3[-1] = uVar2" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar3[-2] = *puVar6;" (assignment_expression "puVar3[-2] = *puVar6" (subscript_expression "puVar3[-2]" (identifier "puVar3") ([ "[") (number_literal "-2") (] "]")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar3 = puVar3 + -3;" (assignment_expression "puVar3 = puVar3 + -3" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -3" (identifier "puVar3") (+ "+") (number_literal "-3"))) (; ";")) (expression_statement "puVar6 = puVar9;" (assignment_expression "puVar6 = puVar9" (identifier "puVar6") (= "=") (identifier "puVar9")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar9 != (undefined1 *)(param_2 + -1))" (( "(") (binary_expression "puVar9 != (undefined1 *)(param_2 + -1)" (identifier "puVar9") (!= "!=") (cast_expression "(undefined1 *)(param_2 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + -1)" (( "(") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1")) () ")")))) () ")")) (; ";")) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" (identifier "bVar8") (= "=") (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" (identifier "cVar5") (= "=") (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" (else "else") (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" ({ "{") (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)(param_2 + iVar10 * 2 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar10 * 2 + -1)" (( "(") (binary_expression "param_2 + iVar10 * 2 + -1" (binary_expression "param_2 + iVar10 * 2" (identifier "param_2") (+ "+") (binary_expression "iVar10 * 2" (identifier "iVar10") (* "*") (number_literal "2"))) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (if_statement "if (iVar10 == 0) {\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;\n        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;\n        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';\n        *(byte *)((int)param_1 + 0xb) = bVar8;\n        goto joined_r0x00024618;\n      }" ({ "{") (labeled_statement "LAB_000245f4:\n        *(byte *)(param_1 + 2) = bVar1 | 2;" (statement_identifier "LAB_000245f4") (: ":") (expression_statement "*(byte *)(param_1 + 2) = bVar1 | 2;" (assignment_expression "*(byte *)(param_1 + 2) = bVar1 | 2" (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "bVar1 | 2" (identifier "bVar1") (| "|") (number_literal "2"))) (; ";"))) (expression_statement "bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;" (assignment_expression "bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8" (identifier "bVar8") (= "=") (binary_expression "(*(char *)((int)param_1 + 10) + '\x02') * bVar8" (parenthesized_expression "(*(char *)((int)param_1 + 10) + '\x02')" (( "(") (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" (* "*") (cast_expression "(char *)((int)param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (+ "+") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (* "*") (identifier "bVar8"))) (; ";")) (expression_statement "*(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';" (assignment_expression "*(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" (* "*") (cast_expression "(char *)((int)param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (= "=") (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" (* "*") (cast_expression "(char *)((int)param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (+ "+") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'")))) (; ";")) (expression_statement "*(byte *)((int)param_1 + 0xb) = bVar8;" (assignment_expression "*(byte *)((int)param_1 + 0xb) = bVar8" (pointer_expression "*(byte *)((int)param_1 + 0xb)" (* "*") (cast_expression "(byte *)((int)param_1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xb)" (( "(") (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xb")) () ")")))) (= "=") (identifier "bVar8")) (; ";")) (goto_statement "goto joined_r0x00024618;" (goto "goto") (statement_identifier "joined_r0x00024618") (; ";")) (} "}"))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar6 + iVar10 * 4;" (assignment_expression "puVar3 = puVar6 + iVar10 * 4" (identifier "puVar3") (= "=") (binary_expression "puVar6 + iVar10 * 4" (identifier "puVar6") (+ "+") (binary_expression "iVar10 * 4" (identifier "iVar10") (* "*") (number_literal "4")))) (; ";")) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);" (do "do") (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = *puVar6;\n        puVar3[-3] = puVar6[-1];\n        puVar3[-4] = *puVar6;\n        puVar3[-5] = puVar6[-1];\n        puVar3 = puVar3 + -6;\n        puVar6 = puVar6 + -2;\n      }" ({ "{") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar3[-1] = puVar6[-1];" (assignment_expression "puVar3[-1] = puVar6[-1]" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3[-2] = *puVar6;" (assignment_expression "puVar3[-2] = *puVar6" (subscript_expression "puVar3[-2]" (identifier "puVar3") ([ "[") (number_literal "-2") (] "]")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar3[-3] = puVar6[-1];" (assignment_expression "puVar3[-3] = puVar6[-1]" (subscript_expression "puVar3[-3]" (identifier "puVar3") ([ "[") (number_literal "-3") (] "]")) (= "=") (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3[-4] = *puVar6;" (assignment_expression "puVar3[-4] = *puVar6" (subscript_expression "puVar3[-4]" (identifier "puVar3") ([ "[") (number_literal "-4") (] "]")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar3[-5] = puVar6[-1];" (assignment_expression "puVar3[-5] = puVar6[-1]" (subscript_expression "puVar3[-5]" (identifier "puVar3") ([ "[") (number_literal "-5") (] "]")) (= "=") (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3 = puVar3 + -6;" (assignment_expression "puVar3 = puVar3 + -6" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -6" (identifier "puVar3") (+ "+") (number_literal "-6"))) (; ";")) (expression_statement "puVar6 = puVar6 + -2;" (assignment_expression "puVar6 = puVar6 + -2" (identifier "puVar6") (= "=") (binary_expression "puVar6 + -2" (identifier "puVar6") (+ "+") (number_literal "-2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 != iVar7)" (( "(") (binary_expression "iVar10 != iVar7" (identifier "iVar10") (!= "!=") (identifier "iVar7")) () ")")) (; ";")) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" (identifier "bVar8") (= "=") (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" (identifier "cVar5") (= "=") (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")"))))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" (else "else") (compound_statement "{\n    if (bVar1 != 4) goto LAB_000245f4;\n    if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n  }" ({ "{") (if_statement "if (bVar1 != 4) goto LAB_000245f4;" (if "if") (parenthesized_expression "(bVar1 != 4)" (( "(") (binary_expression "bVar1 != 4" (identifier "bVar1") (!= "!=") (number_literal "4")) () ")")) (goto_statement "goto LAB_000245f4;" (goto "goto") (statement_identifier "LAB_000245f4") (; ";"))) (if_statement "if (bVar8 == 8) {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }\n    else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" (if "if") (parenthesized_expression "(bVar8 == 8)" (( "(") (binary_expression "bVar8 == 8" (identifier "bVar8") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 2;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" ({ "{") (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)(param_2 + iVar10 * 2 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar10 * 2 + -1)" (( "(") (binary_expression "param_2 + iVar10 * 2 + -1" (binary_expression "param_2 + iVar10 * 2" (identifier "param_2") (+ "+") (binary_expression "iVar10 * 2" (identifier "iVar10") (* "*") (number_literal "2"))) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000245f4;" (goto "goto") (statement_identifier "LAB_000245f4") (; ";"))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar6 + iVar10 * 2;" (assignment_expression "puVar3 = puVar6 + iVar10 * 2" (identifier "puVar3") (= "=") (binary_expression "puVar6 + iVar10 * 2" (identifier "puVar6") (+ "+") (binary_expression "iVar10 * 2" (identifier "iVar10") (* "*") (number_literal "2")))) (; ";")) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      } while (iVar10 != iVar7);" (do "do") (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        uVar2 = puVar6[-1];\n        puVar3[-1] = uVar2;\n        puVar3[-2] = uVar2;\n        puVar3[-3] = puVar6[-1];\n        puVar3 = puVar3 + -4;\n        puVar6 = puVar6 + -2;\n      }" ({ "{") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "uVar2 = puVar6[-1];" (assignment_expression "uVar2 = puVar6[-1]" (identifier "uVar2") (= "=") (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3[-1] = uVar2;" (assignment_expression "puVar3[-1] = uVar2" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar3[-2] = uVar2;" (assignment_expression "puVar3[-2] = uVar2" (subscript_expression "puVar3[-2]" (identifier "puVar3") ([ "[") (number_literal "-2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar3[-3] = puVar6[-1];" (assignment_expression "puVar3[-3] = puVar6[-1]" (subscript_expression "puVar3[-3]" (identifier "puVar3") ([ "[") (number_literal "-3") (] "]")) (= "=") (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3 = puVar3 + -4;" (assignment_expression "puVar3 = puVar3 + -4" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -4" (identifier "puVar3") (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "puVar6 = puVar6 + -2;" (assignment_expression "puVar6 = puVar6 + -2" (identifier "puVar6") (= "=") (binary_expression "puVar6 + -2" (identifier "puVar6") (+ "+") (number_literal "-2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 != iVar7)" (( "(") (binary_expression "iVar10 != iVar7" (identifier "iVar10") (!= "!=") (identifier "iVar7")) () ")")) (; ";")) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" (identifier "bVar8") (= "=") (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" (identifier "cVar5") (= "=") (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" (else "else") (compound_statement "{\n      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);\n      if (iVar10 == 0) goto LAB_000245f4;\n      iVar7 = 0;\n      puVar3 = puVar6 + iVar10 * 4;\n      do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);\n      bVar8 = *(byte *)(param_1 + 2);\n      cVar5 = *(char *)((int)param_1 + 9);\n    }" ({ "{") (expression_statement "puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);" (assignment_expression "puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1)" (identifier "puVar6") (= "=") (cast_expression "(undefined1 *)(param_2 + iVar10 * 4 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + iVar10 * 4 + -1)" (( "(") (binary_expression "param_2 + iVar10 * 4 + -1" (binary_expression "param_2 + iVar10 * 4" (identifier "param_2") (+ "+") (binary_expression "iVar10 * 4" (identifier "iVar10") (* "*") (number_literal "4"))) (+ "+") (number_literal "-1")) () ")")))) (; ";")) (if_statement "if (iVar10 == 0) goto LAB_000245f4;" (if "if") (parenthesized_expression "(iVar10 == 0)" (( "(") (binary_expression "iVar10 == 0" (identifier "iVar10") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000245f4;" (goto "goto") (statement_identifier "LAB_000245f4") (; ";"))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar6 + iVar10 * 4;" (assignment_expression "puVar3 = puVar6 + iVar10 * 4" (identifier "puVar3") (= "=") (binary_expression "puVar6 + iVar10 * 4" (identifier "puVar6") (+ "+") (binary_expression "iVar10 * 4" (identifier "iVar10") (* "*") (number_literal "4")))) (; ";")) (do_statement "do {\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      } while (iVar10 != iVar7);" (do "do") (compound_statement "{\n        iVar7 = iVar7 + 1;\n        *puVar3 = *puVar6;\n        puVar3[-1] = puVar6[-1];\n        puVar3[-2] = puVar6[-2];\n        puVar3[-3] = puVar6[-3];\n        puVar3[-4] = puVar6[-2];\n        puVar3[-5] = puVar6[-3];\n        puVar3[-6] = puVar6[-2];\n        puVar3[-7] = puVar6[-3];\n        puVar3 = puVar3 + -8;\n        puVar6 = puVar6 + -4;\n      }" ({ "{") (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = *puVar6;" (assignment_expression "*puVar3 = *puVar6" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar3[-1] = puVar6[-1];" (assignment_expression "puVar3[-1] = puVar6[-1]" (subscript_expression "puVar3[-1]" (identifier "puVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (subscript_expression "puVar6[-1]" (identifier "puVar6") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "puVar3[-2] = puVar6[-2];" (assignment_expression "puVar3[-2] = puVar6[-2]" (subscript_expression "puVar3[-2]" (identifier "puVar3") ([ "[") (number_literal "-2") (] "]")) (= "=") (subscript_expression "puVar6[-2]" (identifier "puVar6") ([ "[") (number_literal "-2") (] "]"))) (; ";")) (expression_statement "puVar3[-3] = puVar6[-3];" (assignment_expression "puVar3[-3] = puVar6[-3]" (subscript_expression "puVar3[-3]" (identifier "puVar3") ([ "[") (number_literal "-3") (] "]")) (= "=") (subscript_expression "puVar6[-3]" (identifier "puVar6") ([ "[") (number_literal "-3") (] "]"))) (; ";")) (expression_statement "puVar3[-4] = puVar6[-2];" (assignment_expression "puVar3[-4] = puVar6[-2]" (subscript_expression "puVar3[-4]" (identifier "puVar3") ([ "[") (number_literal "-4") (] "]")) (= "=") (subscript_expression "puVar6[-2]" (identifier "puVar6") ([ "[") (number_literal "-2") (] "]"))) (; ";")) (expression_statement "puVar3[-5] = puVar6[-3];" (assignment_expression "puVar3[-5] = puVar6[-3]" (subscript_expression "puVar3[-5]" (identifier "puVar3") ([ "[") (number_literal "-5") (] "]")) (= "=") (subscript_expression "puVar6[-3]" (identifier "puVar6") ([ "[") (number_literal "-3") (] "]"))) (; ";")) (expression_statement "puVar3[-6] = puVar6[-2];" (assignment_expression "puVar3[-6] = puVar6[-2]" (subscript_expression "puVar3[-6]" (identifier "puVar3") ([ "[") (number_literal "-6") (] "]")) (= "=") (subscript_expression "puVar6[-2]" (identifier "puVar6") ([ "[") (number_literal "-2") (] "]"))) (; ";")) (expression_statement "puVar3[-7] = puVar6[-3];" (assignment_expression "puVar3[-7] = puVar6[-3]" (subscript_expression "puVar3[-7]" (identifier "puVar3") ([ "[") (number_literal "-7") (] "]")) (= "=") (subscript_expression "puVar6[-3]" (identifier "puVar6") ([ "[") (number_literal "-3") (] "]"))) (; ";")) (expression_statement "puVar3 = puVar3 + -8;" (assignment_expression "puVar3 = puVar3 + -8" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -8" (identifier "puVar3") (+ "+") (number_literal "-8"))) (; ";")) (expression_statement "puVar6 = puVar6 + -4;" (assignment_expression "puVar6 = puVar6 + -4" (identifier "puVar6") (= "=") (binary_expression "puVar6 + -4" (identifier "puVar6") (+ "+") (number_literal "-4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 != iVar7)" (( "(") (binary_expression "iVar10 != iVar7" (identifier "iVar10") (!= "!=") (identifier "iVar7")) () ")")) (; ";")) (expression_statement "bVar8 = *(byte *)(param_1 + 2);" (assignment_expression "bVar8 = *(byte *)(param_1 + 2)" (identifier "bVar8") (= "=") (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "cVar5 = *(char *)((int)param_1 + 9);" (assignment_expression "cVar5 = *(char *)((int)param_1 + 9)" (identifier "cVar5") (= "=") (pointer_expression "*(char *)((int)param_1 + 9)" (* "*") (cast_expression "(char *)((int)param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 9)" (( "(") (binary_expression "(int)param_1 + 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "9")) () ")"))))) (; ";")) (} "}")))) (} "}")))) (expression_statement "*(byte *)(param_1 + 2) = bVar8 | 2;" (assignment_expression "*(byte *)(param_1 + 2) = bVar8 | 2" (pointer_expression "*(byte *)(param_1 + 2)" (* "*") (cast_expression "(byte *)(param_1 + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "bVar8 | 2" (identifier "bVar8") (| "|") (number_literal "2"))) (; ";")) (expression_statement "cVar4 = *(char *)((int)param_1 + 10) + '\x02';" (assignment_expression "cVar4 = *(char *)((int)param_1 + 10) + '\x02'" (identifier "cVar4") (= "=") (binary_expression "*(char *)((int)param_1 + 10) + '\x02'" (pointer_expression "*(char *)((int)param_1 + 10)" (* "*") (cast_expression "(char *)((int)param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (+ "+") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'")))) (; ";")) (expression_statement "bVar8 = cVar4 * cVar5;" (assignment_expression "bVar8 = cVar4 * cVar5" (identifier "bVar8") (= "=") (binary_expression "cVar4 * cVar5" (identifier "cVar4") (* "*") (identifier "cVar5"))) (; ";")) (expression_statement "*(char *)((int)param_1 + 10) = cVar4;" (assignment_expression "*(char *)((int)param_1 + 10) = cVar4" (pointer_expression "*(char *)((int)param_1 + 10)" (* "*") (cast_expression "(char *)((int)param_1 + 10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 10)" (( "(") (binary_expression "(int)param_1 + 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "*(byte *)((int)param_1 + 0xb) = bVar8;" (assignment_expression "*(byte *)((int)param_1 + 0xb) = bVar8" (pointer_expression "*(byte *)((int)param_1 + 0xb)" (* "*") (cast_expression "(byte *)((int)param_1 + 0xb)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xb)" (( "(") (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xb")) () ")")))) (= "=") (identifier "bVar8")) (; ";")) (labeled_statement "joined_r0x00024618:\n  if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" (statement_identifier "joined_r0x00024618") (: ":") (if_statement "if (bVar8 < 8) {\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" (if "if") (parenthesized_expression "(bVar8 < 8)" (( "(") (binary_expression "bVar8 < 8" (identifier "bVar8") (< "<") (number_literal "8")) () ")")) (compound_statement "{\n    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;\n    return;\n  }" ({ "{") (expression_statement "param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;" (assignment_expression "param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(uint)bVar8 * iVar10 + 7 >> 3" (binary_expression "(uint)bVar8 * iVar10 + 7" (binary_expression "(uint)bVar8 * iVar10" (cast_expression "(uint)bVar8" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar8")) (* "*") (identifier "iVar10")) (+ "+") (number_literal "7")) (>> ">>") (number_literal "3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "param_1[1] = (uint)(bVar8 >> 3) * iVar10;" (assignment_expression "param_1[1] = (uint)(bVar8 >> 3) * iVar10" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "(uint)(bVar8 >> 3) * iVar10" (call_expression "(uint)(bVar8 >> 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(bVar8 >> 3)" (( "(") (binary_expression "bVar8 >> 3" (identifier "bVar8") (>> ">>") (number_literal "3")) () ")"))) (* "*") (identifier "iVar10"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 row_info,type_2 var_4)

{
  type_3 var_2;
  type_4 var_9;
  type_4 *var_6;
  type_4 var_10;
  type_5 *row_width;
  type_2 var_5;
  type_5 var_8;
  type_3 var_1;
  type_2 var_7;
  type_5 var_3;
  
  var_1 = row_info->bit_depth;
  if (var_1 < 8) {
    return;
  }
  var_2 = row_info->color_type;
  if ((var_2 & 2) != 0) {
    return;
  }
  var_3 = row_info->width;
  if (var_2 == 0) {
    if (var_1 == 8) {
      if (var_3 == 0) goto LAB_000245f4;
      var_6 = var_4 + (var_3 - 1) + var_3 * 2;
      var_5 = var_4 + (var_3 - 1);
      do {
        var_10 = *var_5;
        var_7 = var_5 + -1;
        *var_6 = var_10;
        var_6[-1] = var_10;
        var_6[-2] = *var_5;
        var_6 = var_6 + -3;
        var_5 = var_7;
      } while (var_7 != var_4 + -1);
      var_1 = row_info->color_type;
      var_10 = row_info->bit_depth;
    }
    else {
      if (var_3 == 0) {
LAB_000245f4:
        row_info->color_type = var_2 | 2;
        var_1 = (row_info->channels + '\x02') * var_1;
        row_info->channels = row_info->channels + '\x02';
        row_info->pixel_depth = var_1;
        goto joined_r0x00024618;
      }
      var_8 = 0;
      var_6 = var_4 + var_3 * 2 + -1 + var_3 * 4;
      var_5 = var_4 + var_3 * 2 + -1;
      do {
        var_8 = var_8 + 1;
        *var_6 = *var_5;
        var_6[-1] = var_5[-1];
        var_6[-2] = *var_5;
        var_6[-3] = var_5[-1];
        var_6[-4] = *var_5;
        var_6[-5] = var_5[-1];
        var_6 = var_6 + -6;
        var_5 = var_5 + -2;
      } while (var_3 != var_8);
      var_1 = row_info->color_type;
      var_10 = row_info->bit_depth;
    }
  }
  else {
    if (var_2 != 4) goto LAB_000245f4;
    if (var_1 == 8) {
      if (var_3 == 0) goto LAB_000245f4;
      var_8 = 0;
      var_6 = var_4 + var_3 * 2 + -1 + var_3 * 2;
      var_5 = var_4 + var_3 * 2 + -1;
      do {
        var_8 = var_8 + 1;
        *var_6 = *var_5;
        var_10 = var_5[-1];
        var_6[-1] = var_10;
        var_6[-2] = var_10;
        var_6[-3] = var_5[-1];
        var_6 = var_6 + -4;
        var_5 = var_5 + -2;
      } while (var_3 != var_8);
      var_1 = row_info->color_type;
      var_10 = row_info->bit_depth;
    }
    else {
      if (var_3 == 0) goto LAB_000245f4;
      var_8 = 0;
      var_6 = var_4 + var_3 * 4 + -1 + var_3 * 4;
      var_5 = var_4 + var_3 * 4 + -1;
      do {
        var_8 = var_8 + 1;
        *var_6 = *var_5;
        var_6[-1] = var_5[-1];
        var_6[-2] = var_5[-2];
        var_6[-3] = var_5[-3];
        var_6[-4] = var_5[-2];
        var_6[-5] = var_5[-3];
        var_6[-6] = var_5[-2];
        var_6[-7] = var_5[-3];
        var_6 = var_6 + -8;
        var_5 = var_5 + -4;
      } while (var_3 != var_8);
      var_1 = row_info->color_type;
      var_10 = row_info->bit_depth;
    }
  }
  row_info->color_type = var_1 | 2;
  var_9 = row_info->channels + '\x02';
  var_1 = var_9 * var_10;
  row_info->channels = var_9;
  row_info->pixel_depth = var_1;
joined_r0x00024618:
  if (var_1 < 8) {
    row_info->rowbytes = var_1 * var_3 + 7 >> 3;
    return;
  }
  row_info->rowbytes = (var_1 >> 3) * var_3;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (identifier)) right: (number_literal)) right: (number_literal)))) (return_statement)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)))) (return_statement))))

void MASKED(int *param_1,int param_2)

{
  byte bVar1;
  undefined1 uVar2;
  char cVar4;
  undefined1 *puVar3;
  char cVar5;
  undefined1 *puVar6;
  int iVar7;
  byte bVar8;
  undefined1 *puVar9;
  int iVar10;
  
  bVar8 = *(byte *)((int)param_1 + 9);
  if (bVar8 < 8) {
    return;
  }
  bVar1 = *(byte *)(param_1 + 2);
  if ((bVar1 & 2) != 0) {
    return;
  }
  iVar10 = *param_1;
  if (bVar1 == 0) {
    if (bVar8 == 8) {
      puVar6 = (undefined1 *)(param_2 + iVar10 + -1);
      if (iVar10 == 0) goto LAB_000245f4;
      puVar3 = puVar6 + iVar10 * 2;
      do {
        uVar2 = *puVar6;
        puVar9 = puVar6 + -1;
        *puVar3 = uVar2;
        puVar3[-1] = uVar2;
        puVar3[-2] = *puVar6;
        puVar3 = puVar3 + -3;
        puVar6 = puVar9;
      } while (puVar9 != (undefined1 *)(param_2 + -1));
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
    else {
      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);
      if (iVar10 == 0) {
LAB_000245f4:
        *(byte *)(param_1 + 2) = bVar1 | 2;
        bVar8 = (*(char *)((int)param_1 + 10) + '\x02') * bVar8;
        *(char *)((int)param_1 + 10) = *(char *)((int)param_1 + 10) + '\x02';
        *(byte *)((int)param_1 + 0xb) = bVar8;
        goto joined_r0x00024618;
      }
      iVar7 = 0;
      puVar3 = puVar6 + iVar10 * 4;
      do {
        iVar7 = iVar7 + 1;
        *puVar3 = *puVar6;
        puVar3[-1] = puVar6[-1];
        puVar3[-2] = *puVar6;
        puVar3[-3] = puVar6[-1];
        puVar3[-4] = *puVar6;
        puVar3[-5] = puVar6[-1];
        puVar3 = puVar3 + -6;
        puVar6 = puVar6 + -2;
      } while (iVar10 != iVar7);
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
  }
  else {
    if (bVar1 != 4) goto LAB_000245f4;
    if (bVar8 == 8) {
      puVar6 = (undefined1 *)(param_2 + iVar10 * 2 + -1);
      if (iVar10 == 0) goto LAB_000245f4;
      iVar7 = 0;
      puVar3 = puVar6 + iVar10 * 2;
      do {
        iVar7 = iVar7 + 1;
        *puVar3 = *puVar6;
        uVar2 = puVar6[-1];
        puVar3[-1] = uVar2;
        puVar3[-2] = uVar2;
        puVar3[-3] = puVar6[-1];
        puVar3 = puVar3 + -4;
        puVar6 = puVar6 + -2;
      } while (iVar10 != iVar7);
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
    else {
      puVar6 = (undefined1 *)(param_2 + iVar10 * 4 + -1);
      if (iVar10 == 0) goto LAB_000245f4;
      iVar7 = 0;
      puVar3 = puVar6 + iVar10 * 4;
      do {
        iVar7 = iVar7 + 1;
        *puVar3 = *puVar6;
        puVar3[-1] = puVar6[-1];
        puVar3[-2] = puVar6[-2];
        puVar3[-3] = puVar6[-3];
        puVar3[-4] = puVar6[-2];
        puVar3[-5] = puVar6[-3];
        puVar3[-6] = puVar6[-2];
        puVar3[-7] = puVar6[-3];
        puVar3 = puVar3 + -8;
        puVar6 = puVar6 + -4;
      } while (iVar10 != iVar7);
      bVar8 = *(byte *)(param_1 + 2);
      cVar5 = *(char *)((int)param_1 + 9);
    }
  }
  *(byte *)(param_1 + 2) = bVar8 | 2;
  cVar4 = *(char *)((int)param_1 + 10) + '\x02';
  bVar8 = cVar4 * cVar5;
  *(char *)((int)param_1 + 10) = cVar4;
  *(byte *)((int)param_1 + 0xb) = bVar8;
joined_r0x00024618:
  if (bVar8 < 8) {
    param_1[1] = (uint)bVar8 * iVar10 + 7 >> 3;
    return;
  }
  param_1[1] = (uint)(bVar8 >> 3) * iVar10;
  return;
}

