
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void set_colorpairs(void)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  undefined4 uVar8;
  int iVar9;
  uint uVar10;
  int iVar11;
  int *piVar12;
  uint uVar13;
  short *psVar14;
  int iVar15;
  uint *puVar16;
  undefined4 *puVar17;
  code *pcVar18;
  
  puVar17 = (undefined4 *)PTR_color_combo_000779a8;
  puVar3 = PTR_interface_color_pair_000778e8;
  iVar15 = 1;
  (*(code *)PTR_start_color_00078184)();
  puVar2 = PTR_hilite_attribute_000777cc;
  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();
  puVar16 = (uint *)puVar3;
  do {
    pcVar18 = (code *)PTR_init_pair_00077fa4;
    psVar14 = (short *)*puVar17;
    if (psVar14 == (short *)0x0) {
      if (iVar15 == 7) {
        *(undefined4 *)(puVar3 + 0x18) = 0;
LAB_0001cefc:
        iVar5 = *(int *)PTR_syntaxes_000779ac;
        do {
          if (iVar5 == 0) {
            return;
          }
          piVar12 = *(int **)(iVar5 + 0x18);
          if (piVar12 != (int *)0x0) {
            uVar13 = 8;
            piVar7 = piVar12;
            do {
              if (piVar12 == piVar7) {
LAB_0001cf5c:
                uVar10 = uVar13;
                uVar13 = uVar13 + 1;
              }
              else {
                piVar6 = piVar12;
                if (*piVar7 != *piVar12) {
                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {
                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;
                  }
                  goto LAB_0001cf5c;
                }
LAB_0001cfbc:
                uVar10 = piVar6[1];
              }
              piVar7[1] = uVar10;
              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;
              piVar7 = (int *)piVar7[8];
            } while (piVar7 != (int *)0x0);
          }
          iVar5 = *(int *)(iVar5 + 0x20);
        } while( true );
      }
      if (iVar15 == 5) {
        (*(code *)PTR_init_pair_00077fa4)(5,7,1);
        puVar4 = PTR_free_0007810c;
        uVar8 = *puVar17;
        *(undefined4 *)(puVar3 + 0x10) = 0x200500;
        (*(code *)puVar4)(uVar8);
      }
      else {
        *puVar16 = *(uint *)puVar2;
      }
    }
    else {
      iVar9 = (int)*psVar14;
      iVar11 = (int)psVar14[1];
      if (iVar9 == -1) {
        if (iVar5 == -1) {
          iVar9 = 7;
          *psVar14 = 7;
          iVar1 = iVar11;
          goto joined_r0x0001ced4;
        }
      }
      else {
        iVar1 = iVar5;
        if (iVar11 == -1) {
joined_r0x0001ced4:
          if (iVar1 == -1) {
            iVar11 = 0;
            psVar14[1] = 0;
            pcVar18 = (code *)PTR_init_pair_00077fa4;
          }
        }
      }
      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);
      puVar4 = PTR_free_0007810c;
      uVar8 = *puVar17;
      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;
      (*(code *)puVar4)(uVar8);
      if (iVar15 == 7) goto LAB_0001cefc;
    }
    puVar17 = puVar17 + 1;
    iVar15 = iVar15 + 1;
    puVar16 = puVar16 + 1;
  } while( true );
}



void set_colorpairs(void)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  undefined4 uVar8;
  int iVar9;
  uint uVar10;
  int iVar11;
  int *piVar12;
  uint uVar13;
  short *psVar14;
  int iVar15;
  uint *puVar16;
  undefined4 *puVar17;
  code *pcVar18;
  
  puVar17 = (undefined4 *)PTR_color_combo_000779a8;
  puVar3 = PTR_interface_color_pair_000778e8;
  iVar15 = 1;
  (*(code *)PTR_start_color_00078184)();
  puVar2 = PTR_hilite_attribute_000777cc;
  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();
  puVar16 = (uint *)puVar3;
  do {
    pcVar18 = (code *)PTR_init_pair_00077fa4;
    psVar14 = (short *)*puVar17;
    if (psVar14 == (short *)0x0) {
      if (iVar15 == 7) {
        *(undefined4 *)(puVar3 + 0x18) = 0;
LAB_0001cefc:
        iVar5 = *(int *)PTR_syntaxes_000779ac;
        do {
          if (iVar5 == 0) {
            return;
          }
          piVar12 = *(int **)(iVar5 + 0x18);
          if (piVar12 != (int *)0x0) {
            uVar13 = 8;
            piVar7 = piVar12;
            do {
              if (piVar12 == piVar7) {
LAB_0001cf5c:
                uVar10 = uVar13;
                uVar13 = uVar13 + 1;
              }
              else {
                piVar6 = piVar12;
                if (*piVar7 != *piVar12) {
                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {
                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;
                  }
                  goto LAB_0001cf5c;
                }
LAB_0001cfbc:
                uVar10 = piVar6[1];
              }
              piVar7[1] = uVar10;
              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;
              piVar7 = (int *)piVar7[8];
            } while (piVar7 != (int *)0x0);
          }
          iVar5 = *(int *)(iVar5 + 0x20);
        } while( true );
      }
      if (iVar15 == 5) {
        (*(code *)PTR_init_pair_00077fa4)(5,7,1);
        puVar4 = PTR_free_0007810c;
        uVar8 = *puVar17;
        *(undefined4 *)(puVar3 + 0x10) = 0x200500;
        (*(code *)puVar4)(uVar8);
      }
      else {
        *puVar16 = *(uint *)puVar2;
      }
    }
    else {
      iVar9 = (int)*psVar14;
      iVar11 = (int)psVar14[1];
      if (iVar9 == -1) {
        if (iVar5 == -1) {
          iVar9 = 7;
          *psVar14 = 7;
          iVar1 = iVar11;
          goto joined_r0x0001ced4;
        }
      }
      else {
        iVar1 = iVar5;
        if (iVar11 == -1) {
joined_r0x0001ced4:
          if (iVar1 == -1) {
            iVar11 = 0;
            psVar14[1] = 0;
            pcVar18 = (code *)PTR_init_pair_00077fa4;
          }
        }
      }
      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);
      puVar4 = PTR_free_0007810c;
      uVar8 = *puVar17;
      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;
      (*(code *)puVar4)(uVar8);
      if (iVar15 == 7) goto LAB_0001cefc;
    }
    puVar17 = puVar17 + 1;
    iVar15 = iVar15 + 1;
    puVar16 = puVar16 + 1;
  } while( true );
}


lui gp,0x6
addiu gp,gp,0x275c
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x739c(gp)
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s8,0x38(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
li s6,0x6
sw s5,0x2c(sp)
lui s5,0x20
sw s4,0x28(sp)
sw s3,0x24(sp)
addiu s5,s5,0x500
sw s2,0x20(sp)
sw s1,0x1c(sp)
li s1,0x1
lw s4,-0x7c38(gp)
lw s7,-0x7b78(gp)
jalr t9
_sw s0,0x18(sp)
lw gp,0x10(sp)
lw t9,-0x73a4(gp)
lw s8,-0x7d54(gp)
jalr t9
_or s2,s4,zero
lw gp,0x10(sp)
b 0x0001ce98
_or s3,v0,zero
lh a1,0x0(s0)
beq a1,v0,0x0001cec4
_lh a2,0x2(s0)
beq a2,v0,0x0001cee8
_nop
lw t9,-0x757c(gp)
jalr t9
_seh a0,s1
sll v0,s1,0x8
lw gp,0x10(sp)
lw a1,0x8(s0)
lw a0,0x0(s7)
lw t9,-0x7414(gp)
or v0,a1,v0
jalr t9
_sw v0,0x0(s2)
li v0,0x7
beq s1,v0,0x0001cefc
_lw gp,0x10(sp)
addiu s7,s7,0x4
addiu s1,s1,0x1
addiu s2,s2,0x4
lw s0,0x0(s7)
bne s0,zero,0x0001ce40
_li v0,-0x1
addiu v0,s1,-0x1
beq v0,s6,0x0001cef8
_li v1,0x4
beq v0,v1,0x0001cfc4
_lw t9,-0x757c(gp)
lw v0,0x0(s8)
b 0x0001ce8c
_sw v0,0x0(s2)
bne s3,a1,0x0001ce58
_lw t9,-0x757c(gp)
li v0,0x7
li a1,0x7
bne a2,s3,0x0001ce58
_sh v0,0x0(s0)
or a2,zero,zero
b 0x0001ce54
_sh zero,0x2(s0)
bne s3,a2,0x0001ce58
_lw t9,-0x757c(gp)
b 0x0001cee0
_or a2,zero,zero
sw zero,0x18(s4)
lw v0,-0x7b74(gp)
lw t0,0x0(v0)
beq t0,zero,0x0001cf90
_lw ra,0x3c(sp)
lw a2,0x18(t0)
beq a2,zero,0x0001cf84
_nop
li a3,0x8
or v1,a2,zero
beq a2,v1,0x0001cf5c
_or a1,a3,zero
lw a1,0x0(v1)
lw v0,0x0(a2)
beq a1,v0,0x0001cfbc
_or v0,a2,zero
b 0x0001cf50
_lw v0,0x20(v0)
lw a0,0x0(v0)
beq a0,a1,0x0001cfbc
_nop
lw v0,0x20(v0)
bne v0,v1,0x0001cf40
_nop
or a1,a3,zero
addiu a3,a3,0x1
lw v0,0x8(v1)
sll a0,a1,0x8
sw a1,0x4(v1)
andi a0,a0,0xffff
or v0,v0,a0
sw v0,0x8(v1)
lw v1,0x20(v1)
bne v1,zero,0x0001cf20
_nop
lw t0,0x20(t0)
bne t0,zero,0x0001cf0c
_lw ra,0x3c(sp)
lw s8,0x38(sp)
lw s7,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x40
b 0x0001cf60
_lw a1,0x4(v0)
li a2,0x1
li a1,0x7
jalr t9
_li a0,0x5
lw gp,0x10(sp)
lw a0,0x0(s7)
lw t9,-0x7414(gp)
jalr t9
_sw s5,0x10(s4)
b 0x0001ce8c
_lw gp,0x10(sp)
(translation_unit "void set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}\n\n" (function_definition "void set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" primitive_type (function_declarator "set_colorpairs(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "short *psVar14;" (sized_type_specifier "short" short) (pointer_declarator "*psVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "uint *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "code *pcVar18;" type_identifier (pointer_declarator "*pcVar18" * identifier) ;) (expression_statement "puVar17 = (undefined4 *)PTR_color_combo_000779a8;" (assignment_expression "puVar17 = (undefined4 *)PTR_color_combo_000779a8" identifier = (cast_expression "(undefined4 *)PTR_color_combo_000779a8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar3 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar3 = PTR_interface_color_pair_000778e8" identifier = identifier) ;) (expression_statement "iVar15 = 1;" (assignment_expression "iVar15 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_start_color_00078184)();" (call_expression "(*(code *)PTR_start_color_00078184)()" (parenthesized_expression "(*(code *)PTR_start_color_00078184)" ( (pointer_expression "*(code *)PTR_start_color_00078184" * (cast_expression "(code *)PTR_start_color_00078184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = PTR_hilite_attribute_000777cc;" (assignment_expression "puVar2 = PTR_hilite_attribute_000777cc" identifier = identifier) ;) (expression_statement "iVar5 = (*(code *)PTR_use_default_colors_0007817c)();" (assignment_expression "iVar5 = (*(code *)PTR_use_default_colors_0007817c)()" identifier = (call_expression "(*(code *)PTR_use_default_colors_0007817c)()" (parenthesized_expression "(*(code *)PTR_use_default_colors_0007817c)" ( (pointer_expression "*(code *)PTR_use_default_colors_0007817c" * (cast_expression "(code *)PTR_use_default_colors_0007817c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar16 = (uint *)puVar3;" (assignment_expression "puVar16 = (uint *)puVar3" identifier = (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );" do (compound_statement "{\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  }" { (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" identifier = (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar14 = (short *)*puVar17;" (assignment_expression "psVar14 = (short *)*puVar17" identifier = (cast_expression "(short *)*puVar17" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar17" * identifier))) ;) (if_statement "if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" if (parenthesized_expression "(psVar14 == (short *)0x0)" ( (binary_expression "psVar14 == (short *)0x0" identifier == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }" { (if_statement "if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" if (parenthesized_expression "(iVar15 == 7)" ( (binary_expression "iVar15 == 7" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" { (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" * (cast_expression "(undefined4 *)(puVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x18)" ( (binary_expression "puVar3 + 0x18" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;" statement_identifier : (expression_statement "iVar5 = *(int *)PTR_syntaxes_000779ac;" (assignment_expression "iVar5 = *(int *)PTR_syntaxes_000779ac" identifier = (pointer_expression "*(int *)PTR_syntaxes_000779ac" * (cast_expression "(int *)PTR_syntaxes_000779ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (do_statement "do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );" do (compound_statement "{\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        }" { (if_statement "if (iVar5 == 0) {\n            return;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "piVar12 = *(int **)(iVar5 + 0x18);" (assignment_expression "piVar12 = *(int **)(iVar5 + 0x18)" identifier = (pointer_expression "*(int **)(iVar5 + 0x18)" * (cast_expression "(int **)(iVar5 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" if (parenthesized_expression "(piVar12 != (int *)0x0)" ( (binary_expression "piVar12 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" { (expression_statement "uVar13 = 8;" (assignment_expression "uVar13 = 8" identifier = number_literal) ;) (expression_statement "piVar7 = piVar12;" (assignment_expression "piVar7 = piVar12" identifier = identifier) ;) (do_statement "do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);" do (compound_statement "{\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            }" { (if_statement "if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" if (parenthesized_expression "(piVar12 == piVar7)" ( (binary_expression "piVar12 == piVar7" identifier == identifier) )) (compound_statement "{\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }" { (labeled_statement "LAB_0001cf5c:\n                uVar10 = uVar13;" statement_identifier : (expression_statement "uVar10 = uVar13;" (assignment_expression "uVar10 = uVar13" identifier = identifier) ;)) (expression_statement "uVar13 = uVar13 + 1;" (assignment_expression "uVar13 = uVar13 + 1" identifier = (binary_expression "uVar13 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" else (compound_statement "{\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" { (expression_statement "piVar6 = piVar12;" (assignment_expression "piVar6 = piVar12" identifier = identifier) ;) (if_statement "if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" if (parenthesized_expression "(*piVar7 != *piVar12)" ( (binary_expression "*piVar7 != *piVar12" (pointer_expression "*piVar7" * identifier) != (pointer_expression "*piVar12" * identifier)) )) (compound_statement "{\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" { (for_statement "for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" for ( (assignment_expression "piVar6 = (int *)piVar12[8]" identifier = (cast_expression "(int *)piVar12[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar12[8]" identifier [ number_literal ]))) ; (binary_expression "piVar6 != piVar7" identifier != identifier) ; (assignment_expression "piVar6 = (int *)piVar6[8]" identifier = (cast_expression "(int *)piVar6[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[8]" identifier [ number_literal ]))) ) (compound_statement "{\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" { (if_statement "if (*piVar6 == *piVar7) goto LAB_0001cfbc;" if (parenthesized_expression "(*piVar6 == *piVar7)" ( (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" * identifier) == (pointer_expression "*piVar7" * identifier)) )) (goto_statement "goto LAB_0001cfbc;" goto statement_identifier ;)) })) (goto_statement "goto LAB_0001cf5c;" goto statement_identifier ;) })) (labeled_statement "LAB_0001cfbc:\n                uVar10 = piVar6[1];" statement_identifier : (expression_statement "uVar10 = piVar6[1];" (assignment_expression "uVar10 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;)) }))) (expression_statement "piVar7[1] = uVar10;" (assignment_expression "piVar7[1] = uVar10" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;" (assignment_expression "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) | (binary_expression "(uVar10 & 0xff) << 8" (parenthesized_expression "(uVar10 & 0xff)" ( (binary_expression "uVar10 & 0xff" identifier & number_literal) )) << number_literal))) ;) (expression_statement "piVar7 = (int *)piVar7[8];" (assignment_expression "piVar7 = (int *)piVar7[8]" identifier = (cast_expression "(int *)piVar7[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[8]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar7 != (int *)0x0)" ( (binary_expression "piVar7 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar5 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x20)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20)" * (cast_expression "(int *)(iVar5 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }" if (parenthesized_expression "(iVar15 == 5)" ( (binary_expression "iVar15 == 5" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }" { (expression_statement "(*(code *)PTR_init_pair_00077fa4)(5,7,1);" (call_expression "(*(code *)PTR_init_pair_00077fa4)(5,7,1)" (parenthesized_expression "(*(code *)PTR_init_pair_00077fa4)" ( (pointer_expression "*(code *)PTR_init_pair_00077fa4" * (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(5,7,1)" ( number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" identifier = identifier) ;) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" identifier = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0x200500;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0x200500" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" * (cast_expression "(undefined4 *)(puVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) }) (else_clause "else {\n        *puVar16 = *(uint *)puVar2;\n      }" else (compound_statement "{\n        *puVar16 = *(uint *)puVar2;\n      }" { (expression_statement "*puVar16 = *(uint *)puVar2;" (assignment_expression "*puVar16 = *(uint *)puVar2" (pointer_expression "*puVar16" * identifier) = (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) }) (else_clause "else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" else (compound_statement "{\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" { (expression_statement "iVar9 = (int)*psVar14;" (assignment_expression "iVar9 = (int)*psVar14" identifier = (cast_expression "(int)*psVar14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar14" * identifier))) ;) (expression_statement "iVar11 = (int)psVar14[1];" (assignment_expression "iVar11 = (int)psVar14[1]" identifier = (cast_expression "(int)psVar14[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar14[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (compound_statement "{\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }" { (if_statement "if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" { (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" identifier = number_literal) ;) (expression_statement "*psVar14 = 7;" (assignment_expression "*psVar14 = 7" (pointer_expression "*psVar14" * identifier) = number_literal) ;) (expression_statement "iVar1 = iVar11;" (assignment_expression "iVar1 = iVar11" identifier = identifier) ;) (goto_statement "goto joined_r0x0001ced4;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" else (compound_statement "{\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" { (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" identifier = identifier) ;) (if_statement "if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" if (parenthesized_expression "(iVar11 == -1)" ( (binary_expression "iVar11 == -1" identifier == number_literal) )) (compound_statement "{\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" { (labeled_statement "joined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" statement_identifier : (if_statement "if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "psVar14[1] = 0;" (assignment_expression "psVar14[1] = 0" (subscript_expression "psVar14[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" identifier = (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) })) }))) (expression_statement "(*pcVar18)((int)(short)iVar15,iVar9,iVar11);" (call_expression "(*pcVar18)((int)(short)iVar15,iVar9,iVar11)" (parenthesized_expression "(*pcVar18)" ( (pointer_expression "*pcVar18" * identifier) )) (argument_list "((int)(short)iVar15,iVar9,iVar11)" ( (cast_expression "(int)(short)iVar15" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)iVar15" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) , identifier , identifier ))) ;) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" identifier = identifier) ;) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" identifier = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;" (assignment_expression "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*puVar16" * identifier) = (binary_expression "*(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*(uint *)(psVar14 + 4)" * (cast_expression "(uint *)(psVar14 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar14 + 4)" ( (binary_expression "psVar14 + 4" identifier + number_literal) )))) | (binary_expression "iVar15 << 8" identifier << number_literal))) ;) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) (if_statement "if (iVar15 == 7) goto LAB_0001cefc;" if (parenthesized_expression "(iVar15 == 7)" ( (binary_expression "iVar15 == 7" identifier == number_literal) )) (goto_statement "goto LAB_0001cefc;" goto statement_identifier ;)) }))) (expression_statement "puVar17 = puVar17 + 1;" (assignment_expression "puVar17 = puVar17 + 1" identifier = (binary_expression "puVar17 + 1" identifier + number_literal)) ;) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" identifier = (binary_expression "puVar16 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}\n\n" comment (function_definition "void set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" primitive_type (function_declarator "set_colorpairs(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "short *psVar14;" (sized_type_specifier "short" short) (pointer_declarator "*psVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "uint *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "code *pcVar18;" type_identifier (pointer_declarator "*pcVar18" * identifier) ;) (expression_statement "puVar17 = (undefined4 *)PTR_color_combo_000779a8;" (assignment_expression "puVar17 = (undefined4 *)PTR_color_combo_000779a8" identifier = (cast_expression "(undefined4 *)PTR_color_combo_000779a8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar3 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar3 = PTR_interface_color_pair_000778e8" identifier = identifier) ;) (expression_statement "iVar15 = 1;" (assignment_expression "iVar15 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_start_color_00078184)();" (call_expression "(*(code *)PTR_start_color_00078184)()" (parenthesized_expression "(*(code *)PTR_start_color_00078184)" ( (pointer_expression "*(code *)PTR_start_color_00078184" * (cast_expression "(code *)PTR_start_color_00078184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = PTR_hilite_attribute_000777cc;" (assignment_expression "puVar2 = PTR_hilite_attribute_000777cc" identifier = identifier) ;) (expression_statement "iVar5 = (*(code *)PTR_use_default_colors_0007817c)();" (assignment_expression "iVar5 = (*(code *)PTR_use_default_colors_0007817c)()" identifier = (call_expression "(*(code *)PTR_use_default_colors_0007817c)()" (parenthesized_expression "(*(code *)PTR_use_default_colors_0007817c)" ( (pointer_expression "*(code *)PTR_use_default_colors_0007817c" * (cast_expression "(code *)PTR_use_default_colors_0007817c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar16 = (uint *)puVar3;" (assignment_expression "puVar16 = (uint *)puVar3" identifier = (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );" do (compound_statement "{\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  }" { (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" identifier = (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar14 = (short *)*puVar17;" (assignment_expression "psVar14 = (short *)*puVar17" identifier = (cast_expression "(short *)*puVar17" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar17" * identifier))) ;) (if_statement "if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" if (parenthesized_expression "(psVar14 == (short *)0x0)" ( (binary_expression "psVar14 == (short *)0x0" identifier == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }" { (if_statement "if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" if (parenthesized_expression "(iVar15 == 7)" ( (binary_expression "iVar15 == 7" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" { (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" * (cast_expression "(undefined4 *)(puVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x18)" ( (binary_expression "puVar3 + 0x18" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;" statement_identifier : (expression_statement "iVar5 = *(int *)PTR_syntaxes_000779ac;" (assignment_expression "iVar5 = *(int *)PTR_syntaxes_000779ac" identifier = (pointer_expression "*(int *)PTR_syntaxes_000779ac" * (cast_expression "(int *)PTR_syntaxes_000779ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (do_statement "do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );" do (compound_statement "{\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        }" { (if_statement "if (iVar5 == 0) {\n            return;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "piVar12 = *(int **)(iVar5 + 0x18);" (assignment_expression "piVar12 = *(int **)(iVar5 + 0x18)" identifier = (pointer_expression "*(int **)(iVar5 + 0x18)" * (cast_expression "(int **)(iVar5 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" if (parenthesized_expression "(piVar12 != (int *)0x0)" ( (binary_expression "piVar12 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" { (expression_statement "uVar13 = 8;" (assignment_expression "uVar13 = 8" identifier = number_literal) ;) (expression_statement "piVar7 = piVar12;" (assignment_expression "piVar7 = piVar12" identifier = identifier) ;) (do_statement "do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);" do (compound_statement "{\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            }" { (if_statement "if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" if (parenthesized_expression "(piVar12 == piVar7)" ( (binary_expression "piVar12 == piVar7" identifier == identifier) )) (compound_statement "{\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }" { (labeled_statement "LAB_0001cf5c:\n                uVar10 = uVar13;" statement_identifier : (expression_statement "uVar10 = uVar13;" (assignment_expression "uVar10 = uVar13" identifier = identifier) ;)) (expression_statement "uVar13 = uVar13 + 1;" (assignment_expression "uVar13 = uVar13 + 1" identifier = (binary_expression "uVar13 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" else (compound_statement "{\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" { (expression_statement "piVar6 = piVar12;" (assignment_expression "piVar6 = piVar12" identifier = identifier) ;) (if_statement "if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" if (parenthesized_expression "(*piVar7 != *piVar12)" ( (binary_expression "*piVar7 != *piVar12" (pointer_expression "*piVar7" * identifier) != (pointer_expression "*piVar12" * identifier)) )) (compound_statement "{\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" { (for_statement "for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" for ( (assignment_expression "piVar6 = (int *)piVar12[8]" identifier = (cast_expression "(int *)piVar12[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar12[8]" identifier [ number_literal ]))) ; (binary_expression "piVar6 != piVar7" identifier != identifier) ; (assignment_expression "piVar6 = (int *)piVar6[8]" identifier = (cast_expression "(int *)piVar6[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[8]" identifier [ number_literal ]))) ) (compound_statement "{\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" { (if_statement "if (*piVar6 == *piVar7) goto LAB_0001cfbc;" if (parenthesized_expression "(*piVar6 == *piVar7)" ( (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" * identifier) == (pointer_expression "*piVar7" * identifier)) )) (goto_statement "goto LAB_0001cfbc;" goto statement_identifier ;)) })) (goto_statement "goto LAB_0001cf5c;" goto statement_identifier ;) })) (labeled_statement "LAB_0001cfbc:\n                uVar10 = piVar6[1];" statement_identifier : (expression_statement "uVar10 = piVar6[1];" (assignment_expression "uVar10 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;)) }))) (expression_statement "piVar7[1] = uVar10;" (assignment_expression "piVar7[1] = uVar10" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;" (assignment_expression "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) | (binary_expression "(uVar10 & 0xff) << 8" (parenthesized_expression "(uVar10 & 0xff)" ( (binary_expression "uVar10 & 0xff" identifier & number_literal) )) << number_literal))) ;) (expression_statement "piVar7 = (int *)piVar7[8];" (assignment_expression "piVar7 = (int *)piVar7[8]" identifier = (cast_expression "(int *)piVar7[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[8]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar7 != (int *)0x0)" ( (binary_expression "piVar7 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar5 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x20)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20)" * (cast_expression "(int *)(iVar5 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }" if (parenthesized_expression "(iVar15 == 5)" ( (binary_expression "iVar15 == 5" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }" { (expression_statement "(*(code *)PTR_init_pair_00077fa4)(5,7,1);" (call_expression "(*(code *)PTR_init_pair_00077fa4)(5,7,1)" (parenthesized_expression "(*(code *)PTR_init_pair_00077fa4)" ( (pointer_expression "*(code *)PTR_init_pair_00077fa4" * (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(5,7,1)" ( number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" identifier = identifier) ;) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" identifier = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0x200500;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0x200500" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" * (cast_expression "(undefined4 *)(puVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) }) (else_clause "else {\n        *puVar16 = *(uint *)puVar2;\n      }" else (compound_statement "{\n        *puVar16 = *(uint *)puVar2;\n      }" { (expression_statement "*puVar16 = *(uint *)puVar2;" (assignment_expression "*puVar16 = *(uint *)puVar2" (pointer_expression "*puVar16" * identifier) = (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) }) (else_clause "else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" else (compound_statement "{\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" { (expression_statement "iVar9 = (int)*psVar14;" (assignment_expression "iVar9 = (int)*psVar14" identifier = (cast_expression "(int)*psVar14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar14" * identifier))) ;) (expression_statement "iVar11 = (int)psVar14[1];" (assignment_expression "iVar11 = (int)psVar14[1]" identifier = (cast_expression "(int)psVar14[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar14[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (compound_statement "{\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }" { (if_statement "if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" { (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" identifier = number_literal) ;) (expression_statement "*psVar14 = 7;" (assignment_expression "*psVar14 = 7" (pointer_expression "*psVar14" * identifier) = number_literal) ;) (expression_statement "iVar1 = iVar11;" (assignment_expression "iVar1 = iVar11" identifier = identifier) ;) (goto_statement "goto joined_r0x0001ced4;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" else (compound_statement "{\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" { (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" identifier = identifier) ;) (if_statement "if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" if (parenthesized_expression "(iVar11 == -1)" ( (binary_expression "iVar11 == -1" identifier == number_literal) )) (compound_statement "{\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" { (labeled_statement "joined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" statement_identifier : (if_statement "if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "psVar14[1] = 0;" (assignment_expression "psVar14[1] = 0" (subscript_expression "psVar14[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" identifier = (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) })) }))) (expression_statement "(*pcVar18)((int)(short)iVar15,iVar9,iVar11);" (call_expression "(*pcVar18)((int)(short)iVar15,iVar9,iVar11)" (parenthesized_expression "(*pcVar18)" ( (pointer_expression "*pcVar18" * identifier) )) (argument_list "((int)(short)iVar15,iVar9,iVar11)" ( (cast_expression "(int)(short)iVar15" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)iVar15" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) , identifier , identifier ))) ;) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" identifier = identifier) ;) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" identifier = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;" (assignment_expression "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*puVar16" * identifier) = (binary_expression "*(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*(uint *)(psVar14 + 4)" * (cast_expression "(uint *)(psVar14 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar14 + 4)" ( (binary_expression "psVar14 + 4" identifier + number_literal) )))) | (binary_expression "iVar15 << 8" identifier << number_literal))) ;) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) (if_statement "if (iVar15 == 7) goto LAB_0001cefc;" if (parenthesized_expression "(iVar15 == 7)" ( (binary_expression "iVar15 == 7" identifier == number_literal) )) (goto_statement "goto LAB_0001cefc;" goto statement_identifier ;)) }))) (expression_statement "puVar17 = puVar17 + 1;" (assignment_expression "puVar17 = puVar17 + 1" identifier = (binary_expression "puVar17 + 1" identifier + number_literal)) ;) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" identifier = (binary_expression "puVar16 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}\n\n" (function_definition "void set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" primitive_type (function_declarator "set_colorpairs(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "short *psVar14;" (sized_type_specifier "short" short) (pointer_declarator "*psVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "uint *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "undefined4 *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "code *pcVar18;" type_identifier (pointer_declarator "*pcVar18" * identifier) ;) (expression_statement "puVar17 = (undefined4 *)PTR_color_combo_000779a8;" (assignment_expression "puVar17 = (undefined4 *)PTR_color_combo_000779a8" identifier = (cast_expression "(undefined4 *)PTR_color_combo_000779a8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar3 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar3 = PTR_interface_color_pair_000778e8" identifier = identifier) ;) (expression_statement "iVar15 = 1;" (assignment_expression "iVar15 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_start_color_00078184)();" (call_expression "(*(code *)PTR_start_color_00078184)()" (parenthesized_expression "(*(code *)PTR_start_color_00078184)" ( (pointer_expression "*(code *)PTR_start_color_00078184" * (cast_expression "(code *)PTR_start_color_00078184" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = PTR_hilite_attribute_000777cc;" (assignment_expression "puVar2 = PTR_hilite_attribute_000777cc" identifier = identifier) ;) (expression_statement "iVar5 = (*(code *)PTR_use_default_colors_0007817c)();" (assignment_expression "iVar5 = (*(code *)PTR_use_default_colors_0007817c)()" identifier = (call_expression "(*(code *)PTR_use_default_colors_0007817c)()" (parenthesized_expression "(*(code *)PTR_use_default_colors_0007817c)" ( (pointer_expression "*(code *)PTR_use_default_colors_0007817c" * (cast_expression "(code *)PTR_use_default_colors_0007817c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "puVar16 = (uint *)puVar3;" (assignment_expression "puVar16 = (uint *)puVar3" identifier = (cast_expression "(uint *)puVar3" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );" do (compound_statement "{\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  }" { (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" identifier = (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "psVar14 = (short *)*puVar17;" (assignment_expression "psVar14 = (short *)*puVar17" identifier = (cast_expression "(short *)*puVar17" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar17" * identifier))) ;) (if_statement "if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" if (parenthesized_expression "(psVar14 == (short *)0x0)" ( (binary_expression "psVar14 == (short *)0x0" identifier == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }" { (if_statement "if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" if (parenthesized_expression "(iVar15 == 7)" ( (binary_expression "iVar15 == 7" identifier == number_literal) )) (compound_statement "{\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" { (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" * (cast_expression "(undefined4 *)(puVar3 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x18)" ( (binary_expression "puVar3 + 0x18" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;" statement_identifier : (expression_statement "iVar5 = *(int *)PTR_syntaxes_000779ac;" (assignment_expression "iVar5 = *(int *)PTR_syntaxes_000779ac" identifier = (pointer_expression "*(int *)PTR_syntaxes_000779ac" * (cast_expression "(int *)PTR_syntaxes_000779ac" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) (do_statement "do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );" do (compound_statement "{\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        }" { (if_statement "if (iVar5 == 0) {\n            return;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "piVar12 = *(int **)(iVar5 + 0x18);" (assignment_expression "piVar12 = *(int **)(iVar5 + 0x18)" identifier = (pointer_expression "*(int **)(iVar5 + 0x18)" * (cast_expression "(int **)(iVar5 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" if (parenthesized_expression "(piVar12 != (int *)0x0)" ( (binary_expression "piVar12 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" { (expression_statement "uVar13 = 8;" (assignment_expression "uVar13 = 8" identifier = number_literal) ;) (expression_statement "piVar7 = piVar12;" (assignment_expression "piVar7 = piVar12" identifier = identifier) ;) (do_statement "do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);" do (compound_statement "{\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            }" { (if_statement "if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" if (parenthesized_expression "(piVar12 == piVar7)" ( (binary_expression "piVar12 == piVar7" identifier == identifier) )) (compound_statement "{\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }" { (labeled_statement "LAB_0001cf5c:\n                uVar10 = uVar13;" statement_identifier : (expression_statement "uVar10 = uVar13;" (assignment_expression "uVar10 = uVar13" identifier = identifier) ;)) (expression_statement "uVar13 = uVar13 + 1;" (assignment_expression "uVar13 = uVar13 + 1" identifier = (binary_expression "uVar13 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" else (compound_statement "{\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" { (expression_statement "piVar6 = piVar12;" (assignment_expression "piVar6 = piVar12" identifier = identifier) ;) (if_statement "if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" if (parenthesized_expression "(*piVar7 != *piVar12)" ( (binary_expression "*piVar7 != *piVar12" (pointer_expression "*piVar7" * identifier) != (pointer_expression "*piVar12" * identifier)) )) (compound_statement "{\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" { (for_statement "for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" for ( (assignment_expression "piVar6 = (int *)piVar12[8]" identifier = (cast_expression "(int *)piVar12[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar12[8]" identifier [ number_literal ]))) ; (binary_expression "piVar6 != piVar7" identifier != identifier) ; (assignment_expression "piVar6 = (int *)piVar6[8]" identifier = (cast_expression "(int *)piVar6[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[8]" identifier [ number_literal ]))) ) (compound_statement "{\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" { (if_statement "if (*piVar6 == *piVar7) goto LAB_0001cfbc;" if (parenthesized_expression "(*piVar6 == *piVar7)" ( (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" * identifier) == (pointer_expression "*piVar7" * identifier)) )) (goto_statement "goto LAB_0001cfbc;" goto statement_identifier ;)) })) (goto_statement "goto LAB_0001cf5c;" goto statement_identifier ;) })) (labeled_statement "LAB_0001cfbc:\n                uVar10 = piVar6[1];" statement_identifier : (expression_statement "uVar10 = piVar6[1];" (assignment_expression "uVar10 = piVar6[1]" identifier = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;)) }))) (expression_statement "piVar7[1] = uVar10;" (assignment_expression "piVar7[1] = uVar10" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;" (assignment_expression "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) = (binary_expression "piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" identifier [ number_literal ]) | (binary_expression "(uVar10 & 0xff) << 8" (parenthesized_expression "(uVar10 & 0xff)" ( (binary_expression "uVar10 & 0xff" identifier & number_literal) )) << number_literal))) ;) (expression_statement "piVar7 = (int *)piVar7[8];" (assignment_expression "piVar7 = (int *)piVar7[8]" identifier = (cast_expression "(int *)piVar7[8]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[8]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar7 != (int *)0x0)" ( (binary_expression "piVar7 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "iVar5 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x20)" identifier = (pointer_expression "*(int *)(iVar5 + 0x20)" * (cast_expression "(int *)(iVar5 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (if_statement "if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }" if (parenthesized_expression "(iVar15 == 5)" ( (binary_expression "iVar15 == 5" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }" { (expression_statement "(*(code *)PTR_init_pair_00077fa4)(5,7,1);" (call_expression "(*(code *)PTR_init_pair_00077fa4)(5,7,1)" (parenthesized_expression "(*(code *)PTR_init_pair_00077fa4)" ( (pointer_expression "*(code *)PTR_init_pair_00077fa4" * (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(5,7,1)" ( number_literal , number_literal , number_literal ))) ;) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" identifier = identifier) ;) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" identifier = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0x200500;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0x200500" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" * (cast_expression "(undefined4 *)(puVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 0x10)" ( (binary_expression "puVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) }) (else_clause "else {\n        *puVar16 = *(uint *)puVar2;\n      }" else (compound_statement "{\n        *puVar16 = *(uint *)puVar2;\n      }" { (expression_statement "*puVar16 = *(uint *)puVar2;" (assignment_expression "*puVar16 = *(uint *)puVar2" (pointer_expression "*puVar16" * identifier) = (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) }) (else_clause "else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" else (compound_statement "{\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" { (expression_statement "iVar9 = (int)*psVar14;" (assignment_expression "iVar9 = (int)*psVar14" identifier = (cast_expression "(int)*psVar14" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar14" * identifier))) ;) (expression_statement "iVar11 = (int)psVar14[1];" (assignment_expression "iVar11 = (int)psVar14[1]" identifier = (cast_expression "(int)psVar14[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar14[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" if (parenthesized_expression "(iVar9 == -1)" ( (binary_expression "iVar9 == -1" identifier == number_literal) )) (compound_statement "{\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }" { (if_statement "if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" { (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" identifier = number_literal) ;) (expression_statement "*psVar14 = 7;" (assignment_expression "*psVar14 = 7" (pointer_expression "*psVar14" * identifier) = number_literal) ;) (expression_statement "iVar1 = iVar11;" (assignment_expression "iVar1 = iVar11" identifier = identifier) ;) (goto_statement "goto joined_r0x0001ced4;" goto statement_identifier ;) })) }) (else_clause "else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" else (compound_statement "{\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" { (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" identifier = identifier) ;) (if_statement "if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" if (parenthesized_expression "(iVar11 == -1)" ( (binary_expression "iVar11 == -1" identifier == number_literal) )) (compound_statement "{\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" { (labeled_statement "joined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" statement_identifier : (if_statement "if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "psVar14[1] = 0;" (assignment_expression "psVar14[1] = 0" (subscript_expression "psVar14[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" identifier = (cast_expression "(code *)PTR_init_pair_00077fa4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) })) }))) (expression_statement "(*pcVar18)((int)(short)iVar15,iVar9,iVar11);" (call_expression "(*pcVar18)((int)(short)iVar15,iVar9,iVar11)" (parenthesized_expression "(*pcVar18)" ( (pointer_expression "*pcVar18" * identifier) )) (argument_list "((int)(short)iVar15,iVar9,iVar11)" ( (cast_expression "(int)(short)iVar15" ( (type_descriptor "int" primitive_type) ) (cast_expression "(short)iVar15" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) , identifier , identifier ))) ;) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" identifier = identifier) ;) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" identifier = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;" (assignment_expression "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*puVar16" * identifier) = (binary_expression "*(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*(uint *)(psVar14 + 4)" * (cast_expression "(uint *)(psVar14 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar14 + 4)" ( (binary_expression "psVar14 + 4" identifier + number_literal) )))) | (binary_expression "iVar15 << 8" identifier << number_literal))) ;) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier ))) ;) (if_statement "if (iVar15 == 7) goto LAB_0001cefc;" if (parenthesized_expression "(iVar15 == 7)" ( (binary_expression "iVar15 == 7" identifier == number_literal) )) (goto_statement "goto LAB_0001cefc;" goto statement_identifier ;)) }))) (expression_statement "puVar17 = puVar17 + 1;" (assignment_expression "puVar17 = puVar17 + 1" identifier = (binary_expression "puVar17 + 1" identifier + number_literal)) ;) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" identifier = (binary_expression "puVar16 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;)) (do_statement do (compound_statement { (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (pointer_expression * IDENT)) )) (compound_statement { (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ; (binary_expression IDENT != IDENT) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) )) (goto_statement goto statement_identifier ;)) })) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (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 ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (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 = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }))) })) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | (binary_expression IDENT << LIT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void set_colorpairs(void)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" (primitive_type "void") (function_declarator "set_colorpairs(void)" (identifier "set_colorpairs") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  int *piVar6;\n  int *piVar7;\n  undefined4 uVar8;\n  int iVar9;\n  uint uVar10;\n  int iVar11;\n  int *piVar12;\n  uint uVar13;\n  short *psVar14;\n  int iVar15;\n  uint *puVar16;\n  undefined4 *puVar17;\n  code *pcVar18;\n  \n  puVar17 = (undefined4 *)PTR_color_combo_000779a8;\n  puVar3 = PTR_interface_color_pair_000778e8;\n  iVar15 = 1;\n  (*(code *)PTR_start_color_00078184)();\n  puVar2 = PTR_hilite_attribute_000777cc;\n  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();\n  puVar16 = (uint *)puVar3;\n  do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "short *psVar14;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar14" (* "*") (identifier "psVar14")) (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (declaration "uint *puVar16;" (type_identifier "uint") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "undefined4 *puVar17;" (type_identifier "undefined4") (pointer_declarator "*puVar17" (* "*") (identifier "puVar17")) (; ";")) (declaration "code *pcVar18;" (type_identifier "code") (pointer_declarator "*pcVar18" (* "*") (identifier "pcVar18")) (; ";")) (expression_statement "puVar17 = (undefined4 *)PTR_color_combo_000779a8;" (assignment_expression "puVar17 = (undefined4 *)PTR_color_combo_000779a8" (identifier "puVar17") (= "=") (cast_expression "(undefined4 *)PTR_color_combo_000779a8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_color_combo_000779a8"))) (; ";")) (expression_statement "puVar3 = PTR_interface_color_pair_000778e8;" (assignment_expression "puVar3 = PTR_interface_color_pair_000778e8" (identifier "puVar3") (= "=") (identifier "PTR_interface_color_pair_000778e8")) (; ";")) (expression_statement "iVar15 = 1;" (assignment_expression "iVar15 = 1" (identifier "iVar15") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_start_color_00078184)();" (call_expression "(*(code *)PTR_start_color_00078184)()" (parenthesized_expression "(*(code *)PTR_start_color_00078184)" (( "(") (pointer_expression "*(code *)PTR_start_color_00078184" (* "*") (cast_expression "(code *)PTR_start_color_00078184" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_start_color_00078184"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_hilite_attribute_000777cc;" (assignment_expression "puVar2 = PTR_hilite_attribute_000777cc" (identifier "puVar2") (= "=") (identifier "PTR_hilite_attribute_000777cc")) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_use_default_colors_0007817c)();" (assignment_expression "iVar5 = (*(code *)PTR_use_default_colors_0007817c)()" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_use_default_colors_0007817c)()" (parenthesized_expression "(*(code *)PTR_use_default_colors_0007817c)" (( "(") (pointer_expression "*(code *)PTR_use_default_colors_0007817c" (* "*") (cast_expression "(code *)PTR_use_default_colors_0007817c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_use_default_colors_0007817c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar16 = (uint *)puVar3;" (assignment_expression "puVar16 = (uint *)puVar3" (identifier "puVar16") (= "=") (cast_expression "(uint *)puVar3" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (; ";")) (do_statement "do {\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  } while( true );" (do "do") (compound_statement "{\n    pcVar18 = (code *)PTR_init_pair_00077fa4;\n    psVar14 = (short *)*puVar17;\n    if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }\n    puVar17 = puVar17 + 1;\n    iVar15 = iVar15 + 1;\n    puVar16 = puVar16 + 1;\n  }" ({ "{") (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" (identifier "pcVar18") (= "=") (cast_expression "(code *)PTR_init_pair_00077fa4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_init_pair_00077fa4"))) (; ";")) (expression_statement "psVar14 = (short *)*puVar17;" (assignment_expression "psVar14 = (short *)*puVar17" (identifier "psVar14") (= "=") (cast_expression "(short *)*puVar17" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar17" (* "*") (identifier "puVar17")))) (; ";")) (if_statement "if (psVar14 == (short *)0x0) {\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }\n    else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" (if "if") (parenthesized_expression "(psVar14 == (short *)0x0)" (( "(") (binary_expression "psVar14 == (short *)0x0" (identifier "psVar14") (== "==") (cast_expression "(short *)0x0" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }\n      if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }\n    }" ({ "{") (if_statement "if (iVar15 == 7) {\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" (if "if") (parenthesized_expression "(iVar15 == 7)" (( "(") (binary_expression "iVar15 == 7" (identifier "iVar15") (== "==") (number_literal "7")) () ")")) (compound_statement "{\n        *(undefined4 *)(puVar3 + 0x18) = 0;\nLAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;\n        do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );\n      }" ({ "{") (expression_statement "*(undefined4 *)(puVar3 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(puVar3 + 0x18) = 0" (pointer_expression "*(undefined4 *)(puVar3 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x18)" (( "(") (binary_expression "puVar3 + 0x18" (identifier "puVar3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0001cefc:\n        iVar5 = *(int *)PTR_syntaxes_000779ac;" (statement_identifier "LAB_0001cefc") (: ":") (expression_statement "iVar5 = *(int *)PTR_syntaxes_000779ac;" (assignment_expression "iVar5 = *(int *)PTR_syntaxes_000779ac" (identifier "iVar5") (= "=") (pointer_expression "*(int *)PTR_syntaxes_000779ac" (* "*") (cast_expression "(int *)PTR_syntaxes_000779ac" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_syntaxes_000779ac")))) (; ";"))) (do_statement "do {\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        } while( true );" (do "do") (compound_statement "{\n          if (iVar5 == 0) {\n            return;\n          }\n          piVar12 = *(int **)(iVar5 + 0x18);\n          if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }\n          iVar5 = *(int *)(iVar5 + 0x20);\n        }" ({ "{") (if_statement "if (iVar5 == 0) {\n            return;\n          }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar12 = *(int **)(iVar5 + 0x18);" (assignment_expression "piVar12 = *(int **)(iVar5 + 0x18)" (identifier "piVar12") (= "=") (pointer_expression "*(int **)(iVar5 + 0x18)" (* "*") (cast_expression "(int **)(iVar5 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (piVar12 != (int *)0x0) {\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" (if "if") (parenthesized_expression "(piVar12 != (int *)0x0)" (( "(") (binary_expression "piVar12 != (int *)0x0" (identifier "piVar12") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            uVar13 = 8;\n            piVar7 = piVar12;\n            do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);\n          }" ({ "{") (expression_statement "uVar13 = 8;" (assignment_expression "uVar13 = 8" (identifier "uVar13") (= "=") (number_literal "8")) (; ";")) (expression_statement "piVar7 = piVar12;" (assignment_expression "piVar7 = piVar12" (identifier "piVar7") (= "=") (identifier "piVar12")) (; ";")) (do_statement "do {\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            } while (piVar7 != (int *)0x0);" (do "do") (compound_statement "{\n              if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }\n              piVar7[1] = uVar10;\n              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;\n              piVar7 = (int *)piVar7[8];\n            }" ({ "{") (if_statement "if (piVar12 == piVar7) {\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }\n              else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" (if "if") (parenthesized_expression "(piVar12 == piVar7)" (( "(") (binary_expression "piVar12 == piVar7" (identifier "piVar12") (== "==") (identifier "piVar7")) () ")")) (compound_statement "{\nLAB_0001cf5c:\n                uVar10 = uVar13;\n                uVar13 = uVar13 + 1;\n              }" ({ "{") (labeled_statement "LAB_0001cf5c:\n                uVar10 = uVar13;" (statement_identifier "LAB_0001cf5c") (: ":") (expression_statement "uVar10 = uVar13;" (assignment_expression "uVar10 = uVar13" (identifier "uVar10") (= "=") (identifier "uVar13")) (; ";"))) (expression_statement "uVar13 = uVar13 + 1;" (assignment_expression "uVar13 = uVar13 + 1" (identifier "uVar13") (= "=") (binary_expression "uVar13 + 1" (identifier "uVar13") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" (else "else") (compound_statement "{\n                piVar6 = piVar12;\n                if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }\nLAB_0001cfbc:\n                uVar10 = piVar6[1];\n              }" ({ "{") (expression_statement "piVar6 = piVar12;" (assignment_expression "piVar6 = piVar12" (identifier "piVar6") (= "=") (identifier "piVar12")) (; ";")) (if_statement "if (*piVar7 != *piVar12) {\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" (if "if") (parenthesized_expression "(*piVar7 != *piVar12)" (( "(") (binary_expression "*piVar7 != *piVar12" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (!= "!=") (pointer_expression "*piVar12" (* "*") (identifier "piVar12"))) () ")")) (compound_statement "{\n                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }\n                  goto LAB_0001cf5c;\n                }" ({ "{") (for_statement "for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" (for "for") (( "(") (assignment_expression "piVar6 = (int *)piVar12[8]" (identifier "piVar6") (= "=") (cast_expression "(int *)piVar12[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar12[8]" (identifier "piVar12") ([ "[") (number_literal "8") (] "]")))) (; ";") (binary_expression "piVar6 != piVar7" (identifier "piVar6") (!= "!=") (identifier "piVar7")) (; ";") (assignment_expression "piVar6 = (int *)piVar6[8]" (identifier "piVar6") (= "=") (cast_expression "(int *)piVar6[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[8]" (identifier "piVar6") ([ "[") (number_literal "8") (] "]")))) () ")") (compound_statement "{\n                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;\n                  }" ({ "{") (if_statement "if (*piVar6 == *piVar7) goto LAB_0001cfbc;" (if "if") (parenthesized_expression "(*piVar6 == *piVar7)" (( "(") (binary_expression "*piVar6 == *piVar7" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) () ")")) (goto_statement "goto LAB_0001cfbc;" (goto "goto") (statement_identifier "LAB_0001cfbc") (; ";"))) (} "}"))) (goto_statement "goto LAB_0001cf5c;" (goto "goto") (statement_identifier "LAB_0001cf5c") (; ";")) (} "}"))) (labeled_statement "LAB_0001cfbc:\n                uVar10 = piVar6[1];" (statement_identifier "LAB_0001cfbc") (: ":") (expression_statement "uVar10 = piVar6[1];" (assignment_expression "uVar10 = piVar6[1]" (identifier "uVar10") (= "=") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (} "}")))) (expression_statement "piVar7[1] = uVar10;" (assignment_expression "piVar7[1] = uVar10" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;" (assignment_expression "piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar7[2] | (uVar10 & 0xff) << 8" (subscript_expression "piVar7[2]" (identifier "piVar7") ([ "[") (number_literal "2") (] "]")) (| "|") (binary_expression "(uVar10 & 0xff) << 8" (parenthesized_expression "(uVar10 & 0xff)" (( "(") (binary_expression "uVar10 & 0xff" (identifier "uVar10") (& "&") (number_literal "0xff")) () ")")) (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "piVar7 = (int *)piVar7[8];" (assignment_expression "piVar7 = (int *)piVar7[8]" (identifier "piVar7") (= "=") (cast_expression "(int *)piVar7[8]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar7[8]" (identifier "piVar7") ([ "[") (number_literal "8") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar7 != (int *)0x0)" (( "(") (binary_expression "piVar7 != (int *)0x0" (identifier "piVar7") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(iVar5 + 0x20);" (assignment_expression "iVar5 = *(int *)(iVar5 + 0x20)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar5 + 0x20)" (* "*") (cast_expression "(int *)(iVar5 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20)" (( "(") (binary_expression "iVar5 + 0x20" (identifier "iVar5") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (if_statement "if (iVar15 == 5) {\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }\n      else {\n        *puVar16 = *(uint *)puVar2;\n      }" (if "if") (parenthesized_expression "(iVar15 == 5)" (( "(") (binary_expression "iVar15 == 5" (identifier "iVar15") (== "==") (number_literal "5")) () ")")) (compound_statement "{\n        (*(code *)PTR_init_pair_00077fa4)(5,7,1);\n        puVar4 = PTR_free_0007810c;\n        uVar8 = *puVar17;\n        *(undefined4 *)(puVar3 + 0x10) = 0x200500;\n        (*(code *)puVar4)(uVar8);\n      }" ({ "{") (expression_statement "(*(code *)PTR_init_pair_00077fa4)(5,7,1);" (call_expression "(*(code *)PTR_init_pair_00077fa4)(5,7,1)" (parenthesized_expression "(*(code *)PTR_init_pair_00077fa4)" (( "(") (pointer_expression "*(code *)PTR_init_pair_00077fa4" (* "*") (cast_expression "(code *)PTR_init_pair_00077fa4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_init_pair_00077fa4"))) () ")")) (argument_list "(5,7,1)" (( "(") (number_literal "5") (, ",") (number_literal "7") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" (identifier "puVar4") (= "=") (identifier "PTR_free_0007810c")) (; ";")) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" (identifier "uVar8") (= "=") (pointer_expression "*puVar17" (* "*") (identifier "puVar17"))) (; ";")) (expression_statement "*(undefined4 *)(puVar3 + 0x10) = 0x200500;" (assignment_expression "*(undefined4 *)(puVar3 + 0x10) = 0x200500" (pointer_expression "*(undefined4 *)(puVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(puVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + 0x10)" (( "(") (binary_expression "puVar3 + 0x10" (identifier "puVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0x200500")) (; ";")) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" (( "(") (pointer_expression "*(code *)puVar4" (* "*") (cast_expression "(code *)puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        *puVar16 = *(uint *)puVar2;\n      }" (else "else") (compound_statement "{\n        *puVar16 = *(uint *)puVar2;\n      }" ({ "{") (expression_statement "*puVar16 = *(uint *)puVar2;" (assignment_expression "*puVar16 = *(uint *)puVar2" (pointer_expression "*puVar16" (* "*") (identifier "puVar16")) (= "=") (pointer_expression "*(uint *)puVar2" (* "*") (cast_expression "(uint *)puVar2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" (else "else") (compound_statement "{\n      iVar9 = (int)*psVar14;\n      iVar11 = (int)psVar14[1];\n      if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }\n      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);\n      puVar4 = PTR_free_0007810c;\n      uVar8 = *puVar17;\n      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;\n      (*(code *)puVar4)(uVar8);\n      if (iVar15 == 7) goto LAB_0001cefc;\n    }" ({ "{") (expression_statement "iVar9 = (int)*psVar14;" (assignment_expression "iVar9 = (int)*psVar14" (identifier "iVar9") (= "=") (cast_expression "(int)*psVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*psVar14" (* "*") (identifier "psVar14")))) (; ";")) (expression_statement "iVar11 = (int)psVar14[1];" (assignment_expression "iVar11 = (int)psVar14[1]" (identifier "iVar11") (= "=") (cast_expression "(int)psVar14[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "psVar14[1]" (identifier "psVar14") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (iVar9 == -1) {\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }\n      else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar9 == -1)" (( "(") (binary_expression "iVar9 == -1" (identifier "iVar9") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }\n      }" ({ "{") (if_statement "if (iVar5 == -1) {\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          iVar9 = 7;\n          *psVar14 = 7;\n          iVar1 = iVar11;\n          goto joined_r0x0001ced4;\n        }" ({ "{") (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" (identifier "iVar9") (= "=") (number_literal "7")) (; ";")) (expression_statement "*psVar14 = 7;" (assignment_expression "*psVar14 = 7" (pointer_expression "*psVar14" (* "*") (identifier "psVar14")) (= "=") (number_literal "7")) (; ";")) (expression_statement "iVar1 = iVar11;" (assignment_expression "iVar1 = iVar11" (identifier "iVar1") (= "=") (identifier "iVar11")) (; ";")) (goto_statement "goto joined_r0x0001ced4;" (goto "goto") (statement_identifier "joined_r0x0001ced4") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" (else "else") (compound_statement "{\n        iVar1 = iVar5;\n        if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar1 = iVar5;" (assignment_expression "iVar1 = iVar5" (identifier "iVar1") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar11 == -1) {\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" (if "if") (parenthesized_expression "(iVar11 == -1)" (( "(") (binary_expression "iVar11 == -1" (identifier "iVar11") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\njoined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }\n        }" ({ "{") (labeled_statement "joined_r0x0001ced4:\n          if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" (statement_identifier "joined_r0x0001ced4") (: ":") (if_statement "if (iVar1 == -1) {\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n            iVar11 = 0;\n            psVar14[1] = 0;\n            pcVar18 = (code *)PTR_init_pair_00077fa4;\n          }" ({ "{") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "psVar14[1] = 0;" (assignment_expression "psVar14[1] = 0" (subscript_expression "psVar14[1]" (identifier "psVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar18 = (code *)PTR_init_pair_00077fa4;" (assignment_expression "pcVar18 = (code *)PTR_init_pair_00077fa4" (identifier "pcVar18") (= "=") (cast_expression "(code *)PTR_init_pair_00077fa4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_init_pair_00077fa4"))) (; ";")) (} "}")))) (} "}"))) (} "}")))) (expression_statement "(*pcVar18)((int)(short)iVar15,iVar9,iVar11);" (call_expression "(*pcVar18)((int)(short)iVar15,iVar9,iVar11)" (parenthesized_expression "(*pcVar18)" (( "(") (pointer_expression "*pcVar18" (* "*") (identifier "pcVar18")) () ")")) (argument_list "((int)(short)iVar15,iVar9,iVar11)" (( "(") (cast_expression "(int)(short)iVar15" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(short)iVar15" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar15"))) (, ",") (identifier "iVar9") (, ",") (identifier "iVar11") () ")"))) (; ";")) (expression_statement "puVar4 = PTR_free_0007810c;" (assignment_expression "puVar4 = PTR_free_0007810c" (identifier "puVar4") (= "=") (identifier "PTR_free_0007810c")) (; ";")) (expression_statement "uVar8 = *puVar17;" (assignment_expression "uVar8 = *puVar17" (identifier "uVar8") (= "=") (pointer_expression "*puVar17" (* "*") (identifier "puVar17"))) (; ";")) (expression_statement "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;" (assignment_expression "*puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*puVar16" (* "*") (identifier "puVar16")) (= "=") (binary_expression "*(uint *)(psVar14 + 4) | iVar15 << 8" (pointer_expression "*(uint *)(psVar14 + 4)" (* "*") (cast_expression "(uint *)(psVar14 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(psVar14 + 4)" (( "(") (binary_expression "psVar14 + 4" (identifier "psVar14") (+ "+") (number_literal "4")) () ")")))) (| "|") (binary_expression "iVar15 << 8" (identifier "iVar15") (<< "<<") (number_literal "8")))) (; ";")) (expression_statement "(*(code *)puVar4)(uVar8);" (call_expression "(*(code *)puVar4)(uVar8)" (parenthesized_expression "(*(code *)puVar4)" (( "(") (pointer_expression "*(code *)puVar4" (* "*") (cast_expression "(code *)puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")"))) (; ";")) (if_statement "if (iVar15 == 7) goto LAB_0001cefc;" (if "if") (parenthesized_expression "(iVar15 == 7)" (( "(") (binary_expression "iVar15 == 7" (identifier "iVar15") (== "==") (number_literal "7")) () ")")) (goto_statement "goto LAB_0001cefc;" (goto "goto") (statement_identifier "LAB_0001cefc") (; ";"))) (} "}")))) (expression_statement "puVar17 = puVar17 + 1;" (assignment_expression "puVar17 = puVar17 + 1" (identifier "puVar17") (= "=") (binary_expression "puVar17 + 1" (identifier "puVar17") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" (identifier "iVar15") (= "=") (binary_expression "iVar15 + 1" (identifier "iVar15") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar16 = puVar16 + 1;" (assignment_expression "puVar16 = puVar16 + 1" (identifier "puVar16") (= "=") (binary_expression "puVar16 + 1" (identifier "puVar16") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_12;
  type_1 *puVar2;
  type_1 *var_3;
  type_1 *puVar4;
  int var_4;
  int *var_8;
  int *var_6;
  type_2 uVar8;
  int var_10;
  type_3 var_9;
  int var_11;
  int *var_5;
  type_3 var_7;
  short *var_1;
  int var_2;
  type_3 *var_14;
  type_2 *var_13;
  type_4 *pcVar18;
  
  var_13 = (type_2 *)PTR_color_combo_000779a8;
  var_3 = PTR_interface_color_pair_000778e8;
  var_2 = 1;
  (*(type_4 *)PTR_start_color_00078184)();
  puVar2 = PTR_hilite_attribute_000777cc;
  var_4 = (*(type_4 *)PTR_use_default_colors_0007817c)();
  var_14 = (type_3 *)var_3;
  do {
    pcVar18 = (type_4 *)PTR_init_pair_00077fa4;
    var_1 = (short *)*var_13;
    if (var_1 == (short *)0x0) {
      if (var_2 == 7) {
        *(type_2 *)(var_3 + 0x18) = 0;
LAB_0001cefc:
        var_4 = *(int *)PTR_syntaxes_000779ac;
        do {
          if (var_4 == 0) {
            return;
          }
          var_5 = *(int **)(var_4 + 0x18);
          if (var_5 != (int *)0x0) {
            var_7 = 8;
            var_6 = var_5;
            do {
              if (var_5 == var_6) {
LAB_0001cf5c:
                var_9 = var_7;
                var_7 = var_7 + 1;
              }
              else {
                var_8 = var_5;
                if (*var_6 != *var_5) {
                  for (var_8 = (int *)var_5[8]; var_8 != var_6; var_8 = (int *)var_8[8]) {
                    if (*var_8 == *var_6) goto LAB_0001cfbc;
                  }
                  goto LAB_0001cf5c;
                }
LAB_0001cfbc:
                var_9 = var_8[1];
              }
              var_6[1] = var_9;
              var_6[2] = var_6[2] | (var_9 & 0xff) << 8;
              var_6 = (int *)var_6[8];
            } while (var_6 != (int *)0x0);
          }
          var_4 = *(int *)(var_4 + 0x20);
        } while( true );
      }
      if (var_2 == 5) {
        (*(type_4 *)PTR_init_pair_00077fa4)(5,7,1);
        puVar4 = PTR_free_0007810c;
        uVar8 = *var_13;
        *(type_2 *)(var_3 + 0x10) = 0x200500;
        (*(type_4 *)puVar4)(uVar8);
      }
      else {
        *var_14 = *(type_3 *)puVar2;
      }
    }
    else {
      var_10 = (int)*var_1;
      var_11 = (int)var_1[1];
      if (var_10 == -1) {
        if (var_4 == -1) {
          var_10 = 7;
          *var_1 = 7;
          var_12 = var_11;
          goto joined_r0x0001ced4;
        }
      }
      else {
        var_12 = var_4;
        if (var_11 == -1) {
joined_r0x0001ced4:
          if (var_12 == -1) {
            var_11 = 0;
            var_1[1] = 0;
            pcVar18 = (type_4 *)PTR_init_pair_00077fa4;
          }
        }
      }
      (*pcVar18)((int)(short)var_2,var_10,var_11);
      puVar4 = PTR_free_0007810c;
      uVar8 = *var_13;
      *var_14 = *(type_3 *)(var_1 + 4) | var_2 << 8;
      (*(type_4 *)puVar4)(uVar8);
      if (var_2 == 7) goto LAB_0001cefc;
    }
    var_13 = var_13 + 1;
    var_2 = var_2 + 1;
    var_14 = var_14 + 1;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (do_statement body: (compound_statement (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: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (for_statement initializer: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) condition: (binary_expression left: (identifier) right: (identifier)) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) consequence: (goto_statement label: (statement_identifier))))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_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: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier) right: (number_literal)))))))) condition: (parenthesized_expression (true))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_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 (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (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: (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 (true))))))

void MASKED(void)

{
  int iVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  int iVar5;
  int *piVar6;
  int *piVar7;
  undefined4 uVar8;
  int iVar9;
  uint uVar10;
  int iVar11;
  int *piVar12;
  uint uVar13;
  short *psVar14;
  int iVar15;
  uint *puVar16;
  undefined4 *puVar17;
  code *pcVar18;
  
  puVar17 = (undefined4 *)PTR_color_combo_000779a8;
  puVar3 = PTR_interface_color_pair_000778e8;
  iVar15 = 1;
  (*(code *)PTR_start_color_00078184)();
  puVar2 = PTR_hilite_attribute_000777cc;
  iVar5 = (*(code *)PTR_use_default_colors_0007817c)();
  puVar16 = (uint *)puVar3;
  do {
    pcVar18 = (code *)PTR_init_pair_00077fa4;
    psVar14 = (short *)*puVar17;
    if (psVar14 == (short *)0x0) {
      if (iVar15 == 7) {
        *(undefined4 *)(puVar3 + 0x18) = 0;
LAB_0001cefc:
        iVar5 = *(int *)PTR_syntaxes_000779ac;
        do {
          if (iVar5 == 0) {
            return;
          }
          piVar12 = *(int **)(iVar5 + 0x18);
          if (piVar12 != (int *)0x0) {
            uVar13 = 8;
            piVar7 = piVar12;
            do {
              if (piVar12 == piVar7) {
LAB_0001cf5c:
                uVar10 = uVar13;
                uVar13 = uVar13 + 1;
              }
              else {
                piVar6 = piVar12;
                if (*piVar7 != *piVar12) {
                  for (piVar6 = (int *)piVar12[8]; piVar6 != piVar7; piVar6 = (int *)piVar6[8]) {
                    if (*piVar6 == *piVar7) goto LAB_0001cfbc;
                  }
                  goto LAB_0001cf5c;
                }
LAB_0001cfbc:
                uVar10 = piVar6[1];
              }
              piVar7[1] = uVar10;
              piVar7[2] = piVar7[2] | (uVar10 & 0xff) << 8;
              piVar7 = (int *)piVar7[8];
            } while (piVar7 != (int *)0x0);
          }
          iVar5 = *(int *)(iVar5 + 0x20);
        } while( true );
      }
      if (iVar15 == 5) {
        (*(code *)PTR_init_pair_00077fa4)(5,7,1);
        puVar4 = PTR_free_0007810c;
        uVar8 = *puVar17;
        *(undefined4 *)(puVar3 + 0x10) = 0x200500;
        (*(code *)puVar4)(uVar8);
      }
      else {
        *puVar16 = *(uint *)puVar2;
      }
    }
    else {
      iVar9 = (int)*psVar14;
      iVar11 = (int)psVar14[1];
      if (iVar9 == -1) {
        if (iVar5 == -1) {
          iVar9 = 7;
          *psVar14 = 7;
          iVar1 = iVar11;
          goto joined_r0x0001ced4;
        }
      }
      else {
        iVar1 = iVar5;
        if (iVar11 == -1) {
joined_r0x0001ced4:
          if (iVar1 == -1) {
            iVar11 = 0;
            psVar14[1] = 0;
            pcVar18 = (code *)PTR_init_pair_00077fa4;
          }
        }
      }
      (*pcVar18)((int)(short)iVar15,iVar9,iVar11);
      puVar4 = PTR_free_0007810c;
      uVar8 = *puVar17;
      *puVar16 = *(uint *)(psVar14 + 4) | iVar15 << 8;
      (*(code *)puVar4)(uVar8);
      if (iVar15 == 7) goto LAB_0001cefc;
    }
    puVar17 = puVar17 + 1;
    iVar15 = iVar15 + 1;
    puVar16 = puVar16 + 1;
  } while( true );
}

