
job * makejob(int nprocs)

{
  ushort uVar1;
  int iVar2;
  procstat *ppVar3;
  int *piVar4;
  int iVar5;
  int iVar6;
  int iVar8;
  job *jp;
  undefined *puVar9;
  undefined *puVar10;
  job *pjVar11;
  char cVar12;
  int iVar7;
  
  puVar10 = PTR_DAT_0012a178;
  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;
  pjVar11 = *(job **)(PTR_DAT_0012a178 + -0x4cfc);
  if (iVar2 < 0) {
LAB_00073950:
    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;
    iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);
    iVar5 = iVar2 - (int)pjVar11;
    puVar9 = PTR_DAT_0012a178;
    if (iVar5 != 0) {
      if (iVar8 != 0) {
        piVar4 = (int *)(iVar2 + iVar8 + -0x14);
        iVar7 = iVar8;
        do {
          iVar6 = iVar7 + -0x20;
          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {
            *piVar4 = *piVar4 + iVar5;
          }
          if (piVar4[4] != 0) {
            piVar4[4] = piVar4[4] + iVar5;
          }
          piVar4 = piVar4 + -8;
          iVar7 = iVar6;
        } while (iVar6 != 0);
      }
      puVar9 = PTR_DAT_0012a178;
      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {
        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;
      }
    }
    jp = (job *)(iVar2 + iVar8);
    *(int *)(puVar10 + -0x4cfc) = iVar2;
    *(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;
    *(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;
    *(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;
    *(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;
    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;
    cVar12 = puVar10[-0x4c38];
    puVar10 = puVar9;
  }
  else {
    cVar12 = PTR_DAT_0012a178[-0x4c38];
    uVar1 = *(ushort *)&pjVar11->field_0x18;
    jp = pjVar11;
    while ((uVar1 & 0x10) != 0) {
      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {
        freejob(jp);
        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);
        goto LAB_00073a70;
      }
      iVar2 = iVar2 + -1;
      if (iVar2 == -1) goto LAB_00073950;
      uVar1 = *(ushort *)&jp[1].field_0x18;
      jp = jp + 1;
    }
  }
  (*(code *)PTR_memset_0012aebc)(jp,0,0x20);
  if (cVar12 != '\0') {
    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;
  }
LAB_00073a70:
  pjVar11 = *(job **)(puVar10 + -0x4d04);
  *(job **)(puVar10 + -0x4d04) = jp;
  jp->prev_job = pjVar11;
  jp->ps = &jp->ps0;
  *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef | 0x10;
  if (1 < nprocs) {
    ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);
    jp->ps = ppVar3;
  }
  return jp;
}



int FUN_000738f8(int param_1)

{
  ushort uVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  int iVar7;
  undefined *puVar8;
  undefined *puVar9;
  int iVar10;
  char cVar11;
  
  puVar9 = PTR_DAT_0012a178;
  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;
  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);
  if (iVar2 < 0) {
LAB_00073950:
    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;
    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);
    iVar4 = iVar2 - iVar10;
    puVar8 = PTR_DAT_0012a178;
    if (iVar4 != 0) {
      if (iVar7 != 0) {
        piVar3 = (int *)(iVar2 + iVar7 + -0x14);
        iVar6 = iVar7;
        do {
          iVar6 = iVar6 + -0x20;
          if (*piVar3 == iVar10 + iVar6) {
            *piVar3 = *piVar3 + iVar4;
          }
          if (piVar3[4] != 0) {
            piVar3[4] = piVar3[4] + iVar4;
          }
          piVar3 = piVar3 + -8;
        } while (iVar6 != 0);
      }
      puVar8 = PTR_DAT_0012a178;
      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {
        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;
      }
    }
    iVar7 = iVar2 + iVar7;
    *(int *)(puVar9 + -0x4cfc) = iVar2;
    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;
    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;
    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;
    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;
    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;
    cVar11 = puVar9[-0x4c38];
    puVar9 = puVar8;
  }
  else {
    cVar11 = PTR_DAT_0012a178[-0x4c38];
    uVar1 = *(ushort *)(iVar10 + 0x18);
    iVar7 = iVar10;
    while ((uVar1 & 0x10) != 0) {
      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {
        FUN_0006e000(iVar7);
        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);
        goto LAB_00073a70;
      }
      iVar2 = iVar2 + -1;
      if (iVar2 == -1) goto LAB_00073950;
      uVar1 = *(ushort *)(iVar7 + 0x38);
      iVar7 = iVar7 + 0x20;
    }
  }
  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);
  if (cVar11 != '\0') {
    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;
  }
LAB_00073a70:
  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);
  *(int *)(puVar9 + -0x4d04) = iVar7;
  *(undefined4 *)(iVar7 + 0x1c) = uVar5;
  *(int *)(iVar7 + 0xc) = iVar7;
  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;
  if (1 < param_1) {
    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);
    *(undefined4 *)(iVar7 + 0xc) = uVar5;
  }
  return iVar7;
}


lui gp,0xc
addiu gp,gp,-0x17a8
addu gp,gp,t9
addiu sp,sp,-0x40
sw s5,0x30(sp)
sw s3,0x28(sp)
or s3,a0,zero
lw s5,-0x7fd8(gp)
sw s6,0x34(sp)
sw gp,0x10(sp)
sw s4,0x2c(sp)
lw a0,-0x4d00(s5)
lw s6,-0x7fd8(gp)
lw s4,-0x7fd8(gp)
addiu v0,a0,-0x1
sw s2,0x24(sp)
sw ra,0x3c(sp)
sw s7,0x38(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
bgez v0,0x000739c0
_lw s2,-0x4cfc(s6)
sll s0,a0,0x5
lw t9,-0x7eac(gp)
or a0,s2,zero
jalr t9
_addiu a1,s0,0x80
subu a0,v0,s2
bne a0,zero,0x00073aec
_lw gp,0x10(sp)
lw s1,-0x7fd8(gp)
lw v1,-0x4d00(s5)
addu s0,v0,s0
sw v0,-0x4cfc(s6)
addiu v1,v1,0x4
sw v1,-0x4d00(s5)
lhu a1,0x78(s0)
lhu a0,0x58(s0)
lhu v1,0x38(s0)
lhu v0,0x18(s0)
ins a1,zero,0x4,0x1
ins a0,zero,0x4,0x1
ins v1,zero,0x4,0x1
sh a1,0x78(s0)
ins v0,zero,0x4,0x1
sh a0,0x58(s0)
sh v1,0x38(s0)
sh v0,0x18(s0)
b 0x00073a0c
_lb s7,-0x4c38(s4)
lhu v1,0x18(s2)
andi v1,v1,0x10
beq v1,zero,0x00073ae0
_lb s7,-0x4c38(s4)
lui a3,0xff20
lui a2,0x220
li a1,-0x1
or s0,s2,zero
lw v1,0x18(s0)
and v1,v1,a3
beq v1,a2,0x00073a3c
_nop
addiu v0,v0,-0x1
beq v0,a1,0x00073950
_addiu s0,s0,0x20
lhu v1,0x18(s0)
andi v1,v1,0x10
bne v1,zero,0x000739e0
_lw s1,-0x7fd8(gp)
lw t9,-0x7294(gp)
li a2,0x20
or a1,zero,zero
jalr t9
_or a0,s0,zero
beq s7,zero,0x00073a70
_lw gp,0x10(sp)
lhu v0,0x18(s0)
li v1,0x1
ins v0,v1,0x6,0x1
b 0x00073a70
_sh v0,0x18(s0)
bne s7,zero,0x000739f0
_lw t9,-0x793c(gp)
lw s1,-0x7fd8(gp)
addiu t9,t9,-0x2000
bal 0x0006e000
_or a0,s0,zero
li a2,0x20
lw gp,0x10(sp)
or a1,zero,zero
lw t9,-0x7294(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
lw a0,-0x4d04(s1)
slti v0,s3,0x2
sw s0,-0x4d04(s1)
lhu v1,0x18(s0)
sw a0,0x1c(s0)
li a0,0x1
sw s0,0xc(s0)
ins v1,a0,0x4,0x1
bne v0,zero,0x00073ab0
_sh v1,0x18(s0)
sll a0,s3,0x1
lw t9,-0x7f20(gp)
addu a0,a0,s3
jalr t9
_sll a0,a0,0x2
sw v0,0xc(s0)
lw ra,0x3c(sp)
or v0,s0,zero
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
lw s1,-0x7fd8(gp)
b 0x00073a0c
_or s0,s2,zero
beq s0,zero,0x00073b34
_addiu v1,s0,-0x14
addu s2,s2,s0
addu v1,v0,v1
or a1,s0,zero
addiu a1,a1,-0x20
lw a2,0x0(v1)
subu a3,a1,s0
addu a3,s2,a3
bne a2,a3,0x00073b1c
_addu a2,a2,a0
sw a2,0x0(v1)
lw a2,0x10(v1)
beq a2,zero,0x00073b2c
_addu a2,a2,a0
sw a2,0x10(v1)
bne a1,zero,0x00073b00
_addiu v1,v1,-0x20
lw s1,-0x7fd8(gp)
lw v1,-0x4d04(s1)
beq v1,zero,0x00073974
_addu v1,v1,a0
b 0x00073974
_sw v1,-0x4d04(s1)
(translation_unit "int FUN_000738f8(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}\n\n" (function_definition "int FUN_000738f8(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}" primitive_type (function_declarator "FUN_000738f8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "char cVar11;" primitive_type identifier ;) (expression_statement "puVar9 = PTR_DAT_0012a178;" (assignment_expression "puVar9 = PTR_DAT_0012a178" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;" (assignment_expression "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" identifier = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d00" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);" (assignment_expression "iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc)" identifier = (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4cfc)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4cfc)" ( (binary_expression "PTR_DAT_0012a178 + -0x4cfc" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }" { (labeled_statement "LAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" statement_identifier : (expression_statement "iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" (assignment_expression "iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" identifier = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d00" identifier + number_literal) )))) * number_literal)) ;)) (expression_statement "iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2a4)" ( (pointer_expression "*(code *)PTR_FUN_0012a2a4" * (cast_expression "(code *)PTR_FUN_0012a2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,iVar7 + 0x80)" ( identifier , (binary_expression "iVar7 + 0x80" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar2 - iVar10;" (assignment_expression "iVar4 = iVar2 - iVar10" identifier = (binary_expression "iVar2 - iVar10" identifier - identifier)) ;) (expression_statement "puVar8 = PTR_DAT_0012a178;" (assignment_expression "puVar8 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }" { (if_statement "if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }" { (expression_statement "piVar3 = (int *)(iVar2 + iVar7 + -0x14);" (assignment_expression "piVar3 = (int *)(iVar2 + iVar7 + -0x14)" identifier = (cast_expression "(int *)(iVar2 + iVar7 + -0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar7 + -0x14)" ( (binary_expression "iVar2 + iVar7 + -0x14" (binary_expression "iVar2 + iVar7" identifier + identifier) + number_literal) )))) ;) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (do_statement "do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);" do (compound_statement "{\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        }" { (expression_statement "iVar6 = iVar6 + -0x20;" (assignment_expression "iVar6 = iVar6 + -0x20" identifier = (binary_expression "iVar6 + -0x20" identifier + number_literal)) ;) (if_statement "if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }" if (parenthesized_expression "(*piVar3 == iVar10 + iVar6)" ( (binary_expression "*piVar3 == iVar10 + iVar6" (pointer_expression "*piVar3" * identifier) == (binary_expression "iVar10 + iVar6" identifier + identifier)) )) (compound_statement "{\n            *piVar3 = *piVar3 + iVar4;\n          }" { (expression_statement "*piVar3 = *piVar3 + iVar4;" (assignment_expression "*piVar3 = *piVar3 + iVar4" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + iVar4" (pointer_expression "*piVar3" * identifier) + identifier)) ;) })) (if_statement "if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }" if (parenthesized_expression "(piVar3[4] != 0)" ( (binary_expression "piVar3[4] != 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            piVar3[4] = piVar3[4] + iVar4;\n          }" { (expression_statement "piVar3[4] = piVar3[4] + iVar4;" (assignment_expression "piVar3[4] = piVar3[4] + iVar4" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = (binary_expression "piVar3[4] + iVar4" (subscript_expression "piVar3[4]" identifier [ number_literal ]) + identifier)) ;) })) (expression_statement "piVar3 = piVar3 + -8;" (assignment_expression "piVar3 = piVar3 + -8" identifier = (binary_expression "piVar3 + -8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "puVar8 = PTR_DAT_0012a178;" (assignment_expression "puVar8 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }" if (parenthesized_expression "(*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0)" ( (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }" { (expression_statement "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;" (assignment_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) + identifier)) ;) })) })) (expression_statement "iVar7 = iVar2 + iVar7;" (assignment_expression "iVar7 = iVar2 + iVar7" identifier = (binary_expression "iVar2 + iVar7" identifier + identifier)) ;) (expression_statement "*(int *)(puVar9 + -0x4cfc) = iVar2;" (assignment_expression "*(int *)(puVar9 + -0x4cfc) = iVar2" (pointer_expression "*(int *)(puVar9 + -0x4cfc)" * (cast_expression "(int *)(puVar9 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4cfc)" ( (binary_expression "puVar9 + -0x4cfc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;" (assignment_expression "*(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar9 + -0x4d00)" * (cast_expression "(int *)(puVar9 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d00)" ( (binary_expression "puVar9 + -0x4d00" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar9 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar9 + -0x4d00)" * (cast_expression "(int *)(puVar9 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d00)" ( (binary_expression "puVar9 + -0x4d00" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x78)" * (cast_expression "(ushort *)(iVar7 + 0x78)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x78)" ( (binary_expression "iVar7 + 0x78" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x78) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x78)" * (cast_expression "(ushort *)(iVar7 + 0x78)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x78)" ( (binary_expression "iVar7 + 0x78" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x58)" * (cast_expression "(ushort *)(iVar7 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x58)" ( (binary_expression "iVar7 + 0x58" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x58) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x58)" * (cast_expression "(ushort *)(iVar7 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x58)" ( (binary_expression "iVar7 + 0x58" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x38)" * (cast_expression "(ushort *)(iVar7 + 0x38)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x38) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x38)" * (cast_expression "(ushort *)(iVar7 + 0x38)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "cVar11 = puVar9[-0x4c38];" (assignment_expression "cVar11 = puVar9[-0x4c38]" identifier = (subscript_expression "puVar9[-0x4c38]" identifier [ number_literal ])) ;) (expression_statement "puVar9 = puVar8;" (assignment_expression "puVar9 = puVar8" identifier = identifier) ;) }) (else_clause "else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" else (compound_statement "{\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" { (expression_statement "cVar11 = PTR_DAT_0012a178[-0x4c38];" (assignment_expression "cVar11 = PTR_DAT_0012a178[-0x4c38]" identifier = (subscript_expression "PTR_DAT_0012a178[-0x4c38]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(ushort *)(iVar10 + 0x18);" (assignment_expression "uVar1 = *(ushort *)(iVar10 + 0x18)" identifier = (pointer_expression "*(ushort *)(iVar10 + 0x18)" * (cast_expression "(ushort *)(iVar10 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x18)" ( (binary_expression "iVar10 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = iVar10;" (assignment_expression "iVar7 = iVar10" identifier = identifier) ;) (while_statement "while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }" while (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }" { (if_statement "if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }" if (parenthesized_expression "(((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0'))" ( (binary_expression "((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')" (parenthesized_expression "((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000)" ( (binary_expression "(*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000" (parenthesized_expression "(*(uint *)(iVar7 + 0x18) & 0xff200000)" ( (binary_expression "*(uint *)(iVar7 + 0x18) & 0xff200000" (pointer_expression "*(uint *)(iVar7 + 0x18)" * (cast_expression "(uint *)(iVar7 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(cVar11 == '\0')" ( (binary_expression "cVar11 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }" { (expression_statement "FUN_0006e000(iVar7);" (call_expression "FUN_0006e000(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (goto_statement "goto LAB_00073a70;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 == -1) goto LAB_00073950;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00073950;" goto statement_identifier ;)) (expression_statement "uVar1 = *(ushort *)(iVar7 + 0x38);" (assignment_expression "uVar1 = *(ushort *)(iVar7 + 0x38)" identifier = (pointer_expression "*(ushort *)(iVar7 + 0x38)" * (cast_expression "(ushort *)(iVar7 + 0x38)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = iVar7 + 0x20;" (assignment_expression "iVar7 = iVar7 + 0x20" identifier = (binary_expression "iVar7 + 0x20" identifier + number_literal)) ;) })) }))) (expression_statement "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }" if (parenthesized_expression "(cVar11 != '\0')" ( (binary_expression "cVar11 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }" { (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40" (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffbf" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (labeled_statement "LAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);" statement_identifier : (expression_statement "uVar5 = *(undefined4 *)(puVar9 + -0x4d04);" (assignment_expression "uVar5 = *(undefined4 *)(puVar9 + -0x4d04)" identifier = (pointer_expression "*(undefined4 *)(puVar9 + -0x4d04)" * (cast_expression "(undefined4 *)(puVar9 + -0x4d04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d04)" ( (binary_expression "puVar9 + -0x4d04" identifier + number_literal) ))))) ;)) (expression_statement "*(int *)(puVar9 + -0x4d04) = iVar7;" (assignment_expression "*(int *)(puVar9 + -0x4d04) = iVar7" (pointer_expression "*(int *)(puVar9 + -0x4d04)" * (cast_expression "(int *)(puVar9 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d04)" ( (binary_expression "puVar9 + -0x4d04" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x1c) = uVar5;" (assignment_expression "*(undefined4 *)(iVar7 + 0x1c) = uVar5" (pointer_expression "*(undefined4 *)(iVar7 + 0x1c)" * (cast_expression "(undefined4 *)(iVar7 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar7 + 0xc) = iVar7;" (assignment_expression "*(int *)(iVar7 + 0xc) = iVar7" (pointer_expression "*(int *)(iVar7 + 0xc)" * (cast_expression "(int *)(iVar7 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef | 0x10" (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (if_statement "if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }" if (parenthesized_expression "(1 < param_1)" ( (binary_expression "1 < param_1" number_literal < identifier) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc)" identifier = (call_expression "(*(code *)PTR_FUN_0012a230)(param_1 * 0xc)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" ( (pointer_expression "*(code *)PTR_FUN_0012a230" * (cast_expression "(code *)PTR_FUN_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 * 0xc)" ( (binary_expression "param_1 * 0xc" identifier * number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar7 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar7 + 0xc)" * (cast_expression "(undefined4 *)(iVar7 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "job * makejob(int nprocs)\n\n{\n  ushort uVar1;\n  int iVar2;\n  procstat *ppVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int iVar8;\n  job *jp;\n  undefined *puVar9;\n  undefined *puVar10;\n  job *pjVar11;\n  char cVar12;\n  int iVar7;\n  \n  puVar10 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  pjVar11 = *(job **)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);\n    iVar5 = iVar2 - (int)pjVar11;\n    puVar9 = PTR_DAT_0012a178;\n    if (iVar5 != 0) {\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }\n    jp = (job *)(iVar2 + iVar8);\n    *(int *)(puVar10 + -0x4cfc) = iVar2;\n    *(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;\n    *(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;\n    *(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;\n    *(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;\n    cVar12 = puVar10[-0x4c38];\n    puVar10 = puVar9;\n  }\n  else {\n    cVar12 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)&pjVar11->field_0x18;\n    jp = pjVar11;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n  if (cVar12 != '\0') {\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  pjVar11 = *(job **)(puVar10 + -0x4d04);\n  *(job **)(puVar10 + -0x4d04) = jp;\n  jp->prev_job = pjVar11;\n  jp->ps = &jp->ps0;\n  *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef | 0x10;\n  if (1 < nprocs) {\n    ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);\n    jp->ps = ppVar3;\n  }\n  return jp;\n}\n\n" (function_definition "job * makejob(int nprocs)\n\n{\n  ushort uVar1;\n  int iVar2;\n  procstat *ppVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int iVar8;\n  job *jp;\n  undefined *puVar9;\n  undefined *puVar10;\n  job *pjVar11;\n  char cVar12;\n  int iVar7;\n  \n  puVar10 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  pjVar11 = *(job **)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);\n    iVar5 = iVar2 - (int)pjVar11;\n    puVar9 = PTR_DAT_0012a178;\n    if (iVar5 != 0) {\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }\n    jp = (job *)(iVar2 + iVar8);\n    *(int *)(puVar10 + -0x4cfc) = iVar2;\n    *(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;\n    *(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;\n    *(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;\n    *(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;\n    cVar12 = puVar10[-0x4c38];\n    puVar10 = puVar9;\n  }\n  else {\n    cVar12 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)&pjVar11->field_0x18;\n    jp = pjVar11;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n  if (cVar12 != '\0') {\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  pjVar11 = *(job **)(puVar10 + -0x4d04);\n  *(job **)(puVar10 + -0x4d04) = jp;\n  jp->prev_job = pjVar11;\n  jp->ps = &jp->ps0;\n  *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef | 0x10;\n  if (1 < nprocs) {\n    ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);\n    jp->ps = ppVar3;\n  }\n  return jp;\n}" type_identifier (pointer_declarator "* makejob(int nprocs)" * (function_declarator "makejob(int nprocs)" identifier (parameter_list "(int nprocs)" ( (parameter_declaration "int nprocs" primitive_type identifier) )))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  procstat *ppVar3;\n  int *piVar4;\n  int iVar5;\n  int iVar6;\n  int iVar8;\n  job *jp;\n  undefined *puVar9;\n  undefined *puVar10;\n  job *pjVar11;\n  char cVar12;\n  int iVar7;\n  \n  puVar10 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  pjVar11 = *(job **)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);\n    iVar5 = iVar2 - (int)pjVar11;\n    puVar9 = PTR_DAT_0012a178;\n    if (iVar5 != 0) {\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }\n    jp = (job *)(iVar2 + iVar8);\n    *(int *)(puVar10 + -0x4cfc) = iVar2;\n    *(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;\n    *(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;\n    *(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;\n    *(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;\n    cVar12 = puVar10[-0x4c38];\n    puVar10 = puVar9;\n  }\n  else {\n    cVar12 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)&pjVar11->field_0x18;\n    jp = pjVar11;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n  if (cVar12 != '\0') {\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  pjVar11 = *(job **)(puVar10 + -0x4d04);\n  *(job **)(puVar10 + -0x4d04) = jp;\n  jp->prev_job = pjVar11;\n  jp->ps = &jp->ps0;\n  *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef | 0x10;\n  if (1 < nprocs) {\n    ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);\n    jp->ps = ppVar3;\n  }\n  return jp;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "procstat *ppVar3;" type_identifier (pointer_declarator "*ppVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "job *jp;" type_identifier (pointer_declarator "*jp" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "job *pjVar11;" type_identifier (pointer_declarator "*pjVar11" * identifier) ;) (declaration "char cVar12;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (expression_statement "puVar10 = PTR_DAT_0012a178;" (assignment_expression "puVar10 = PTR_DAT_0012a178" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;" (assignment_expression "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" identifier = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d00" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pjVar11 = *(job **)(PTR_DAT_0012a178 + -0x4cfc);" (assignment_expression "pjVar11 = *(job **)(PTR_DAT_0012a178 + -0x4cfc)" identifier = (pointer_expression "*(job **)(PTR_DAT_0012a178 + -0x4cfc)" * (cast_expression "(job **)(PTR_DAT_0012a178 + -0x4cfc)" ( (type_descriptor "job **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4cfc)" ( (binary_expression "PTR_DAT_0012a178 + -0x4cfc" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < 0) {\nLAB_00073950:\n    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);\n    iVar5 = iVar2 - (int)pjVar11;\n    puVar9 = PTR_DAT_0012a178;\n    if (iVar5 != 0) {\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }\n    jp = (job *)(iVar2 + iVar8);\n    *(int *)(puVar10 + -0x4cfc) = iVar2;\n    *(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;\n    *(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;\n    *(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;\n    *(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;\n    cVar12 = puVar10[-0x4c38];\n    puVar10 = puVar9;\n  }\n  else {\n    cVar12 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)&pjVar11->field_0x18;\n    jp = pjVar11;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00073950:\n    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);\n    iVar5 = iVar2 - (int)pjVar11;\n    puVar9 = PTR_DAT_0012a178;\n    if (iVar5 != 0) {\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }\n    jp = (job *)(iVar2 + iVar8);\n    *(int *)(puVar10 + -0x4cfc) = iVar2;\n    *(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;\n    *(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;\n    *(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;\n    *(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;\n    cVar12 = puVar10[-0x4c38];\n    puVar10 = puVar9;\n  }" { (labeled_statement "LAB_00073950:\n    iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" statement_identifier : (expression_statement "iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" (assignment_expression "iVar8 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" identifier = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d00" identifier + number_literal) )))) * number_literal)) ;)) (expression_statement "iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80);" (assignment_expression "iVar2 = (*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80)" identifier = (call_expression "(*(code *)PTR_xrealloc_0012a2a4)(pjVar11,iVar8 + 0x80)" (parenthesized_expression "(*(code *)PTR_xrealloc_0012a2a4)" ( (pointer_expression "*(code *)PTR_xrealloc_0012a2a4" * (cast_expression "(code *)PTR_xrealloc_0012a2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pjVar11,iVar8 + 0x80)" ( identifier , (binary_expression "iVar8 + 0x80" identifier + number_literal) )))) ;) (expression_statement "iVar5 = iVar2 - (int)pjVar11;" (assignment_expression "iVar5 = iVar2 - (int)pjVar11" identifier = (binary_expression "iVar2 - (int)pjVar11" identifier - (cast_expression "(int)pjVar11" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "puVar9 = PTR_DAT_0012a178;" (assignment_expression "puVar9 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }\n      puVar9 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }\n    }" { (if_statement "if (iVar8 != 0) {\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = (int *)(iVar2 + iVar8 + -0x14);\n        iVar7 = iVar8;\n        do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);\n      }" { (expression_statement "piVar4 = (int *)(iVar2 + iVar8 + -0x14);" (assignment_expression "piVar4 = (int *)(iVar2 + iVar8 + -0x14)" identifier = (cast_expression "(int *)(iVar2 + iVar8 + -0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar8 + -0x14)" ( (binary_expression "iVar2 + iVar8 + -0x14" (binary_expression "iVar2 + iVar8" identifier + identifier) + number_literal) )))) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (do_statement "do {\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        } while (iVar6 != 0);" do (compound_statement "{\n          iVar6 = iVar7 + -0x20;\n          if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }\n          if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }\n          piVar4 = piVar4 + -8;\n          iVar7 = iVar6;\n        }" { (expression_statement "iVar6 = iVar7 + -0x20;" (assignment_expression "iVar6 = iVar7 + -0x20" identifier = (binary_expression "iVar7 + -0x20" identifier + number_literal)) ;) (if_statement "if (*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7) {\n            *piVar4 = *piVar4 + iVar5;\n          }" if (parenthesized_expression "(*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7)" ( (binary_expression "*piVar4 == (int)&pjVar11[-1].ps0.ps_pid + iVar7" (pointer_expression "*piVar4" * identifier) == (binary_expression "(int)&pjVar11[-1].ps0.ps_pid + iVar7" (cast_expression "(int)&pjVar11[-1].ps0.ps_pid" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pjVar11[-1].ps0.ps_pid" & (field_expression "pjVar11[-1].ps0.ps_pid" (field_expression "pjVar11[-1].ps0" (subscript_expression "pjVar11[-1]" identifier [ number_literal ]) . field_identifier) . field_identifier))) + identifier)) )) (compound_statement "{\n            *piVar4 = *piVar4 + iVar5;\n          }" { (expression_statement "*piVar4 = *piVar4 + iVar5;" (assignment_expression "*piVar4 = *piVar4 + iVar5" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + iVar5" (pointer_expression "*piVar4" * identifier) + identifier)) ;) })) (if_statement "if (piVar4[4] != 0) {\n            piVar4[4] = piVar4[4] + iVar5;\n          }" if (parenthesized_expression "(piVar4[4] != 0)" ( (binary_expression "piVar4[4] != 0" (subscript_expression "piVar4[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            piVar4[4] = piVar4[4] + iVar5;\n          }" { (expression_statement "piVar4[4] = piVar4[4] + iVar5;" (assignment_expression "piVar4[4] = piVar4[4] + iVar5" (subscript_expression "piVar4[4]" identifier [ number_literal ]) = (binary_expression "piVar4[4] + iVar5" (subscript_expression "piVar4[4]" identifier [ number_literal ]) + identifier)) ;) })) (expression_statement "piVar4 = piVar4 + -8;" (assignment_expression "piVar4 = piVar4 + -8" identifier = (binary_expression "piVar4 + -8" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "puVar9 = PTR_DAT_0012a178;" (assignment_expression "puVar9 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }" if (parenthesized_expression "(*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0)" ( (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;\n      }" { (expression_statement "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5;" (assignment_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar5" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) + identifier)) ;) })) })) (expression_statement "jp = (job *)(iVar2 + iVar8);" (assignment_expression "jp = (job *)(iVar2 + iVar8)" identifier = (cast_expression "(job *)(iVar2 + iVar8)" ( (type_descriptor "job *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar8)" ( (binary_expression "iVar2 + iVar8" identifier + identifier) )))) ;) (expression_statement "*(int *)(puVar10 + -0x4cfc) = iVar2;" (assignment_expression "*(int *)(puVar10 + -0x4cfc) = iVar2" (pointer_expression "*(int *)(puVar10 + -0x4cfc)" * (cast_expression "(int *)(puVar10 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + -0x4cfc)" ( (binary_expression "puVar10 + -0x4cfc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4;" (assignment_expression "*(int *)(puVar10 + -0x4d00) = *(int *)(puVar10 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar10 + -0x4d00)" * (cast_expression "(int *)(puVar10 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + -0x4d00)" ( (binary_expression "puVar10 + -0x4d00" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar10 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar10 + -0x4d00)" * (cast_expression "(int *)(puVar10 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + -0x4d00)" ( (binary_expression "puVar10 + -0x4d00" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef;" (assignment_expression "*(ushort *)&jp[3].field_0x18 = *(ushort *)&jp[3].field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp[3].field_0x18" * (cast_expression "(ushort *)&jp[3].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[3].field_0x18" & (field_expression "jp[3].field_0x18" (subscript_expression "jp[3]" identifier [ number_literal ]) . field_identifier)))) = (binary_expression "*(ushort *)&jp[3].field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp[3].field_0x18" * (cast_expression "(ushort *)&jp[3].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[3].field_0x18" & (field_expression "jp[3].field_0x18" (subscript_expression "jp[3]" identifier [ number_literal ]) . field_identifier)))) & number_literal)) ;) (expression_statement "*(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef;" (assignment_expression "*(ushort *)&jp[2].field_0x18 = *(ushort *)&jp[2].field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp[2].field_0x18" * (cast_expression "(ushort *)&jp[2].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[2].field_0x18" & (field_expression "jp[2].field_0x18" (subscript_expression "jp[2]" identifier [ number_literal ]) . field_identifier)))) = (binary_expression "*(ushort *)&jp[2].field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp[2].field_0x18" * (cast_expression "(ushort *)&jp[2].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[2].field_0x18" & (field_expression "jp[2].field_0x18" (subscript_expression "jp[2]" identifier [ number_literal ]) . field_identifier)))) & number_literal)) ;) (expression_statement "*(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef;" (assignment_expression "*(ushort *)&jp[1].field_0x18 = *(ushort *)&jp[1].field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp[1].field_0x18" * (cast_expression "(ushort *)&jp[1].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[1].field_0x18" & (field_expression "jp[1].field_0x18" (subscript_expression "jp[1]" identifier [ number_literal ]) . field_identifier)))) = (binary_expression "*(ushort *)&jp[1].field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp[1].field_0x18" * (cast_expression "(ushort *)&jp[1].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[1].field_0x18" & (field_expression "jp[1].field_0x18" (subscript_expression "jp[1]" identifier [ number_literal ]) . field_identifier)))) & number_literal)) ;) (expression_statement "*(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef;" (assignment_expression "*(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp->field_0x18" * (cast_expression "(ushort *)&jp->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&jp->field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp->field_0x18" * (cast_expression "(ushort *)&jp->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) & number_literal)) ;) (expression_statement "cVar12 = puVar10[-0x4c38];" (assignment_expression "cVar12 = puVar10[-0x4c38]" identifier = (subscript_expression "puVar10[-0x4c38]" identifier [ number_literal ])) ;) (expression_statement "puVar10 = puVar9;" (assignment_expression "puVar10 = puVar9" identifier = identifier) ;) }) (else_clause "else {\n    cVar12 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)&pjVar11->field_0x18;\n    jp = pjVar11;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }\n  }" else (compound_statement "{\n    cVar12 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)&pjVar11->field_0x18;\n    jp = pjVar11;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }\n  }" { (expression_statement "cVar12 = PTR_DAT_0012a178[-0x4c38];" (assignment_expression "cVar12 = PTR_DAT_0012a178[-0x4c38]" identifier = (subscript_expression "PTR_DAT_0012a178[-0x4c38]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(ushort *)&pjVar11->field_0x18;" (assignment_expression "uVar1 = *(ushort *)&pjVar11->field_0x18" identifier = (pointer_expression "*(ushort *)&pjVar11->field_0x18" * (cast_expression "(ushort *)&pjVar11->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pjVar11->field_0x18" & (field_expression "pjVar11->field_0x18" identifier -> field_identifier))))) ;) (expression_statement "jp = pjVar11;" (assignment_expression "jp = pjVar11" identifier = identifier) ;) (while_statement "while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }" while (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)&jp[1].field_0x18;\n      jp = jp + 1;\n    }" { (if_statement "if (((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')) {\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }" if (parenthesized_expression "(((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0'))" ( (binary_expression "((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000) && (cVar12 == '\0')" (parenthesized_expression "((*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000)" ( (binary_expression "(*(uint *)&jp->field_0x18 & 0xff200000) == 0x2200000" (parenthesized_expression "(*(uint *)&jp->field_0x18 & 0xff200000)" ( (binary_expression "*(uint *)&jp->field_0x18 & 0xff200000" (pointer_expression "*(uint *)&jp->field_0x18" * (cast_expression "(uint *)&jp->field_0x18" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(cVar12 == '\0')" ( (binary_expression "cVar12 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        freejob(jp);\n        (*(code *)PTR_memset_0012aebc)(jp,0,0x20);\n        goto LAB_00073a70;\n      }" { (expression_statement "freejob(jp);" (call_expression "freejob(jp)" identifier (argument_list "(jp)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(jp,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(jp,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(jp,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (goto_statement "goto LAB_00073a70;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 == -1) goto LAB_00073950;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00073950;" goto statement_identifier ;)) (expression_statement "uVar1 = *(ushort *)&jp[1].field_0x18;" (assignment_expression "uVar1 = *(ushort *)&jp[1].field_0x18" identifier = (pointer_expression "*(ushort *)&jp[1].field_0x18" * (cast_expression "(ushort *)&jp[1].field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp[1].field_0x18" & (field_expression "jp[1].field_0x18" (subscript_expression "jp[1]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "jp = jp + 1;" (assignment_expression "jp = jp + 1" identifier = (binary_expression "jp + 1" identifier + number_literal)) ;) })) }))) (expression_statement "(*(code *)PTR_memset_0012aebc)(jp,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(jp,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(jp,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (cVar12 != '\0') {\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;\n  }" if (parenthesized_expression "(cVar12 != '\0')" ( (binary_expression "cVar12 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;\n  }" { (expression_statement "*(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40;" (assignment_expression "*(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffbf | 0x40" (pointer_expression "*(ushort *)&jp->field_0x18" * (cast_expression "(ushort *)&jp->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&jp->field_0x18 & 0xffbf | 0x40" (binary_expression "*(ushort *)&jp->field_0x18 & 0xffbf" (pointer_expression "*(ushort *)&jp->field_0x18" * (cast_expression "(ushort *)&jp->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) })) (labeled_statement "LAB_00073a70:\n  pjVar11 = *(job **)(puVar10 + -0x4d04);" statement_identifier : (expression_statement "pjVar11 = *(job **)(puVar10 + -0x4d04);" (assignment_expression "pjVar11 = *(job **)(puVar10 + -0x4d04)" identifier = (pointer_expression "*(job **)(puVar10 + -0x4d04)" * (cast_expression "(job **)(puVar10 + -0x4d04)" ( (type_descriptor "job **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + -0x4d04)" ( (binary_expression "puVar10 + -0x4d04" identifier + number_literal) ))))) ;)) (expression_statement "*(job **)(puVar10 + -0x4d04) = jp;" (assignment_expression "*(job **)(puVar10 + -0x4d04) = jp" (pointer_expression "*(job **)(puVar10 + -0x4d04)" * (cast_expression "(job **)(puVar10 + -0x4d04)" ( (type_descriptor "job **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + -0x4d04)" ( (binary_expression "puVar10 + -0x4d04" identifier + number_literal) )))) = identifier) ;) (expression_statement "jp->prev_job = pjVar11;" (assignment_expression "jp->prev_job = pjVar11" (field_expression "jp->prev_job" identifier -> field_identifier) = identifier) ;) (expression_statement "jp->ps = &jp->ps0;" (assignment_expression "jp->ps = &jp->ps0" (field_expression "jp->ps" identifier -> field_identifier) = (pointer_expression "&jp->ps0" & (field_expression "jp->ps0" identifier -> field_identifier))) ;) (expression_statement "*(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef | 0x10;" (assignment_expression "*(ushort *)&jp->field_0x18 = *(ushort *)&jp->field_0x18 & 0xffef | 0x10" (pointer_expression "*(ushort *)&jp->field_0x18" * (cast_expression "(ushort *)&jp->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&jp->field_0x18 & 0xffef | 0x10" (binary_expression "*(ushort *)&jp->field_0x18 & 0xffef" (pointer_expression "*(ushort *)&jp->field_0x18" * (cast_expression "(ushort *)&jp->field_0x18" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) (if_statement "if (1 < nprocs) {\n    ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);\n    jp->ps = ppVar3;\n  }" if (parenthesized_expression "(1 < nprocs)" ( (binary_expression "1 < nprocs" number_literal < identifier) )) (compound_statement "{\n    ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);\n    jp->ps = ppVar3;\n  }" { (expression_statement "ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc);" (assignment_expression "ppVar3 = (procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc)" identifier = (cast_expression "(procstat *)(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc)" ( (type_descriptor "procstat *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0012a230)(nprocs * 0xc)" (parenthesized_expression "(*(code *)PTR_xmalloc_0012a230)" ( (pointer_expression "*(code *)PTR_xmalloc_0012a230" * (cast_expression "(code *)PTR_xmalloc_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(nprocs * 0xc)" ( (binary_expression "nprocs * 0xc" identifier * number_literal) ))))) ;) (expression_statement "jp->ps = ppVar3;" (assignment_expression "jp->ps = ppVar3" (field_expression "jp->ps" identifier -> field_identifier) = identifier) ;) })) (return_statement "return jp;" return identifier ;) })))
(translation_unit "int FUN_000738f8(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}\n\n" (function_definition "int FUN_000738f8(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}" primitive_type (function_declarator "FUN_000738f8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "char cVar11;" primitive_type identifier ;) (expression_statement "puVar9 = PTR_DAT_0012a178;" (assignment_expression "puVar9 = PTR_DAT_0012a178" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;" (assignment_expression "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" identifier = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d00" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);" (assignment_expression "iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc)" identifier = (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4cfc)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4cfc)" ( (binary_expression "PTR_DAT_0012a178 + -0x4cfc" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }" { (labeled_statement "LAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" statement_identifier : (expression_statement "iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" (assignment_expression "iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" identifier = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d00" identifier + number_literal) )))) * number_literal)) ;)) (expression_statement "iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2a4)" ( (pointer_expression "*(code *)PTR_FUN_0012a2a4" * (cast_expression "(code *)PTR_FUN_0012a2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,iVar7 + 0x80)" ( identifier , (binary_expression "iVar7 + 0x80" identifier + number_literal) )))) ;) (expression_statement "iVar4 = iVar2 - iVar10;" (assignment_expression "iVar4 = iVar2 - iVar10" identifier = (binary_expression "iVar2 - iVar10" identifier - identifier)) ;) (expression_statement "puVar8 = PTR_DAT_0012a178;" (assignment_expression "puVar8 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }" { (if_statement "if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }" { (expression_statement "piVar3 = (int *)(iVar2 + iVar7 + -0x14);" (assignment_expression "piVar3 = (int *)(iVar2 + iVar7 + -0x14)" identifier = (cast_expression "(int *)(iVar2 + iVar7 + -0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar7 + -0x14)" ( (binary_expression "iVar2 + iVar7 + -0x14" (binary_expression "iVar2 + iVar7" identifier + identifier) + number_literal) )))) ;) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (do_statement "do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);" do (compound_statement "{\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        }" { (expression_statement "iVar6 = iVar6 + -0x20;" (assignment_expression "iVar6 = iVar6 + -0x20" identifier = (binary_expression "iVar6 + -0x20" identifier + number_literal)) ;) (if_statement "if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }" if (parenthesized_expression "(*piVar3 == iVar10 + iVar6)" ( (binary_expression "*piVar3 == iVar10 + iVar6" (pointer_expression "*piVar3" * identifier) == (binary_expression "iVar10 + iVar6" identifier + identifier)) )) (compound_statement "{\n            *piVar3 = *piVar3 + iVar4;\n          }" { (expression_statement "*piVar3 = *piVar3 + iVar4;" (assignment_expression "*piVar3 = *piVar3 + iVar4" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + iVar4" (pointer_expression "*piVar3" * identifier) + identifier)) ;) })) (if_statement "if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }" if (parenthesized_expression "(piVar3[4] != 0)" ( (binary_expression "piVar3[4] != 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            piVar3[4] = piVar3[4] + iVar4;\n          }" { (expression_statement "piVar3[4] = piVar3[4] + iVar4;" (assignment_expression "piVar3[4] = piVar3[4] + iVar4" (subscript_expression "piVar3[4]" identifier [ number_literal ]) = (binary_expression "piVar3[4] + iVar4" (subscript_expression "piVar3[4]" identifier [ number_literal ]) + identifier)) ;) })) (expression_statement "piVar3 = piVar3 + -8;" (assignment_expression "piVar3 = piVar3 + -8" identifier = (binary_expression "piVar3 + -8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "puVar8 = PTR_DAT_0012a178;" (assignment_expression "puVar8 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }" if (parenthesized_expression "(*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0)" ( (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }" { (expression_statement "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;" (assignment_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) = (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) )))) + identifier)) ;) })) })) (expression_statement "iVar7 = iVar2 + iVar7;" (assignment_expression "iVar7 = iVar2 + iVar7" identifier = (binary_expression "iVar2 + iVar7" identifier + identifier)) ;) (expression_statement "*(int *)(puVar9 + -0x4cfc) = iVar2;" (assignment_expression "*(int *)(puVar9 + -0x4cfc) = iVar2" (pointer_expression "*(int *)(puVar9 + -0x4cfc)" * (cast_expression "(int *)(puVar9 + -0x4cfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4cfc)" ( (binary_expression "puVar9 + -0x4cfc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;" (assignment_expression "*(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar9 + -0x4d00)" * (cast_expression "(int *)(puVar9 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d00)" ( (binary_expression "puVar9 + -0x4d00" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar9 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar9 + -0x4d00)" * (cast_expression "(int *)(puVar9 + -0x4d00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d00)" ( (binary_expression "puVar9 + -0x4d00" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x78)" * (cast_expression "(ushort *)(iVar7 + 0x78)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x78)" ( (binary_expression "iVar7 + 0x78" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x78) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x78)" * (cast_expression "(ushort *)(iVar7 + 0x78)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x78)" ( (binary_expression "iVar7 + 0x78" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x58)" * (cast_expression "(ushort *)(iVar7 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x58)" ( (binary_expression "iVar7 + 0x58" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x58) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x58)" * (cast_expression "(ushort *)(iVar7 + 0x58)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x58)" ( (binary_expression "iVar7 + 0x58" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x38)" * (cast_expression "(ushort *)(iVar7 + 0x38)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x38) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x38)" * (cast_expression "(ushort *)(iVar7 + 0x38)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "cVar11 = puVar9[-0x4c38];" (assignment_expression "cVar11 = puVar9[-0x4c38]" identifier = (subscript_expression "puVar9[-0x4c38]" identifier [ number_literal ])) ;) (expression_statement "puVar9 = puVar8;" (assignment_expression "puVar9 = puVar8" identifier = identifier) ;) }) (else_clause "else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" else (compound_statement "{\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" { (expression_statement "cVar11 = PTR_DAT_0012a178[-0x4c38];" (assignment_expression "cVar11 = PTR_DAT_0012a178[-0x4c38]" identifier = (subscript_expression "PTR_DAT_0012a178[-0x4c38]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = *(ushort *)(iVar10 + 0x18);" (assignment_expression "uVar1 = *(ushort *)(iVar10 + 0x18)" identifier = (pointer_expression "*(ushort *)(iVar10 + 0x18)" * (cast_expression "(ushort *)(iVar10 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x18)" ( (binary_expression "iVar10 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = iVar10;" (assignment_expression "iVar7 = iVar10" identifier = identifier) ;) (while_statement "while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }" while (parenthesized_expression "((uVar1 & 0x10) != 0)" ( (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" ( (binary_expression "uVar1 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }" { (if_statement "if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }" if (parenthesized_expression "(((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0'))" ( (binary_expression "((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')" (parenthesized_expression "((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000)" ( (binary_expression "(*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000" (parenthesized_expression "(*(uint *)(iVar7 + 0x18) & 0xff200000)" ( (binary_expression "*(uint *)(iVar7 + 0x18) & 0xff200000" (pointer_expression "*(uint *)(iVar7 + 0x18)" * (cast_expression "(uint *)(iVar7 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(cVar11 == '\0')" ( (binary_expression "cVar11 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }" { (expression_statement "FUN_0006e000(iVar7);" (call_expression "FUN_0006e000(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (goto_statement "goto LAB_00073a70;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (iVar2 == -1) goto LAB_00073950;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00073950;" goto statement_identifier ;)) (expression_statement "uVar1 = *(ushort *)(iVar7 + 0x38);" (assignment_expression "uVar1 = *(ushort *)(iVar7 + 0x38)" identifier = (pointer_expression "*(ushort *)(iVar7 + 0x38)" * (cast_expression "(ushort *)(iVar7 + 0x38)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x38)" ( (binary_expression "iVar7 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "iVar7 = iVar7 + 0x20;" (assignment_expression "iVar7 = iVar7 + 0x20" identifier = (binary_expression "iVar7 + 0x20" identifier + number_literal)) ;) })) }))) (expression_statement "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }" if (parenthesized_expression "(cVar11 != '\0')" ( (binary_expression "cVar11 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }" { (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40" (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffbf" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (labeled_statement "LAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);" statement_identifier : (expression_statement "uVar5 = *(undefined4 *)(puVar9 + -0x4d04);" (assignment_expression "uVar5 = *(undefined4 *)(puVar9 + -0x4d04)" identifier = (pointer_expression "*(undefined4 *)(puVar9 + -0x4d04)" * (cast_expression "(undefined4 *)(puVar9 + -0x4d04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d04)" ( (binary_expression "puVar9 + -0x4d04" identifier + number_literal) ))))) ;)) (expression_statement "*(int *)(puVar9 + -0x4d04) = iVar7;" (assignment_expression "*(int *)(puVar9 + -0x4d04) = iVar7" (pointer_expression "*(int *)(puVar9 + -0x4d04)" * (cast_expression "(int *)(puVar9 + -0x4d04)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar9 + -0x4d04)" ( (binary_expression "puVar9 + -0x4d04" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x1c) = uVar5;" (assignment_expression "*(undefined4 *)(iVar7 + 0x1c) = uVar5" (pointer_expression "*(undefined4 *)(iVar7 + 0x1c)" * (cast_expression "(undefined4 *)(iVar7 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar7 + 0xc) = iVar7;" (assignment_expression "*(int *)(iVar7 + 0xc) = iVar7" (pointer_expression "*(int *)(iVar7 + 0xc)" * (cast_expression "(int *)(iVar7 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef | 0x10" (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" * (cast_expression "(ushort *)(iVar7 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x18)" ( (binary_expression "iVar7 + 0x18" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (if_statement "if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }" if (parenthesized_expression "(1 < param_1)" ( (binary_expression "1 < param_1" number_literal < identifier) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc)" identifier = (call_expression "(*(code *)PTR_FUN_0012a230)(param_1 * 0xc)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" ( (pointer_expression "*(code *)PTR_FUN_0012a230" * (cast_expression "(code *)PTR_FUN_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 * 0xc)" ( (binary_expression "param_1 * 0xc" identifier * number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar7 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar7 + 0xc)" * (cast_expression "(undefined4 *)(iVar7 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT * LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000738f8(int param_1)\n\n{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}" (primitive_type "int") (function_declarator "FUN_000738f8(int param_1)" (identifier "FUN_000738f8") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  int iVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  int iVar10;\n  char cVar11;\n  \n  puVar9 = PTR_DAT_0012a178;\n  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;\n  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);\n  if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }\n  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n  if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }\nLAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);\n  *(int *)(puVar9 + -0x4d04) = iVar7;\n  *(undefined4 *)(iVar7 + 0x1c) = uVar5;\n  *(int *)(iVar7 + 0xc) = iVar7;\n  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;\n  if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }\n  return iVar7;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "char cVar11;" (primitive_type "char") (identifier "cVar11") (; ";")) (expression_statement "puVar9 = PTR_DAT_0012a178;" (assignment_expression "puVar9 = PTR_DAT_0012a178" (identifier "puVar9") (= "=") (identifier "PTR_DAT_0012a178")) (; ";")) (expression_statement "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;" (assignment_expression "iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" (identifier "iVar2") (= "=") (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) + -1" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" (* "*") (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" (( "(") (binary_expression "PTR_DAT_0012a178 + -0x4d00" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4d00")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);" (assignment_expression "iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4cfc)" (* "*") (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4cfc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0012a178 + -0x4cfc)" (( "(") (binary_expression "PTR_DAT_0012a178 + -0x4cfc" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4cfc")) () ")"))))) (; ";")) (if_statement "if (iVar2 < 0) {\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }\n  else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;\n    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);\n    iVar4 = iVar2 - iVar10;\n    puVar8 = PTR_DAT_0012a178;\n    if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }\n    iVar7 = iVar2 + iVar7;\n    *(int *)(puVar9 + -0x4cfc) = iVar2;\n    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;\n    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;\n    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;\n    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;\n    cVar11 = puVar9[-0x4c38];\n    puVar9 = puVar8;\n  }" ({ "{") (labeled_statement "LAB_00073950:\n    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" (statement_identifier "LAB_00073950") (: ":") (expression_statement "iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;" (assignment_expression "iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" (identifier "iVar7") (= "=") (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d00)" (* "*") (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d00)" (( "(") (binary_expression "PTR_DAT_0012a178 + -0x4d00" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4d00")) () ")")))) (* "*") (number_literal "0x20"))) (; ";"))) (expression_statement "iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);" (assignment_expression "iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2a4)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a2a4" (* "*") (cast_expression "(code *)PTR_FUN_0012a2a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a2a4"))) () ")")) (argument_list "(iVar10,iVar7 + 0x80)" (( "(") (identifier "iVar10") (, ",") (binary_expression "iVar7 + 0x80" (identifier "iVar7") (+ "+") (number_literal "0x80")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar2 - iVar10;" (assignment_expression "iVar4 = iVar2 - iVar10" (identifier "iVar4") (= "=") (binary_expression "iVar2 - iVar10" (identifier "iVar2") (- "-") (identifier "iVar10"))) (; ";")) (expression_statement "puVar8 = PTR_DAT_0012a178;" (assignment_expression "puVar8 = PTR_DAT_0012a178" (identifier "puVar8") (= "=") (identifier "PTR_DAT_0012a178")) (; ";")) (if_statement "if (iVar4 != 0) {\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }\n      puVar8 = PTR_DAT_0012a178;\n      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }\n    }" ({ "{") (if_statement "if (iVar7 != 0) {\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar3 = (int *)(iVar2 + iVar7 + -0x14);\n        iVar6 = iVar7;\n        do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);\n      }" ({ "{") (expression_statement "piVar3 = (int *)(iVar2 + iVar7 + -0x14);" (assignment_expression "piVar3 = (int *)(iVar2 + iVar7 + -0x14)" (identifier "piVar3") (= "=") (cast_expression "(int *)(iVar2 + iVar7 + -0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar7 + -0x14)" (( "(") (binary_expression "iVar2 + iVar7 + -0x14" (binary_expression "iVar2 + iVar7" (identifier "iVar2") (+ "+") (identifier "iVar7")) (+ "+") (number_literal "-0x14")) () ")")))) (; ";")) (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" (identifier "iVar6") (= "=") (identifier "iVar7")) (; ";")) (do_statement "do {\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        } while (iVar6 != 0);" (do "do") (compound_statement "{\n          iVar6 = iVar6 + -0x20;\n          if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }\n          if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }\n          piVar3 = piVar3 + -8;\n        }" ({ "{") (expression_statement "iVar6 = iVar6 + -0x20;" (assignment_expression "iVar6 = iVar6 + -0x20" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -0x20" (identifier "iVar6") (+ "+") (number_literal "-0x20"))) (; ";")) (if_statement "if (*piVar3 == iVar10 + iVar6) {\n            *piVar3 = *piVar3 + iVar4;\n          }" (if "if") (parenthesized_expression "(*piVar3 == iVar10 + iVar6)" (( "(") (binary_expression "*piVar3 == iVar10 + iVar6" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (binary_expression "iVar10 + iVar6" (identifier "iVar10") (+ "+") (identifier "iVar6"))) () ")")) (compound_statement "{\n            *piVar3 = *piVar3 + iVar4;\n          }" ({ "{") (expression_statement "*piVar3 = *piVar3 + iVar4;" (assignment_expression "*piVar3 = *piVar3 + iVar4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (binary_expression "*piVar3 + iVar4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (if_statement "if (piVar3[4] != 0) {\n            piVar3[4] = piVar3[4] + iVar4;\n          }" (if "if") (parenthesized_expression "(piVar3[4] != 0)" (( "(") (binary_expression "piVar3[4] != 0" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            piVar3[4] = piVar3[4] + iVar4;\n          }" ({ "{") (expression_statement "piVar3[4] = piVar3[4] + iVar4;" (assignment_expression "piVar3[4] = piVar3[4] + iVar4" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "piVar3[4] + iVar4" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "piVar3 = piVar3 + -8;" (assignment_expression "piVar3 = piVar3 + -8" (identifier "piVar3") (= "=") (binary_expression "piVar3 + -8" (identifier "piVar3") (+ "+") (number_literal "-8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "puVar8 = PTR_DAT_0012a178;" (assignment_expression "puVar8 = PTR_DAT_0012a178" (identifier "puVar8") (= "=") (identifier "PTR_DAT_0012a178")) (; ";")) (if_statement "if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" (* "*") (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" (( "(") (binary_expression "PTR_DAT_0012a178 + -0x4d04" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4d04")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;\n      }" ({ "{") (expression_statement "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;" (assignment_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" (* "*") (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" (( "(") (binary_expression "PTR_DAT_0012a178 + -0x4d04" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4d04")) () ")")))) (= "=") (binary_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4" (pointer_expression "*(int *)(PTR_DAT_0012a178 + -0x4d04)" (* "*") (cast_expression "(int *)(PTR_DAT_0012a178 + -0x4d04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" (( "(") (binary_expression "PTR_DAT_0012a178 + -0x4d04" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4d04")) () ")")))) (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar7 = iVar2 + iVar7;" (assignment_expression "iVar7 = iVar2 + iVar7" (identifier "iVar7") (= "=") (binary_expression "iVar2 + iVar7" (identifier "iVar2") (+ "+") (identifier "iVar7"))) (; ";")) (expression_statement "*(int *)(puVar9 + -0x4cfc) = iVar2;" (assignment_expression "*(int *)(puVar9 + -0x4cfc) = iVar2" (pointer_expression "*(int *)(puVar9 + -0x4cfc)" (* "*") (cast_expression "(int *)(puVar9 + -0x4cfc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -0x4cfc)" (( "(") (binary_expression "puVar9 + -0x4cfc" (identifier "puVar9") (+ "+") (number_literal "-0x4cfc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;" (assignment_expression "*(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar9 + -0x4d00)" (* "*") (cast_expression "(int *)(puVar9 + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -0x4d00)" (( "(") (binary_expression "puVar9 + -0x4d00" (identifier "puVar9") (+ "+") (number_literal "-0x4d00")) () ")")))) (= "=") (binary_expression "*(int *)(puVar9 + -0x4d00) + 4" (pointer_expression "*(int *)(puVar9 + -0x4d00)" (* "*") (cast_expression "(int *)(puVar9 + -0x4d00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -0x4d00)" (( "(") (binary_expression "puVar9 + -0x4d00" (identifier "puVar9") (+ "+") (number_literal "-0x4d00")) () ")")))) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x78)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x78)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x78)" (( "(") (binary_expression "iVar7 + 0x78" (identifier "iVar7") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar7 + 0x78) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x78)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x78)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x78)" (( "(") (binary_expression "iVar7 + 0x78" (identifier "iVar7") (+ "+") (number_literal "0x78")) () ")")))) (& "&") (number_literal "0xffef"))) (; ";")) (expression_statement "*(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x58)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x58)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x58)" (( "(") (binary_expression "iVar7 + 0x58" (identifier "iVar7") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar7 + 0x58) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x58)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x58)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x58)" (( "(") (binary_expression "iVar7 + 0x58" (identifier "iVar7") (+ "+") (number_literal "0x58")) () ")")))) (& "&") (number_literal "0xffef"))) (; ";")) (expression_statement "*(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x38)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x38)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x38)" (( "(") (binary_expression "iVar7 + 0x38" (identifier "iVar7") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar7 + 0x38) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x38)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x38)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x38)" (( "(") (binary_expression "iVar7 + 0x38" (identifier "iVar7") (+ "+") (number_literal "0x38")) () ")")))) (& "&") (number_literal "0xffef"))) (; ";")) (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xffef"))) (; ";")) (expression_statement "cVar11 = puVar9[-0x4c38];" (assignment_expression "cVar11 = puVar9[-0x4c38]" (identifier "cVar11") (= "=") (subscript_expression "puVar9[-0x4c38]" (identifier "puVar9") ([ "[") (number_literal "-0x4c38") (] "]"))) (; ";")) (expression_statement "puVar9 = puVar8;" (assignment_expression "puVar9 = puVar8" (identifier "puVar9") (= "=") (identifier "puVar8")) (; ";")) (} "}")) (else_clause "else {\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" (else "else") (compound_statement "{\n    cVar11 = PTR_DAT_0012a178[-0x4c38];\n    uVar1 = *(ushort *)(iVar10 + 0x18);\n    iVar7 = iVar10;\n    while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }\n  }" ({ "{") (expression_statement "cVar11 = PTR_DAT_0012a178[-0x4c38];" (assignment_expression "cVar11 = PTR_DAT_0012a178[-0x4c38]" (identifier "cVar11") (= "=") (subscript_expression "PTR_DAT_0012a178[-0x4c38]" (identifier "PTR_DAT_0012a178") ([ "[") (number_literal "-0x4c38") (] "]"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(iVar10 + 0x18);" (assignment_expression "uVar1 = *(ushort *)(iVar10 + 0x18)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(iVar10 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar10 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 0x18)" (( "(") (binary_expression "iVar10 + 0x18" (identifier "iVar10") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "iVar7 = iVar10;" (assignment_expression "iVar7 = iVar10" (identifier "iVar7") (= "=") (identifier "iVar10")) (; ";")) (while_statement "while ((uVar1 & 0x10) != 0) {\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }" (while "while") (parenthesized_expression "((uVar1 & 0x10) != 0)" (( "(") (binary_expression "(uVar1 & 0x10) != 0" (parenthesized_expression "(uVar1 & 0x10)" (( "(") (binary_expression "uVar1 & 0x10" (identifier "uVar1") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }\n      iVar2 = iVar2 + -1;\n      if (iVar2 == -1) goto LAB_00073950;\n      uVar1 = *(ushort *)(iVar7 + 0x38);\n      iVar7 = iVar7 + 0x20;\n    }" ({ "{") (if_statement "if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }" (if "if") (parenthesized_expression "(((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0'))" (( "(") (binary_expression "((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')" (parenthesized_expression "((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000)" (( "(") (binary_expression "(*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000" (parenthesized_expression "(*(uint *)(iVar7 + 0x18) & 0xff200000)" (( "(") (binary_expression "*(uint *)(iVar7 + 0x18) & 0xff200000" (pointer_expression "*(uint *)(iVar7 + 0x18)" (* "*") (cast_expression "(uint *)(iVar7 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xff200000")) () ")")) (== "==") (number_literal "0x2200000")) () ")")) (&& "&&") (parenthesized_expression "(cVar11 == '\0')" (( "(") (binary_expression "cVar11 == '\0'" (identifier "cVar11") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        FUN_0006e000(iVar7);\n        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);\n        goto LAB_00073a70;\n      }" ({ "{") (expression_statement "FUN_0006e000(iVar7);" (call_expression "FUN_0006e000(iVar7)" (identifier "FUN_0006e000") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" (( "(") (pointer_expression "*(code *)PTR_memset_0012aebc" (* "*") (cast_expression "(code *)PTR_memset_0012aebc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0012aebc"))) () ")")) (argument_list "(iVar7,0,0x20)" (( "(") (identifier "iVar7") (, ",") (number_literal "0") (, ",") (number_literal "0x20") () ")"))) (; ";")) (goto_statement "goto LAB_00073a70;" (goto "goto") (statement_identifier "LAB_00073a70") (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar2 == -1) goto LAB_00073950;" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00073950;" (goto "goto") (statement_identifier "LAB_00073950") (; ";"))) (expression_statement "uVar1 = *(ushort *)(iVar7 + 0x38);" (assignment_expression "uVar1 = *(ushort *)(iVar7 + 0x38)" (identifier "uVar1") (= "=") (pointer_expression "*(ushort *)(iVar7 + 0x38)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x38)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x38)" (( "(") (binary_expression "iVar7 + 0x38" (identifier "iVar7") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "iVar7 = iVar7 + 0x20;" (assignment_expression "iVar7 = iVar7 + 0x20" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 0x20" (identifier "iVar7") (+ "+") (number_literal "0x20"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);" (call_expression "(*(code *)PTR_memset_0012aebc)(iVar7,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" (( "(") (pointer_expression "*(code *)PTR_memset_0012aebc" (* "*") (cast_expression "(code *)PTR_memset_0012aebc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0012aebc"))) () ")")) (argument_list "(iVar7,0,0x20)" (( "(") (identifier "iVar7") (, ",") (number_literal "0") (, ",") (number_literal "0x20") () ")"))) (; ";")) (if_statement "if (cVar11 != '\0') {\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }" (if "if") (parenthesized_expression "(cVar11 != '\0')" (( "(") (binary_expression "cVar11 != '\0'" (identifier "cVar11") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;\n  }" ({ "{") (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40" (pointer_expression "*(ushort *)(iVar7 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40" (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffbf" (pointer_expression "*(ushort *)(iVar7 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xffbf")) (| "|") (number_literal "0x40"))) (; ";")) (} "}"))) (labeled_statement "LAB_00073a70:\n  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);" (statement_identifier "LAB_00073a70") (: ":") (expression_statement "uVar5 = *(undefined4 *)(puVar9 + -0x4d04);" (assignment_expression "uVar5 = *(undefined4 *)(puVar9 + -0x4d04)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(puVar9 + -0x4d04)" (* "*") (cast_expression "(undefined4 *)(puVar9 + -0x4d04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -0x4d04)" (( "(") (binary_expression "puVar9 + -0x4d04" (identifier "puVar9") (+ "+") (number_literal "-0x4d04")) () ")"))))) (; ";"))) (expression_statement "*(int *)(puVar9 + -0x4d04) = iVar7;" (assignment_expression "*(int *)(puVar9 + -0x4d04) = iVar7" (pointer_expression "*(int *)(puVar9 + -0x4d04)" (* "*") (cast_expression "(int *)(puVar9 + -0x4d04)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar9 + -0x4d04)" (( "(") (binary_expression "puVar9 + -0x4d04" (identifier "puVar9") (+ "+") (number_literal "-0x4d04")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x1c) = uVar5;" (assignment_expression "*(undefined4 *)(iVar7 + 0x1c) = uVar5" (pointer_expression "*(undefined4 *)(iVar7 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x1c)" (( "(") (binary_expression "iVar7 + 0x1c" (identifier "iVar7") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "*(int *)(iVar7 + 0xc) = iVar7;" (assignment_expression "*(int *)(iVar7 + 0xc) = iVar7" (pointer_expression "*(int *)(iVar7 + 0xc)" (* "*") (cast_expression "(int *)(iVar7 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xc)" (( "(") (binary_expression "iVar7 + 0xc" (identifier "iVar7") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;" (assignment_expression "*(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10" (pointer_expression "*(ushort *)(iVar7 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef | 0x10" (binary_expression "*(ushort *)(iVar7 + 0x18) & 0xffef" (pointer_expression "*(ushort *)(iVar7 + 0x18)" (* "*") (cast_expression "(ushort *)(iVar7 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x18)" (( "(") (binary_expression "iVar7 + 0x18" (identifier "iVar7") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xffef")) (| "|") (number_literal "0x10"))) (; ";")) (if_statement "if (1 < param_1) {\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }" (if "if") (parenthesized_expression "(1 < param_1)" (( "(") (binary_expression "1 < param_1" (number_literal "1") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);\n    *(undefined4 *)(iVar7 + 0xc) = uVar5;\n  }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);" (assignment_expression "uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_FUN_0012a230)(param_1 * 0xc)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a230" (* "*") (cast_expression "(code *)PTR_FUN_0012a230" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a230"))) () ")")) (argument_list "(param_1 * 0xc)" (( "(") (binary_expression "param_1 * 0xc" (identifier "param_1") (* "*") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar7 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar7 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xc)" (( "(") (binary_expression "iVar7 + 0xc" (identifier "iVar7") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (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: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (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 (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (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 (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (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: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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) (number_literal) (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (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) (number_literal) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) 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: (binary_expression left: (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: (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (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: (number_literal)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (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 (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  ushort uVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  int iVar7;
  undefined *puVar8;
  undefined *puVar9;
  int iVar10;
  char cVar11;
  
  puVar9 = PTR_DAT_0012a178;
  iVar2 = *(int *)(PTR_DAT_0012a178 + -0x4d00) + -1;
  iVar10 = *(int *)(PTR_DAT_0012a178 + -0x4cfc);
  if (iVar2 < 0) {
LAB_00073950:
    iVar7 = *(int *)(PTR_DAT_0012a178 + -0x4d00) * 0x20;
    iVar2 = (*(code *)PTR_FUN_0012a2a4)(iVar10,iVar7 + 0x80);
    iVar4 = iVar2 - iVar10;
    puVar8 = PTR_DAT_0012a178;
    if (iVar4 != 0) {
      if (iVar7 != 0) {
        piVar3 = (int *)(iVar2 + iVar7 + -0x14);
        iVar6 = iVar7;
        do {
          iVar6 = iVar6 + -0x20;
          if (*piVar3 == iVar10 + iVar6) {
            *piVar3 = *piVar3 + iVar4;
          }
          if (piVar3[4] != 0) {
            piVar3[4] = piVar3[4] + iVar4;
          }
          piVar3 = piVar3 + -8;
        } while (iVar6 != 0);
      }
      puVar8 = PTR_DAT_0012a178;
      if (*(int *)(PTR_DAT_0012a178 + -0x4d04) != 0) {
        *(int *)(PTR_DAT_0012a178 + -0x4d04) = *(int *)(PTR_DAT_0012a178 + -0x4d04) + iVar4;
      }
    }
    iVar7 = iVar2 + iVar7;
    *(int *)(puVar9 + -0x4cfc) = iVar2;
    *(int *)(puVar9 + -0x4d00) = *(int *)(puVar9 + -0x4d00) + 4;
    *(ushort *)(iVar7 + 0x78) = *(ushort *)(iVar7 + 0x78) & 0xffef;
    *(ushort *)(iVar7 + 0x58) = *(ushort *)(iVar7 + 0x58) & 0xffef;
    *(ushort *)(iVar7 + 0x38) = *(ushort *)(iVar7 + 0x38) & 0xffef;
    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef;
    cVar11 = puVar9[-0x4c38];
    puVar9 = puVar8;
  }
  else {
    cVar11 = PTR_DAT_0012a178[-0x4c38];
    uVar1 = *(ushort *)(iVar10 + 0x18);
    iVar7 = iVar10;
    while ((uVar1 & 0x10) != 0) {
      if (((*(uint *)(iVar7 + 0x18) & 0xff200000) == 0x2200000) && (cVar11 == '\0')) {
        FUN_0006e000(iVar7);
        (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);
        goto LAB_00073a70;
      }
      iVar2 = iVar2 + -1;
      if (iVar2 == -1) goto LAB_00073950;
      uVar1 = *(ushort *)(iVar7 + 0x38);
      iVar7 = iVar7 + 0x20;
    }
  }
  (*(code *)PTR_memset_0012aebc)(iVar7,0,0x20);
  if (cVar11 != '\0') {
    *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffbf | 0x40;
  }
LAB_00073a70:
  uVar5 = *(undefined4 *)(puVar9 + -0x4d04);
  *(int *)(puVar9 + -0x4d04) = iVar7;
  *(undefined4 *)(iVar7 + 0x1c) = uVar5;
  *(int *)(iVar7 + 0xc) = iVar7;
  *(ushort *)(iVar7 + 0x18) = *(ushort *)(iVar7 + 0x18) & 0xffef | 0x10;
  if (1 < param_1) {
    uVar5 = (*(code *)PTR_FUN_0012a230)(param_1 * 0xc);
    *(undefined4 *)(iVar7 + 0xc) = uVar5;
  }
  return iVar7;
}

