
void showjob(job *jp,int mode)

{
  char **ppcVar1;
  uint uVar2;
  undefined *puVar3;
  undefined *puVar4;
  int iVar5;
  job *pjVar6;
  undefined *puVar7;
  undefined *puVar8;
  int iVar9;
  FILE *s_00;
  char *pcVar10;
  procstat *unaff_s0;
  undefined *unaff_s1;
  char *unaff_s3;
  FILE *dest;
  undefined *unaff_s6;
  procstat *ppVar11;
  char acStack_7f [3];
  char s [80];
  
  puVar4 = PTR___stack_chk_guard_0012b14c;
  iVar9 = *(int *)PTR___stack_chk_guard_0012b14c;
  if ((mode & 8U) == 0) {
    dest = *(FILE **)PTR_stdout_0012ae40;
    ppVar11 = jp->ps;
  }
  else {
    dest = *(FILE **)PTR_stderr_0012b184;
    ppVar11 = jp->ps;
  }
  if ((mode & 1U) != 0) {
    s_00 = dest;
    (*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);
    goto LAB_00072e88;
  }
  unaff_s3 = s;
  unaff_s1 = (undefined *)
             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,
                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);
  pjVar6 = *(job **)(PTR_DAT_0012a178 + -0x4d04);
  if (pjVar6 == jp) {
    acStack_7f[(int)unaff_s1] = '+';
  }
  else if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {
    acStack_7f[(int)unaff_s1] = '-';
  }
  unaff_s6 = unaff_s1;
  if ((mode & 2U) != 0) {
    iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);
    unaff_s6 = unaff_s1 + iVar5;
  }
  s_00 = (FILE *)(unaff_s3 + (int)unaff_s6);
  mode = mode & 2;
  unaff_s0 = ppVar11 + jp->nprocs;
  if (jp->field_0x18 == '\0') {
    puVar7 = unaff_s6 + 7;
    pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);
    s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);
    s_00->_IO_read_ptr = pcVar10;
    while( true ) {
      puVar3 = PTR_UINT_0012a18c;
      unaff_s6 = PTR_UINT_0012a18c + 0x578c;
      puVar8 = PTR_UINT_0012a18c + 0x75c8;
      while( true ) {
        iVar5 = 0x21 - (int)puVar7;
        ppcVar1 = &ppVar11->ps_cmd;
        puVar7 = unaff_s6;
        if (jp->ps != ppVar11) {
          puVar7 = puVar8;
        }
        if (iVar5 < 0) {
          iVar5 = 0;
        }
        ppVar11 = ppVar11 + 1;
        (*(code *)PTR___fprintf_chk_0012ad0c)
                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);
        if (unaff_s0 == ppVar11) break;
        s[0] = '\0';
        puVar7 = (undefined *)0x21;
        if (mode != 0) {
          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);
          puVar7 = (undefined *)(iVar5 + -1);
        }
      }
      newline_and_flush(dest);
      s_00 = (FILE *)&SUB_00000002;
      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;
      *(short *)&jp->field_0x18 = (short)uVar2;
      if ((uVar2 << 0x10) >> 0x18 == 2) {
        s_00 = (FILE *)jp;
        freejob(jp);
        iVar5 = *(int *)puVar4;
      }
      else {
LAB_00072e88:
        iVar5 = *(int *)puVar4;
      }
      if (iVar9 == iVar5) break;
      (*(code *)PTR___stack_chk_fail_0012b0c8)();
LAB_00073144:
      iVar5 = jp->stopstatus;
LAB_00073004:
      iVar5 = sprint_status48((char *)s_00,iVar5,0);
      puVar7 = unaff_s6 + iVar5;
    }
    return;
  }
  iVar5 = unaff_s0[-1].ps_status;
  if (jp->field_0x18 == '\x01') goto LAB_00073144;
  goto LAB_00073004;
}



void FUN_00072df4(int param_1,uint param_2)

{
  uint uVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined *puVar7;
  undefined4 *puVar8;
  undefined4 uVar9;
  undefined *puVar10;
  undefined4 *puVar11;
  undefined1 *puVar12;
  undefined4 uVar13;
  undefined *puVar14;
  undefined4 *puVar15;
  undefined1 auStack_7f [3];
  undefined4 local_7c [20];
  int local_2c;
  
  puVar3 = PTR___stack_chk_guard_0012b14c;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  if ((param_2 & 8) == 0) {
    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;
    puVar15 = *(undefined4 **)(param_1 + 0xc);
    if ((param_2 & 1) == 0) goto LAB_00072ee0;
LAB_00072e68:
    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);
  }
  else {
    uVar13 = *(undefined4 *)PTR_stderr_0012b184;
    puVar15 = *(undefined4 **)(param_1 + 0xc);
    if ((param_2 & 1) != 0) goto LAB_00072e68;
LAB_00072ee0:
    puVar12 = auStack_7f + 3;
    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,
                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);
    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);
    if (iVar5 == param_1) {
      auStack_7f[iVar4] = 0x2b;
    }
    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {
      auStack_7f[iVar4] = 0x2d;
    }
    iVar5 = iVar4;
    if ((param_2 & 2) != 0) {
      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);
      iVar5 = iVar4 + iVar5;
    }
    puVar8 = (undefined4 *)(puVar12 + iVar5);
    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;
    if (*(char *)(param_1 + 0x18) == '\0') {
      iVar5 = iVar5 + 7;
      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);
      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);
      puVar8[1] = uVar9;
    }
    else {
      uVar9 = puVar11[-2];
      if (*(char *)(param_1 + 0x18) == '\x01') {
        uVar9 = *(undefined4 *)(param_1 + 0x10);
      }
      iVar6 = FUN_00072560(puVar8,uVar9,0);
      iVar5 = iVar5 + iVar6;
    }
    puVar2 = PTR_UINT_0012a18c;
    puVar14 = PTR_UINT_0012a18c + 0x578c;
    puVar7 = PTR_UINT_0012a18c + 0x75c8;
    while( true ) {
      iVar5 = 0x21 - iVar5;
      puVar8 = puVar15 + 2;
      puVar10 = puVar14;
      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {
        puVar10 = puVar7;
      }
      if (iVar5 < 0) {
        iVar5 = 0;
      }
      puVar15 = puVar15 + 3;
      (*(code *)PTR___fprintf_chk_0012ad0c)
                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);
      if (puVar11 == puVar15) break;
      local_7c[0]._0_1_ = 0;
      iVar5 = 0x21;
      if ((param_2 & 2) != 0) {
        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);
        iVar5 = iVar5 + -1;
      }
    }
    FUN_0006ec94(uVar13);
    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;
    *(short *)(param_1 + 0x18) = (short)uVar1;
    if ((uVar1 << 0x10) >> 0x18 == 2) {
      FUN_0006e000(param_1);
      if (local_2c == *(int *)puVar3) {
        return;
      }
      goto LAB_0007313c;
    }
  }
  if (local_2c == *(int *)puVar3) {
    return;
  }
LAB_0007313c:
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  return;
}


lui gp,0xc
addiu gp,gp,-0xca4
addu gp,gp,t9
lw v0,-0x7004(gp)
addiu sp,sp,-0xb8
or v1,v0,zero
sw s8,0xb0(sp)
or s8,a0,zero
sw gp,0x20(sp)
sw v0,0x2c(sp)
andi v0,a1,0x8
sw s2,0x98(sp)
or s2,a1,zero
sw ra,0xb4(sp)
sw s7,0xac(sp)
sw s6,0xa8(sp)
sw s5,0xa4(sp)
sw s4,0xa0(sp)
sw s3,0x9c(sp)
sw s1,0x94(sp)
sw s0,0x90(sp)
lw a0,0x0(v1)
sw a0,0x8c(sp)
beq v0,zero,0x00072ecc
_lw v0,-0x6fcc(gp)
lw s5,0x0(v0)
andi v0,s2,0x1
beq v0,zero,0x00072ee0
_lw s7,0xc(s8)
lw a2,-0x7fc4(gp)
li a1,0x1
lw t9,-0x7444(gp)
or a0,s5,zero
lw a3,0x0(s7)
jalr t9
_addiu a2,a2,0x4b74
lw gp,0x20(sp)
lw v0,0x2c(sp)
lw v1,0x8c(sp)
lw v0,0x0(v0)
bne v1,v0,0x0007313c
_lw t9,-0x7088(gp)
lw ra,0xb4(sp)
lw s8,0xb0(sp)
lw s7,0xac(sp)
lw s6,0xa8(sp)
lw s5,0xa4(sp)
lw s4,0xa0(sp)
lw s3,0x9c(sp)
lw s2,0x98(sp)
lw s1,0x94(sp)
lw s0,0x90(sp)
jr ra
_addiu sp,sp,0xb8
lw v0,-0x7310(gp)
lw s5,0x0(v0)
andi v0,s2,0x1
bne v0,zero,0x00072e68
_lw s7,0xc(s8)
lw v0,-0x7fd8(gp)
addiu s3,sp,0x3c
lw s4,-0x793c(gp)
li a1,0x10
lw a2,-0x7fc4(gp)
or a0,s3,zero
lw a3,-0x4cfc(v0)
addiu s4,s4,0x14a8
addiu a2,a2,0x75cc
or t9,s4,zero
subu a3,s8,a3
sra a3,a3,0x5
bal 0x000714a8
_addiu a3,a3,0x1
lw gp,0x20(sp)
or s1,v0,zero
lw v0,-0x7fd8(gp)
lw v0,-0x4d04(v0)
bne v0,s8,0x00072fbc
_li a0,0x2b
addiu v0,sp,0x90
addu v0,v0,s1
sb a0,-0x57(v0)
andi s2,s2,0x2
or v0,s1,zero
addu a0,s3,s1
beq s2,zero,0x00072f78
_or s6,s1,zero
lw a2,-0x7fc4(gp)
li a1,0x10
lw a3,0x0(s7)
or t9,s4,zero
bal 0x000714a8
_addiu a2,a2,0x5640
addu s6,s1,v0
lw gp,0x20(sp)
addu a0,s3,s6
or v0,s6,zero
lw a1,0x14(s8)
lbu a2,0x18(s8)
sll s0,a1,0x1
addu s0,s0,a1
sll s0,s0,0x2
bne a2,zero,0x00072ff8
_addu s0,s7,s0
lw a1,-0x7fc4(gp)
addiu v0,v0,0x7
addiu a3,a1,0x75d4
lw a2,0x75d4(a1)
lw a1,0x4(a3)
swl a2,0x0(a0)
swr a2,0x3(a0)
swl a1,0x4(a0)
b 0x0007301c
_swr a1,0x7(a0)
beq v0,zero,0x00072f3c
_nop
lw v0,0x1c(v0)
bne v0,s8,0x00072f3c
_addiu v0,sp,0x90
li a0,0x2d
addu v0,v0,s1
andi s2,s2,0x2
or s6,s1,zero
sb a0,-0x57(v0)
or v0,s1,zero
beq s2,zero,0x00072f78
_addu a0,s3,s1
b 0x00072f54
_lw a2,-0x7fc4(gp)
li v0,0x1
beq a2,v0,0x00073144
_lw a1,-0x8(s0)
lw t9,-0x793c(gp)
addiu t9,t9,0x2560
bal 0x00072560
_or a2,zero,zero
lw gp,0x20(sp)
addu v0,s6,v0
lw v1,-0x7fc4(gp)
lw a0,-0x7fc4(gp)
lw s6,-0x7fc4(gp)
sw v1,0x28(sp)
lw v1,-0x7fc4(gp)
addiu s6,s6,0x578c
sw v1,0x34(sp)
addiu v1,a0,0x75c8
sw v1,0x30(sp)
li a0,0x21
lw a1,0xc(s8)
lw v1,0x30(sp)
or a3,s6,zero
subu v0,a0,v0
lw t2,0x8(s7)
xor a1,a1,s7
lw t9,-0x7444(gp)
slti a0,v0,0x0
movn a3,v1,a1
li t1,0x20
movn v0,zero,a0
li a1,0x1
addiu s7,s7,0xc
lw v1,0x28(sp)
or a0,s5,zero
sw a3,0x18(sp)
or a3,s3,zero
sw t1,0x14(sp)
addiu a2,v1,0x75e4
sw t2,0x1c(sp)
jalr t9
_sw v0,0x10(sp)
li t1,0x20
beq s0,s7,0x000730e8
_lw gp,0x20(sp)
sb zero,0x3c(sp)
beq s2,zero,0x00073040
_li v0,0x21
lw v1,0x34(sp)
li a1,0x30
lw v0,0x0(s7)
or a3,s1,zero
sw t1,0x10(sp)
or a0,s3,zero
addiu a2,v1,0x75dc
or t9,s4,zero
bal 0x000714a8
_sw v0,0x14(sp)
lw gp,0x20(sp)
b 0x00073040
_addiu v0,v0,-0x1
lw t9,-0x793c(gp)
addiu t9,t9,-0x136c
bal 0x0006ec94
_or a0,s5,zero
li a0,0x2
lhu v0,0x18(s8)
lw gp,0x20(sp)
ins v0,zero,0x3,0x1
ext a1,v0,0x8,0x8
bne a1,a0,0x00072e88
_sh v0,0x18(s8)
lw t9,-0x793c(gp)
addiu t9,t9,-0x2000
bal 0x0006e000
_or a0,s8,zero
lw v0,0x2c(sp)
lw v1,0x8c(sp)
lw gp,0x20(sp)
lw v0,0x0(v0)
beq v1,v0,0x00072e9c
_lw t9,-0x7088(gp)
jalr t9
_nop
b 0x00073004
_lw a1,0x10(s8)
(translation_unit "void FUN_00072df4(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}\n\n" (function_definition "void FUN_00072df4(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}" primitive_type (function_declarator "FUN_00072df4(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "undefined1 auStack_7f [3];" type_identifier (array_declarator "auStack_7f [3]" identifier [ number_literal ]) ;) (declaration "undefined4 local_7c [20];" type_identifier (array_declarator "local_7c [20]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }" { (expression_statement "uVar13 = *(undefined4 *)PTR_stdout_0012ae40;" (assignment_expression "uVar13 = *(undefined4 *)PTR_stdout_0012ae40" identifier = (pointer_expression "*(undefined4 *)PTR_stdout_0012ae40" * (cast_expression "(undefined4 *)PTR_stdout_0012ae40" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar15 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar15 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 1) == 0) goto LAB_00072ee0;" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00072ee0;" goto statement_identifier ;)) (labeled_statement "LAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);" statement_identifier : (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15)" ( identifier , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x4b74" identifier + number_literal) , (pointer_expression "*puVar15" * identifier) ))) ;)) }) (else_clause "else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" else (compound_statement "{\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" { (expression_statement "uVar13 = *(undefined4 *)PTR_stderr_0012b184;" (assignment_expression "uVar13 = *(undefined4 *)PTR_stderr_0012b184" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar15 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar15 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 1) != 0) goto LAB_00072e68;" if (parenthesized_expression "((param_2 & 1) != 0)" ( (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00072e68;" goto statement_identifier ;)) (labeled_statement "LAB_00072ee0:\n    puVar12 = auStack_7f + 3;" statement_identifier : (expression_statement "puVar12 = auStack_7f + 3;" (assignment_expression "puVar12 = auStack_7f + 3" identifier = (binary_expression "auStack_7f + 3" identifier + number_literal)) ;)) (expression_statement "iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);" (assignment_expression "iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" identifier = (call_expression "FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" identifier (argument_list "(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" ( identifier , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x75cc" identifier + number_literal) , (binary_expression "(param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1" (parenthesized_expression "(param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5)" ( (binary_expression "param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5" (binary_expression "param_1 - *(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) ))))) >> number_literal) )) + number_literal) )))) ;) (expression_statement "iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04)" identifier = (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) ))))) ;) (if_statement "if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" if (parenthesized_expression "(iVar5 == param_1)" ( (binary_expression "iVar5 == param_1" identifier == identifier) )) (compound_statement "{\n      auStack_7f[iVar4] = 0x2b;\n    }" { (expression_statement "auStack_7f[iVar4] = 0x2b;" (assignment_expression "auStack_7f[iVar4] = 0x2b" (subscript_expression "auStack_7f[iVar4]" identifier [ identifier ]) = number_literal) ;) }) (else_clause "else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" else (if_statement "if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" if (parenthesized_expression "((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1))" ( (binary_expression "(iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar5 + 0x1c) == param_1)" ( (binary_expression "*(int *)(iVar5 + 0x1c) == param_1" (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n      auStack_7f[iVar4] = 0x2d;\n    }" { (expression_statement "auStack_7f[iVar4] = 0x2d;" (assignment_expression "auStack_7f[iVar4] = 0x2d" (subscript_expression "auStack_7f[iVar4]" identifier [ identifier ]) = number_literal) ;) })))) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }" { (expression_statement "iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);" (assignment_expression "iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" identifier = (call_expression "FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" identifier (argument_list "(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" ( (binary_expression "puVar12 + iVar4" identifier + identifier) , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x5640" identifier + number_literal) , (pointer_expression "*puVar15" * identifier) )))) ;) (expression_statement "iVar5 = iVar4 + iVar5;" (assignment_expression "iVar5 = iVar4 + iVar5" identifier = (binary_expression "iVar4 + iVar5" identifier + identifier)) ;) })) (expression_statement "puVar8 = (undefined4 *)(puVar12 + iVar5);" (assignment_expression "puVar8 = (undefined4 *)(puVar12 + iVar5)" identifier = (cast_expression "(undefined4 *)(puVar12 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + iVar5)" ( (binary_expression "puVar12 + iVar5" identifier + identifier) )))) ;) (expression_statement "puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;" (assignment_expression "puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3" identifier = (binary_expression "puVar15 + *(int *)(param_1 + 0x14) * 3" identifier + (binary_expression "*(int *)(param_1 + 0x14) * 3" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) * number_literal))) ;) (if_statement "if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x18) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x18) == '\0'" (pointer_expression "*(char *)(param_1 + 0x18)" * (cast_expression "(char *)(param_1 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }" { (expression_statement "iVar5 = iVar5 + 7;" (assignment_expression "iVar5 = iVar5 + 7" identifier = (binary_expression "iVar5 + 7" identifier + number_literal)) ;) (expression_statement "uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);" (assignment_expression "uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" identifier = (pointer_expression "*(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" * (cast_expression "(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d8)" ( (binary_expression "PTR_UINT_0012a18c + 0x75d8" identifier + number_literal) ))))) ;) (expression_statement "*puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);" (assignment_expression "*puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" * (cast_expression "(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d4)" ( (binary_expression "PTR_UINT_0012a18c + 0x75d4" identifier + number_literal) ))))) ;) (expression_statement "puVar8[1] = uVar9;" (assignment_expression "puVar8[1] = uVar9" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" else (compound_statement "{\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" { (expression_statement "uVar9 = puVar11[-2];" (assignment_expression "uVar9 = puVar11[-2]" identifier = (subscript_expression "puVar11[-2]" identifier [ number_literal ])) ;) (if_statement "if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x18) == '\x01')" ( (binary_expression "*(char *)(param_1 + 0x18) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x18)" * (cast_expression "(char *)(param_1 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }" { (expression_statement "uVar9 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar9 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = FUN_00072560(puVar8,uVar9,0);" (assignment_expression "iVar6 = FUN_00072560(puVar8,uVar9,0)" identifier = (call_expression "FUN_00072560(puVar8,uVar9,0)" identifier (argument_list "(puVar8,uVar9,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar5 = iVar5 + iVar6;" (assignment_expression "iVar5 = iVar5 + iVar6" identifier = (binary_expression "iVar5 + iVar6" identifier + identifier)) ;) }))) (expression_statement "puVar2 = PTR_UINT_0012a18c;" (assignment_expression "puVar2 = PTR_UINT_0012a18c" identifier = identifier) ;) (expression_statement "puVar14 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "puVar14 = PTR_UINT_0012a18c + 0x578c" identifier = (binary_expression "PTR_UINT_0012a18c + 0x578c" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_UINT_0012a18c + 0x75c8;" (assignment_expression "puVar7 = PTR_UINT_0012a18c + 0x75c8" identifier = (binary_expression "PTR_UINT_0012a18c + 0x75c8" identifier + number_literal)) ;) (while_statement "while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }" { (expression_statement "iVar5 = 0x21 - iVar5;" (assignment_expression "iVar5 = 0x21 - iVar5" identifier = (binary_expression "0x21 - iVar5" number_literal - identifier)) ;) (expression_statement "puVar8 = puVar15 + 2;" (assignment_expression "puVar8 = puVar15 + 2" identifier = (binary_expression "puVar15 + 2" identifier + number_literal)) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (if_statement "if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0xc) != puVar15)" ( (binary_expression "*(undefined4 **)(param_1 + 0xc) != puVar15" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n        puVar10 = puVar7;\n      }" { (expression_statement "puVar10 = puVar7;" (assignment_expression "puVar10 = puVar7" identifier = identifier) ;) })) (if_statement "if (iVar5 < 0) {\n        iVar5 = 0;\n      }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar5 = 0;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) (expression_statement "puVar15 = puVar15 + 3;" (assignment_expression "puVar15 = puVar15 + 3" identifier = (binary_expression "puVar15 + 3" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8)" ( identifier , number_literal , (binary_expression "puVar2 + 0x75e4" identifier + number_literal) , identifier , identifier , number_literal , identifier , (pointer_expression "*puVar8" * identifier) ))) ;) (if_statement "if (puVar11 == puVar15) break;" if (parenthesized_expression "(puVar11 == puVar15)" ( (binary_expression "puVar11 == puVar15" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "local_7c[0]._0_1_ = 0;" (assignment_expression "local_7c[0]._0_1_ = 0" (field_expression "local_7c[0]._0_1_" (subscript_expression "local_7c[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "iVar5 = 0x21;" (assignment_expression "iVar5 = 0x21" identifier = number_literal) ;) (if_statement "if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }" { (expression_statement "iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);" (assignment_expression "iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" identifier = (call_expression "FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" identifier (argument_list "(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" ( identifier , number_literal , (binary_expression "puVar2 + 0x75dc" identifier + number_literal) , identifier , number_literal , (pointer_expression "*puVar15" * identifier) )))) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) })) })) (expression_statement "FUN_0006ec94(uVar13);" (call_expression "FUN_0006ec94(uVar13)" identifier (argument_list "(uVar13)" ( identifier ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;" (assignment_expression "uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7" identifier = (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(short *)(param_1 + 0x18) = (short)uVar1;" (assignment_expression "*(short *)(param_1 + 0x18) = (short)uVar1" (pointer_expression "*(short *)(param_1 + 0x18)" * (cast_expression "(short *)(param_1 + 0x18)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (cast_expression "(short)uVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }" if (parenthesized_expression "((uVar1 << 0x10) >> 0x18 == 2)" ( (binary_expression "(uVar1 << 0x10) >> 0x18 == 2" (binary_expression "(uVar1 << 0x10) >> 0x18" (parenthesized_expression "(uVar1 << 0x10)" ( (binary_expression "uVar1 << 0x10" identifier << number_literal) )) >> number_literal) == number_literal) )) (compound_statement "{\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }" { (expression_statement "FUN_0006e000(param_1);" (call_expression "FUN_0006e000(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (local_2c == *(int *)puVar3) {\n        return;\n      }" if (parenthesized_expression "(local_2c == *(int *)puVar3)" ( (binary_expression "local_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0007313c;" goto statement_identifier ;) })) }))) (if_statement "if (local_2c == *(int *)puVar3) {\n    return;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar3)" ( (binary_expression "local_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();" statement_identifier : (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void showjob(job *jp,int mode)\n\n{\n  char **ppcVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  job *pjVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  int iVar9;\n  FILE *s_00;\n  char *pcVar10;\n  procstat *unaff_s0;\n  undefined *unaff_s1;\n  char *unaff_s3;\n  FILE *dest;\n  undefined *unaff_s6;\n  procstat *ppVar11;\n  char acStack_7f [3];\n  char s [80];\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  iVar9 = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((mode & 8U) == 0) {\n    dest = *(FILE **)PTR_stdout_0012ae40;\n    ppVar11 = jp->ps;\n  }\n  else {\n    dest = *(FILE **)PTR_stderr_0012b184;\n    ppVar11 = jp->ps;\n  }\n  if ((mode & 1U) != 0) {\n    s_00 = dest;\n    (*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);\n    goto LAB_00072e88;\n  }\n  unaff_s3 = s;\n  unaff_s1 = (undefined *)\n             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n  pjVar6 = *(job **)(PTR_DAT_0012a178 + -0x4d04);\n  if (pjVar6 == jp) {\n    acStack_7f[(int)unaff_s1] = '+';\n  }\n  else if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {\n    acStack_7f[(int)unaff_s1] = '-';\n  }\n  unaff_s6 = unaff_s1;\n  if ((mode & 2U) != 0) {\n    iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);\n    unaff_s6 = unaff_s1 + iVar5;\n  }\n  s_00 = (FILE *)(unaff_s3 + (int)unaff_s6);\n  mode = mode & 2;\n  unaff_s0 = ppVar11 + jp->nprocs;\n  if (jp->field_0x18 == '\0') {\n    puVar7 = unaff_s6 + 7;\n    pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);\n    s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);\n    s_00->_IO_read_ptr = pcVar10;\n    while( true ) {\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }\n    return;\n  }\n  iVar5 = unaff_s0[-1].ps_status;\n  if (jp->field_0x18 == '\x01') goto LAB_00073144;\n  goto LAB_00073004;\n}\n\n" (function_definition "void showjob(job *jp,int mode)\n\n{\n  char **ppcVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  job *pjVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  int iVar9;\n  FILE *s_00;\n  char *pcVar10;\n  procstat *unaff_s0;\n  undefined *unaff_s1;\n  char *unaff_s3;\n  FILE *dest;\n  undefined *unaff_s6;\n  procstat *ppVar11;\n  char acStack_7f [3];\n  char s [80];\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  iVar9 = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((mode & 8U) == 0) {\n    dest = *(FILE **)PTR_stdout_0012ae40;\n    ppVar11 = jp->ps;\n  }\n  else {\n    dest = *(FILE **)PTR_stderr_0012b184;\n    ppVar11 = jp->ps;\n  }\n  if ((mode & 1U) != 0) {\n    s_00 = dest;\n    (*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);\n    goto LAB_00072e88;\n  }\n  unaff_s3 = s;\n  unaff_s1 = (undefined *)\n             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n  pjVar6 = *(job **)(PTR_DAT_0012a178 + -0x4d04);\n  if (pjVar6 == jp) {\n    acStack_7f[(int)unaff_s1] = '+';\n  }\n  else if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {\n    acStack_7f[(int)unaff_s1] = '-';\n  }\n  unaff_s6 = unaff_s1;\n  if ((mode & 2U) != 0) {\n    iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);\n    unaff_s6 = unaff_s1 + iVar5;\n  }\n  s_00 = (FILE *)(unaff_s3 + (int)unaff_s6);\n  mode = mode & 2;\n  unaff_s0 = ppVar11 + jp->nprocs;\n  if (jp->field_0x18 == '\0') {\n    puVar7 = unaff_s6 + 7;\n    pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);\n    s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);\n    s_00->_IO_read_ptr = pcVar10;\n    while( true ) {\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }\n    return;\n  }\n  iVar5 = unaff_s0[-1].ps_status;\n  if (jp->field_0x18 == '\x01') goto LAB_00073144;\n  goto LAB_00073004;\n}" primitive_type (function_declarator "showjob(job *jp,int mode)" identifier (parameter_list "(job *jp,int mode)" ( (parameter_declaration "job *jp" type_identifier (pointer_declarator "*jp" * identifier)) , (parameter_declaration "int mode" primitive_type identifier) ))) (compound_statement "{\n  char **ppcVar1;\n  uint uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  int iVar5;\n  job *pjVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  int iVar9;\n  FILE *s_00;\n  char *pcVar10;\n  procstat *unaff_s0;\n  undefined *unaff_s1;\n  char *unaff_s3;\n  FILE *dest;\n  undefined *unaff_s6;\n  procstat *ppVar11;\n  char acStack_7f [3];\n  char s [80];\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  iVar9 = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((mode & 8U) == 0) {\n    dest = *(FILE **)PTR_stdout_0012ae40;\n    ppVar11 = jp->ps;\n  }\n  else {\n    dest = *(FILE **)PTR_stderr_0012b184;\n    ppVar11 = jp->ps;\n  }\n  if ((mode & 1U) != 0) {\n    s_00 = dest;\n    (*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);\n    goto LAB_00072e88;\n  }\n  unaff_s3 = s;\n  unaff_s1 = (undefined *)\n             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n  pjVar6 = *(job **)(PTR_DAT_0012a178 + -0x4d04);\n  if (pjVar6 == jp) {\n    acStack_7f[(int)unaff_s1] = '+';\n  }\n  else if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {\n    acStack_7f[(int)unaff_s1] = '-';\n  }\n  unaff_s6 = unaff_s1;\n  if ((mode & 2U) != 0) {\n    iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);\n    unaff_s6 = unaff_s1 + iVar5;\n  }\n  s_00 = (FILE *)(unaff_s3 + (int)unaff_s6);\n  mode = mode & 2;\n  unaff_s0 = ppVar11 + jp->nprocs;\n  if (jp->field_0x18 == '\0') {\n    puVar7 = unaff_s6 + 7;\n    pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);\n    s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);\n    s_00->_IO_read_ptr = pcVar10;\n    while( true ) {\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }\n    return;\n  }\n  iVar5 = unaff_s0[-1].ps_status;\n  if (jp->field_0x18 == '\x01') goto LAB_00073144;\n  goto LAB_00073004;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "job *pjVar6;" type_identifier (pointer_declarator "*pjVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "FILE *s_00;" type_identifier (pointer_declarator "*s_00" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "procstat *unaff_s0;" type_identifier (pointer_declarator "*unaff_s0" * identifier) ;) (declaration "undefined *unaff_s1;" type_identifier (pointer_declarator "*unaff_s1" * identifier) ;) (declaration "char *unaff_s3;" primitive_type (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "FILE *dest;" type_identifier (pointer_declarator "*dest" * identifier) ;) (declaration "undefined *unaff_s6;" type_identifier (pointer_declarator "*unaff_s6" * identifier) ;) (declaration "procstat *ppVar11;" type_identifier (pointer_declarator "*ppVar11" * identifier) ;) (declaration "char acStack_7f [3];" primitive_type (array_declarator "acStack_7f [3]" identifier [ number_literal ]) ;) (declaration "char s [80];" primitive_type (array_declarator "s [80]" identifier [ number_literal ]) ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iVar9 = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((mode & 8U) == 0) {\n    dest = *(FILE **)PTR_stdout_0012ae40;\n    ppVar11 = jp->ps;\n  }\n  else {\n    dest = *(FILE **)PTR_stderr_0012b184;\n    ppVar11 = jp->ps;\n  }" if (parenthesized_expression "((mode & 8U) == 0)" ( (binary_expression "(mode & 8U) == 0" (parenthesized_expression "(mode & 8U)" ( (binary_expression "mode & 8U" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    dest = *(FILE **)PTR_stdout_0012ae40;\n    ppVar11 = jp->ps;\n  }" { (expression_statement "dest = *(FILE **)PTR_stdout_0012ae40;" (assignment_expression "dest = *(FILE **)PTR_stdout_0012ae40" identifier = (pointer_expression "*(FILE **)PTR_stdout_0012ae40" * (cast_expression "(FILE **)PTR_stdout_0012ae40" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "ppVar11 = jp->ps;" (assignment_expression "ppVar11 = jp->ps" identifier = (field_expression "jp->ps" identifier -> field_identifier)) ;) }) (else_clause "else {\n    dest = *(FILE **)PTR_stderr_0012b184;\n    ppVar11 = jp->ps;\n  }" else (compound_statement "{\n    dest = *(FILE **)PTR_stderr_0012b184;\n    ppVar11 = jp->ps;\n  }" { (expression_statement "dest = *(FILE **)PTR_stderr_0012b184;" (assignment_expression "dest = *(FILE **)PTR_stderr_0012b184" identifier = (pointer_expression "*(FILE **)PTR_stderr_0012b184" * (cast_expression "(FILE **)PTR_stderr_0012b184" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "ppVar11 = jp->ps;" (assignment_expression "ppVar11 = jp->ps" identifier = (field_expression "jp->ps" identifier -> field_identifier)) ;) }))) (if_statement "if ((mode & 1U) != 0) {\n    s_00 = dest;\n    (*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);\n    goto LAB_00072e88;\n  }" if (parenthesized_expression "((mode & 1U) != 0)" ( (binary_expression "(mode & 1U) != 0" (parenthesized_expression "(mode & 1U)" ( (binary_expression "mode & 1U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    s_00 = dest;\n    (*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);\n    goto LAB_00072e88;\n  }" { (expression_statement "s_00 = dest;" (assignment_expression "s_00 = dest" identifier = identifier) ;) (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest,1,PTR_UINT_0012a18c + 0x4b74,ppVar11->ps_pid)" ( identifier , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x4b74" identifier + number_literal) , (field_expression "ppVar11->ps_pid" identifier -> field_identifier) ))) ;) (goto_statement "goto LAB_00072e88;" goto statement_identifier ;) })) (expression_statement "unaff_s3 = s;" (assignment_expression "unaff_s3 = s" identifier = identifier) ;) (expression_statement "unaff_s1 = (undefined *)\n             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);" (assignment_expression "unaff_s1 = (undefined *)\n             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" identifier = (cast_expression "(undefined *)\n             fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "fmtstr(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" identifier (argument_list "(unaff_s3,0x10,PTR_UINT_0012a18c + 0x75cc,\n                    ((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" ( identifier , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x75cc" identifier + number_literal) , (binary_expression "((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1" (parenthesized_expression "((int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5)" ( (binary_expression "(int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5" (binary_expression "(int)jp - *(int *)(PTR_DAT_0012a178 + -0x4cfc)" (cast_expression "(int)jp" ( (type_descriptor "int" primitive_type) ) 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) ))))) >> number_literal) )) + number_literal) ))))) ;) (expression_statement "pjVar6 = *(job **)(PTR_DAT_0012a178 + -0x4d04);" (assignment_expression "pjVar6 = *(job **)(PTR_DAT_0012a178 + -0x4d04)" identifier = (pointer_expression "*(job **)(PTR_DAT_0012a178 + -0x4d04)" * (cast_expression "(job **)(PTR_DAT_0012a178 + -0x4d04)" ( (type_descriptor "job **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0012a178 + -0x4d04)" ( (binary_expression "PTR_DAT_0012a178 + -0x4d04" identifier + number_literal) ))))) ;) (if_statement "if (pjVar6 == jp) {\n    acStack_7f[(int)unaff_s1] = '+';\n  }\n  else if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {\n    acStack_7f[(int)unaff_s1] = '-';\n  }" if (parenthesized_expression "(pjVar6 == jp)" ( (binary_expression "pjVar6 == jp" identifier == identifier) )) (compound_statement "{\n    acStack_7f[(int)unaff_s1] = '+';\n  }" { (expression_statement "acStack_7f[(int)unaff_s1] = '+';" (assignment_expression "acStack_7f[(int)unaff_s1] = '+'" (subscript_expression "acStack_7f[(int)unaff_s1]" identifier [ (cast_expression "(int)unaff_s1" ( (type_descriptor "int" primitive_type) ) identifier) ]) = (char_literal "'+'" ' character ')) ;) }) (else_clause "else if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {\n    acStack_7f[(int)unaff_s1] = '-';\n  }" else (if_statement "if ((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)) {\n    acStack_7f[(int)unaff_s1] = '-';\n  }" if (parenthesized_expression "((pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp))" ( (binary_expression "(pjVar6 != (job *)0x0) && (pjVar6->prev_job == jp)" (parenthesized_expression "(pjVar6 != (job *)0x0)" ( (binary_expression "pjVar6 != (job *)0x0" identifier != (cast_expression "(job *)0x0" ( (type_descriptor "job *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pjVar6->prev_job == jp)" ( (binary_expression "pjVar6->prev_job == jp" (field_expression "pjVar6->prev_job" identifier -> field_identifier) == identifier) ))) )) (compound_statement "{\n    acStack_7f[(int)unaff_s1] = '-';\n  }" { (expression_statement "acStack_7f[(int)unaff_s1] = '-';" (assignment_expression "acStack_7f[(int)unaff_s1] = '-'" (subscript_expression "acStack_7f[(int)unaff_s1]" identifier [ (cast_expression "(int)unaff_s1" ( (type_descriptor "int" primitive_type) ) identifier) ]) = (char_literal "'-'" ' character ')) ;) })))) (expression_statement "unaff_s6 = unaff_s1;" (assignment_expression "unaff_s6 = unaff_s1" identifier = identifier) ;) (if_statement "if ((mode & 2U) != 0) {\n    iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);\n    unaff_s6 = unaff_s1 + iVar5;\n  }" if (parenthesized_expression "((mode & 2U) != 0)" ( (binary_expression "(mode & 2U) != 0" (parenthesized_expression "(mode & 2U)" ( (binary_expression "mode & 2U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);\n    unaff_s6 = unaff_s1 + iVar5;\n  }" { (expression_statement "iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid);" (assignment_expression "iVar5 = fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid)" identifier = (call_expression "fmtstr(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid)" identifier (argument_list "(unaff_s3 + (int)unaff_s1,0x10,PTR_UINT_0012a18c + 0x5640,ppVar11->ps_pid)" ( (binary_expression "unaff_s3 + (int)unaff_s1" identifier + (cast_expression "(int)unaff_s1" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x5640" identifier + number_literal) , (field_expression "ppVar11->ps_pid" identifier -> field_identifier) )))) ;) (expression_statement "unaff_s6 = unaff_s1 + iVar5;" (assignment_expression "unaff_s6 = unaff_s1 + iVar5" identifier = (binary_expression "unaff_s1 + iVar5" identifier + identifier)) ;) })) (expression_statement "s_00 = (FILE *)(unaff_s3 + (int)unaff_s6);" (assignment_expression "s_00 = (FILE *)(unaff_s3 + (int)unaff_s6)" identifier = (cast_expression "(FILE *)(unaff_s3 + (int)unaff_s6)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_s3 + (int)unaff_s6)" ( (binary_expression "unaff_s3 + (int)unaff_s6" identifier + (cast_expression "(int)unaff_s6" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "mode = mode & 2;" (assignment_expression "mode = mode & 2" identifier = (binary_expression "mode & 2" identifier & number_literal)) ;) (expression_statement "unaff_s0 = ppVar11 + jp->nprocs;" (assignment_expression "unaff_s0 = ppVar11 + jp->nprocs" identifier = (binary_expression "ppVar11 + jp->nprocs" identifier + (field_expression "jp->nprocs" identifier -> field_identifier))) ;) (if_statement "if (jp->field_0x18 == '\0') {\n    puVar7 = unaff_s6 + 7;\n    pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);\n    s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);\n    s_00->_IO_read_ptr = pcVar10;\n    while( true ) {\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }\n    return;\n  }" if (parenthesized_expression "(jp->field_0x18 == '\0')" ( (binary_expression "jp->field_0x18 == '\0'" (field_expression "jp->field_0x18" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar7 = unaff_s6 + 7;\n    pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);\n    s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);\n    s_00->_IO_read_ptr = pcVar10;\n    while( true ) {\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }\n    return;\n  }" { (expression_statement "puVar7 = unaff_s6 + 7;" (assignment_expression "puVar7 = unaff_s6 + 7" identifier = (binary_expression "unaff_s6 + 7" identifier + number_literal)) ;) (expression_statement "pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8);" (assignment_expression "pcVar10 = *(char **)(PTR_UINT_0012a18c + 0x75d8)" identifier = (pointer_expression "*(char **)(PTR_UINT_0012a18c + 0x75d8)" * (cast_expression "(char **)(PTR_UINT_0012a18c + 0x75d8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d8)" ( (binary_expression "PTR_UINT_0012a18c + 0x75d8" identifier + number_literal) ))))) ;) (expression_statement "s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4);" (assignment_expression "s_00->_flags = *(int *)(PTR_UINT_0012a18c + 0x75d4)" (field_expression "s_00->_flags" identifier -> field_identifier) = (pointer_expression "*(int *)(PTR_UINT_0012a18c + 0x75d4)" * (cast_expression "(int *)(PTR_UINT_0012a18c + 0x75d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d4)" ( (binary_expression "PTR_UINT_0012a18c + 0x75d4" identifier + number_literal) ))))) ;) (expression_statement "s_00->_IO_read_ptr = pcVar10;" (assignment_expression "s_00->_IO_read_ptr = pcVar10" (field_expression "s_00->_IO_read_ptr" identifier -> field_identifier) = identifier) ;) (while_statement "while( true ) {\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar3 = PTR_UINT_0012a18c;\n      unaff_s6 = PTR_UINT_0012a18c + 0x578c;\n      puVar8 = PTR_UINT_0012a18c + 0x75c8;\n      while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }\n      newline_and_flush(dest);\n      s_00 = (FILE *)&SUB_00000002;\n      uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;\n      *(short *)&jp->field_0x18 = (short)uVar2;\n      if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }\n      if (iVar9 == iVar5) break;\n      (*(code *)PTR___stack_chk_fail_0012b0c8)();\nLAB_00073144:\n      iVar5 = jp->stopstatus;\nLAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);\n      puVar7 = unaff_s6 + iVar5;\n    }" { (expression_statement "puVar3 = PTR_UINT_0012a18c;" (assignment_expression "puVar3 = PTR_UINT_0012a18c" identifier = identifier) ;) (expression_statement "unaff_s6 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "unaff_s6 = PTR_UINT_0012a18c + 0x578c" identifier = (binary_expression "PTR_UINT_0012a18c + 0x578c" identifier + number_literal)) ;) (expression_statement "puVar8 = PTR_UINT_0012a18c + 0x75c8;" (assignment_expression "puVar8 = PTR_UINT_0012a18c + 0x75c8" identifier = (binary_expression "PTR_UINT_0012a18c + 0x75c8" identifier + number_literal)) ;) (while_statement "while( true ) {\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar5 = 0x21 - (int)puVar7;\n        ppcVar1 = &ppVar11->ps_cmd;\n        puVar7 = unaff_s6;\n        if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }\n        if (iVar5 < 0) {\n          iVar5 = 0;\n        }\n        ppVar11 = ppVar11 + 1;\n        (*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);\n        if (unaff_s0 == ppVar11) break;\n        s[0] = '\0';\n        puVar7 = (undefined *)0x21;\n        if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }\n      }" { (expression_statement "iVar5 = 0x21 - (int)puVar7;" (assignment_expression "iVar5 = 0x21 - (int)puVar7" identifier = (binary_expression "0x21 - (int)puVar7" number_literal - (cast_expression "(int)puVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "ppcVar1 = &ppVar11->ps_cmd;" (assignment_expression "ppcVar1 = &ppVar11->ps_cmd" identifier = (pointer_expression "&ppVar11->ps_cmd" & (field_expression "ppVar11->ps_cmd" identifier -> field_identifier))) ;) (expression_statement "puVar7 = unaff_s6;" (assignment_expression "puVar7 = unaff_s6" identifier = identifier) ;) (if_statement "if (jp->ps != ppVar11) {\n          puVar7 = puVar8;\n        }" if (parenthesized_expression "(jp->ps != ppVar11)" ( (binary_expression "jp->ps != ppVar11" (field_expression "jp->ps" identifier -> field_identifier) != identifier) )) (compound_statement "{\n          puVar7 = puVar8;\n        }" { (expression_statement "puVar7 = puVar8;" (assignment_expression "puVar7 = puVar8" identifier = identifier) ;) })) (if_statement "if (iVar5 < 0) {\n          iVar5 = 0;\n        }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n          iVar5 = 0;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) (expression_statement "ppVar11 = ppVar11 + 1;" (assignment_expression "ppVar11 = ppVar11 + 1" identifier = (binary_expression "ppVar11 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                  (dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(dest,1,puVar3 + 0x75e4,unaff_s3,iVar5,0x20,puVar7,*ppcVar1)" ( identifier , number_literal , (binary_expression "puVar3 + 0x75e4" identifier + number_literal) , identifier , identifier , number_literal , identifier , (pointer_expression "*ppcVar1" * identifier) ))) ;) (if_statement "if (unaff_s0 == ppVar11) break;" if (parenthesized_expression "(unaff_s0 == ppVar11)" ( (binary_expression "unaff_s0 == ppVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "s[0] = '\0';" (assignment_expression "s[0] = '\0'" (subscript_expression "s[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "puVar7 = (undefined *)0x21;" (assignment_expression "puVar7 = (undefined *)0x21" identifier = (cast_expression "(undefined *)0x21" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (mode != 0) {\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }" if (parenthesized_expression "(mode != 0)" ( (binary_expression "mode != 0" identifier != number_literal) )) (compound_statement "{\n          iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);\n          puVar7 = (undefined *)(iVar5 + -1);\n        }" { (expression_statement "iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid);" (assignment_expression "iVar5 = fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid)" identifier = (call_expression "fmtstr(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid)" identifier (argument_list "(unaff_s3,0x30,puVar3 + 0x75dc,unaff_s1,0x20,ppVar11->ps_pid)" ( identifier , number_literal , (binary_expression "puVar3 + 0x75dc" identifier + number_literal) , identifier , number_literal , (field_expression "ppVar11->ps_pid" identifier -> field_identifier) )))) ;) (expression_statement "puVar7 = (undefined *)(iVar5 + -1);" (assignment_expression "puVar7 = (undefined *)(iVar5 + -1)" identifier = (cast_expression "(undefined *)(iVar5 + -1)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -1)" ( (binary_expression "iVar5 + -1" identifier + number_literal) )))) ;) })) })) (expression_statement "newline_and_flush(dest);" (call_expression "newline_and_flush(dest)" identifier (argument_list "(dest)" ( identifier ))) ;) (expression_statement "s_00 = (FILE *)&SUB_00000002;" (assignment_expression "s_00 = (FILE *)&SUB_00000002" identifier = (cast_expression "(FILE *)&SUB_00000002" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&SUB_00000002" & identifier))) ;) (expression_statement "uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7;" (assignment_expression "uVar2 = *(ushort *)&jp->field_0x18 & 0xfffffff7" identifier = (binary_expression "*(ushort *)&jp->field_0x18 & 0xfffffff7" (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 "*(short *)&jp->field_0x18 = (short)uVar2;" (assignment_expression "*(short *)&jp->field_0x18 = (short)uVar2" (pointer_expression "*(short *)&jp->field_0x18" * (cast_expression "(short *)&jp->field_0x18" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&jp->field_0x18" & (field_expression "jp->field_0x18" identifier -> field_identifier)))) = (cast_expression "(short)uVar2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if ((uVar2 << 0x10) >> 0x18 == 2) {\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }\n      else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }" if (parenthesized_expression "((uVar2 << 0x10) >> 0x18 == 2)" ( (binary_expression "(uVar2 << 0x10) >> 0x18 == 2" (binary_expression "(uVar2 << 0x10) >> 0x18" (parenthesized_expression "(uVar2 << 0x10)" ( (binary_expression "uVar2 << 0x10" identifier << number_literal) )) >> number_literal) == number_literal) )) (compound_statement "{\n        s_00 = (FILE *)jp;\n        freejob(jp);\n        iVar5 = *(int *)puVar4;\n      }" { (expression_statement "s_00 = (FILE *)jp;" (assignment_expression "s_00 = (FILE *)jp" identifier = (cast_expression "(FILE *)jp" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "freejob(jp);" (call_expression "freejob(jp)" identifier (argument_list "(jp)" ( identifier ))) ;) (expression_statement "iVar5 = *(int *)puVar4;" (assignment_expression "iVar5 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }" else (compound_statement "{\nLAB_00072e88:\n        iVar5 = *(int *)puVar4;\n      }" { (labeled_statement "LAB_00072e88:\n        iVar5 = *(int *)puVar4;" statement_identifier : (expression_statement "iVar5 = *(int *)puVar4;" (assignment_expression "iVar5 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;)) }))) (if_statement "if (iVar9 == iVar5) break;" if (parenthesized_expression "(iVar9 == iVar5)" ( (binary_expression "iVar9 == iVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_00073144:\n      iVar5 = jp->stopstatus;" statement_identifier : (expression_statement "iVar5 = jp->stopstatus;" (assignment_expression "iVar5 = jp->stopstatus" identifier = (field_expression "jp->stopstatus" identifier -> field_identifier)) ;)) (labeled_statement "LAB_00073004:\n      iVar5 = sprint_status48((char *)s_00,iVar5,0);" statement_identifier : (expression_statement "iVar5 = sprint_status48((char *)s_00,iVar5,0);" (assignment_expression "iVar5 = sprint_status48((char *)s_00,iVar5,0)" identifier = (call_expression "sprint_status48((char *)s_00,iVar5,0)" identifier (argument_list "((char *)s_00,iVar5,0)" ( (cast_expression "(char *)s_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal )))) ;)) (expression_statement "puVar7 = unaff_s6 + iVar5;" (assignment_expression "puVar7 = unaff_s6 + iVar5" identifier = (binary_expression "unaff_s6 + iVar5" identifier + identifier)) ;) })) (return_statement "return;" return ;) })) (expression_statement "iVar5 = unaff_s0[-1].ps_status;" (assignment_expression "iVar5 = unaff_s0[-1].ps_status" identifier = (field_expression "unaff_s0[-1].ps_status" (subscript_expression "unaff_s0[-1]" identifier [ number_literal ]) . field_identifier)) ;) (if_statement "if (jp->field_0x18 == '\x01') goto LAB_00073144;" if (parenthesized_expression "(jp->field_0x18 == '\x01')" ( (binary_expression "jp->field_0x18 == '\x01'" (field_expression "jp->field_0x18" identifier -> field_identifier) == (char_literal "'\x01'" ' escape_sequence ')) )) (goto_statement "goto LAB_00073144;" goto statement_identifier ;)) (goto_statement "goto LAB_00073004;" goto statement_identifier ;) })))
(translation_unit "void FUN_00072df4(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}\n\n" (function_definition "void FUN_00072df4(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}" primitive_type (function_declarator "FUN_00072df4(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined4 uVar13;" type_identifier identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 *puVar15;" type_identifier (pointer_declarator "*puVar15" * identifier) ;) (declaration "undefined1 auStack_7f [3];" type_identifier (array_declarator "auStack_7f [3]" identifier [ number_literal ]) ;) (declaration "undefined4 local_7c [20];" type_identifier (array_declarator "local_7c [20]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" if (parenthesized_expression "((param_2 & 8) == 0)" ( (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" ( (binary_expression "param_2 & 8" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }" { (expression_statement "uVar13 = *(undefined4 *)PTR_stdout_0012ae40;" (assignment_expression "uVar13 = *(undefined4 *)PTR_stdout_0012ae40" identifier = (pointer_expression "*(undefined4 *)PTR_stdout_0012ae40" * (cast_expression "(undefined4 *)PTR_stdout_0012ae40" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar15 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar15 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 1) == 0) goto LAB_00072ee0;" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (goto_statement "goto LAB_00072ee0;" goto statement_identifier ;)) (labeled_statement "LAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);" statement_identifier : (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15)" ( identifier , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x4b74" identifier + number_literal) , (pointer_expression "*puVar15" * identifier) ))) ;)) }) (else_clause "else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" else (compound_statement "{\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" { (expression_statement "uVar13 = *(undefined4 *)PTR_stderr_0012b184;" (assignment_expression "uVar13 = *(undefined4 *)PTR_stderr_0012b184" identifier = (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" * (cast_expression "(undefined4 *)PTR_stderr_0012b184" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar15 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar15 = *(undefined4 **)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if ((param_2 & 1) != 0) goto LAB_00072e68;" if (parenthesized_expression "((param_2 & 1) != 0)" ( (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00072e68;" goto statement_identifier ;)) (labeled_statement "LAB_00072ee0:\n    puVar12 = auStack_7f + 3;" statement_identifier : (expression_statement "puVar12 = auStack_7f + 3;" (assignment_expression "puVar12 = auStack_7f + 3" identifier = (binary_expression "auStack_7f + 3" identifier + number_literal)) ;)) (expression_statement "iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);" (assignment_expression "iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" identifier = (call_expression "FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" identifier (argument_list "(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" ( identifier , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x75cc" identifier + number_literal) , (binary_expression "(param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1" (parenthesized_expression "(param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5)" ( (binary_expression "param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5" (binary_expression "param_1 - *(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) ))))) >> number_literal) )) + number_literal) )))) ;) (expression_statement "iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04)" identifier = (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) ))))) ;) (if_statement "if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" if (parenthesized_expression "(iVar5 == param_1)" ( (binary_expression "iVar5 == param_1" identifier == identifier) )) (compound_statement "{\n      auStack_7f[iVar4] = 0x2b;\n    }" { (expression_statement "auStack_7f[iVar4] = 0x2b;" (assignment_expression "auStack_7f[iVar4] = 0x2b" (subscript_expression "auStack_7f[iVar4]" identifier [ identifier ]) = number_literal) ;) }) (else_clause "else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" else (if_statement "if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" if (parenthesized_expression "((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1))" ( (binary_expression "(iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar5 + 0x1c) == param_1)" ( (binary_expression "*(int *)(iVar5 + 0x1c) == param_1" (pointer_expression "*(int *)(iVar5 + 0x1c)" * (cast_expression "(int *)(iVar5 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) == identifier) ))) )) (compound_statement "{\n      auStack_7f[iVar4] = 0x2d;\n    }" { (expression_statement "auStack_7f[iVar4] = 0x2d;" (assignment_expression "auStack_7f[iVar4] = 0x2d" (subscript_expression "auStack_7f[iVar4]" identifier [ identifier ]) = number_literal) ;) })))) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (if_statement "if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }" { (expression_statement "iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);" (assignment_expression "iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" identifier = (call_expression "FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" identifier (argument_list "(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" ( (binary_expression "puVar12 + iVar4" identifier + identifier) , number_literal , (binary_expression "PTR_UINT_0012a18c + 0x5640" identifier + number_literal) , (pointer_expression "*puVar15" * identifier) )))) ;) (expression_statement "iVar5 = iVar4 + iVar5;" (assignment_expression "iVar5 = iVar4 + iVar5" identifier = (binary_expression "iVar4 + iVar5" identifier + identifier)) ;) })) (expression_statement "puVar8 = (undefined4 *)(puVar12 + iVar5);" (assignment_expression "puVar8 = (undefined4 *)(puVar12 + iVar5)" identifier = (cast_expression "(undefined4 *)(puVar12 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + iVar5)" ( (binary_expression "puVar12 + iVar5" identifier + identifier) )))) ;) (expression_statement "puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;" (assignment_expression "puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3" identifier = (binary_expression "puVar15 + *(int *)(param_1 + 0x14) * 3" identifier + (binary_expression "*(int *)(param_1 + 0x14) * 3" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) * number_literal))) ;) (if_statement "if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x18) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x18) == '\0'" (pointer_expression "*(char *)(param_1 + 0x18)" * (cast_expression "(char *)(param_1 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }" { (expression_statement "iVar5 = iVar5 + 7;" (assignment_expression "iVar5 = iVar5 + 7" identifier = (binary_expression "iVar5 + 7" identifier + number_literal)) ;) (expression_statement "uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);" (assignment_expression "uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" identifier = (pointer_expression "*(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" * (cast_expression "(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d8)" ( (binary_expression "PTR_UINT_0012a18c + 0x75d8" identifier + number_literal) ))))) ;) (expression_statement "*puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);" (assignment_expression "*puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" * (cast_expression "(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d4)" ( (binary_expression "PTR_UINT_0012a18c + 0x75d4" identifier + number_literal) ))))) ;) (expression_statement "puVar8[1] = uVar9;" (assignment_expression "puVar8[1] = uVar9" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" else (compound_statement "{\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" { (expression_statement "uVar9 = puVar11[-2];" (assignment_expression "uVar9 = puVar11[-2]" identifier = (subscript_expression "puVar11[-2]" identifier [ number_literal ])) ;) (if_statement "if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x18) == '\x01')" ( (binary_expression "*(char *)(param_1 + 0x18) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x18)" * (cast_expression "(char *)(param_1 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) == (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }" { (expression_statement "uVar9 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar9 = *(undefined4 *)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = FUN_00072560(puVar8,uVar9,0);" (assignment_expression "iVar6 = FUN_00072560(puVar8,uVar9,0)" identifier = (call_expression "FUN_00072560(puVar8,uVar9,0)" identifier (argument_list "(puVar8,uVar9,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar5 = iVar5 + iVar6;" (assignment_expression "iVar5 = iVar5 + iVar6" identifier = (binary_expression "iVar5 + iVar6" identifier + identifier)) ;) }))) (expression_statement "puVar2 = PTR_UINT_0012a18c;" (assignment_expression "puVar2 = PTR_UINT_0012a18c" identifier = identifier) ;) (expression_statement "puVar14 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "puVar14 = PTR_UINT_0012a18c + 0x578c" identifier = (binary_expression "PTR_UINT_0012a18c + 0x578c" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_UINT_0012a18c + 0x75c8;" (assignment_expression "puVar7 = PTR_UINT_0012a18c + 0x75c8" identifier = (binary_expression "PTR_UINT_0012a18c + 0x75c8" identifier + number_literal)) ;) (while_statement "while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }" { (expression_statement "iVar5 = 0x21 - iVar5;" (assignment_expression "iVar5 = 0x21 - iVar5" identifier = (binary_expression "0x21 - iVar5" number_literal - identifier)) ;) (expression_statement "puVar8 = puVar15 + 2;" (assignment_expression "puVar8 = puVar15 + 2" identifier = (binary_expression "puVar15 + 2" identifier + number_literal)) ;) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" identifier = identifier) ;) (if_statement "if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }" if (parenthesized_expression "(*(undefined4 **)(param_1 + 0xc) != puVar15)" ( (binary_expression "*(undefined4 **)(param_1 + 0xc) != puVar15" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n        puVar10 = puVar7;\n      }" { (expression_statement "puVar10 = puVar7;" (assignment_expression "puVar10 = puVar7" identifier = identifier) ;) })) (if_statement "if (iVar5 < 0) {\n        iVar5 = 0;\n      }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar5 = 0;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) (expression_statement "puVar15 = puVar15 + 3;" (assignment_expression "puVar15 = puVar15 + 3" identifier = (binary_expression "puVar15 + 3" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" ( (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" * (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8)" ( identifier , number_literal , (binary_expression "puVar2 + 0x75e4" identifier + number_literal) , identifier , identifier , number_literal , identifier , (pointer_expression "*puVar8" * identifier) ))) ;) (if_statement "if (puVar11 == puVar15) break;" if (parenthesized_expression "(puVar11 == puVar15)" ( (binary_expression "puVar11 == puVar15" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "local_7c[0]._0_1_ = 0;" (assignment_expression "local_7c[0]._0_1_ = 0" (field_expression "local_7c[0]._0_1_" (subscript_expression "local_7c[0]" identifier [ number_literal ]) . field_identifier) = number_literal) ;) (expression_statement "iVar5 = 0x21;" (assignment_expression "iVar5 = 0x21" identifier = number_literal) ;) (if_statement "if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }" if (parenthesized_expression "((param_2 & 2) != 0)" ( (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }" { (expression_statement "iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);" (assignment_expression "iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" identifier = (call_expression "FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" identifier (argument_list "(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" ( identifier , number_literal , (binary_expression "puVar2 + 0x75dc" identifier + number_literal) , identifier , number_literal , (pointer_expression "*puVar15" * identifier) )))) ;) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) })) })) (expression_statement "FUN_0006ec94(uVar13);" (call_expression "FUN_0006ec94(uVar13)" identifier (argument_list "(uVar13)" ( identifier ))) ;) (expression_statement "uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;" (assignment_expression "uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7" identifier = (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(ushort *)(param_1 + 0x18)" * (cast_expression "(ushort *)(param_1 + 0x18)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(short *)(param_1 + 0x18) = (short)uVar1;" (assignment_expression "*(short *)(param_1 + 0x18) = (short)uVar1" (pointer_expression "*(short *)(param_1 + 0x18)" * (cast_expression "(short *)(param_1 + 0x18)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (cast_expression "(short)uVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }" if (parenthesized_expression "((uVar1 << 0x10) >> 0x18 == 2)" ( (binary_expression "(uVar1 << 0x10) >> 0x18 == 2" (binary_expression "(uVar1 << 0x10) >> 0x18" (parenthesized_expression "(uVar1 << 0x10)" ( (binary_expression "uVar1 << 0x10" identifier << number_literal) )) >> number_literal) == number_literal) )) (compound_statement "{\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }" { (expression_statement "FUN_0006e000(param_1);" (call_expression "FUN_0006e000(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (local_2c == *(int *)puVar3) {\n        return;\n      }" if (parenthesized_expression "(local_2c == *(int *)puVar3)" ( (binary_expression "local_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_0007313c;" goto statement_identifier ;) })) }))) (if_statement "if (local_2c == *(int *)puVar3) {\n    return;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar3)" ( (binary_expression "local_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();" statement_identifier : (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> 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 == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) })))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (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 = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_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 , (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , IDENT , (pointer_expression * IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , IDENT , LIT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( 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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_00072df4(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00072df4(int param_1,uint param_2)" (identifier "FUN_00072df4") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  undefined *puVar10;\n  undefined4 *puVar11;\n  undefined1 *puVar12;\n  undefined4 uVar13;\n  undefined *puVar14;\n  undefined4 *puVar15;\n  undefined1 auStack_7f [3];\n  undefined4 local_7c [20];\n  int local_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }\n  if (local_2c == *(int *)puVar3) {\n    return;\n  }\nLAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 *puVar11;" (type_identifier "undefined4") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "undefined1 *puVar12;" (type_identifier "undefined1") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "undefined4 uVar13;" (type_identifier "undefined4") (identifier "uVar13") (; ";")) (declaration "undefined *puVar14;" (type_identifier "undefined") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "undefined4 *puVar15;" (type_identifier "undefined4") (pointer_declarator "*puVar15" (* "*") (identifier "puVar15")) (; ";")) (declaration "undefined1 auStack_7f [3];" (type_identifier "undefined1") (array_declarator "auStack_7f [3]" (identifier "auStack_7f") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 local_7c [20];" (type_identifier "undefined4") (array_declarator "local_7c [20]" (identifier "local_7c") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar3 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0012b14c" (identifier "puVar3") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (if_statement "if ((param_2 & 8) == 0) {\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }\n  else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 & 8) == 0)" (( "(") (binary_expression "(param_2 & 8) == 0" (parenthesized_expression "(param_2 & 8)" (( "(") (binary_expression "param_2 & 8" (identifier "param_2") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) == 0) goto LAB_00072ee0;\nLAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);\n  }" ({ "{") (expression_statement "uVar13 = *(undefined4 *)PTR_stdout_0012ae40;" (assignment_expression "uVar13 = *(undefined4 *)PTR_stdout_0012ae40" (identifier "uVar13") (= "=") (pointer_expression "*(undefined4 *)PTR_stdout_0012ae40" (* "*") (cast_expression "(undefined4 *)PTR_stdout_0012ae40" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_0012ae40")))) (; ";")) (expression_statement "puVar15 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar15 = *(undefined4 **)(param_1 + 0xc)" (identifier "puVar15") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((param_2 & 1) == 0) goto LAB_00072ee0;" (if "if") (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00072ee0;" (goto "goto") (statement_identifier "LAB_00072ee0") (; ";"))) (labeled_statement "LAB_00072e68:\n    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);" (statement_identifier "LAB_00072e68") (: ":") (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_0012ad0c"))) () ")")) (argument_list "(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15)" (( "(") (identifier "uVar13") (, ",") (number_literal "1") (, ",") (binary_expression "PTR_UINT_0012a18c + 0x4b74" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x4b74")) (, ",") (pointer_expression "*puVar15" (* "*") (identifier "puVar15")) () ")"))) (; ";"))) (} "}")) (else_clause "else {\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" (else "else") (compound_statement "{\n    uVar13 = *(undefined4 *)PTR_stderr_0012b184;\n    puVar15 = *(undefined4 **)(param_1 + 0xc);\n    if ((param_2 & 1) != 0) goto LAB_00072e68;\nLAB_00072ee0:\n    puVar12 = auStack_7f + 3;\n    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);\n    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);\n    if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }\n    iVar5 = iVar4;\n    if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }\n    puVar8 = (undefined4 *)(puVar12 + iVar5);\n    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;\n    if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }\n    puVar2 = PTR_UINT_0012a18c;\n    puVar14 = PTR_UINT_0012a18c + 0x578c;\n    puVar7 = PTR_UINT_0012a18c + 0x75c8;\n    while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }\n    FUN_0006ec94(uVar13);\n    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;\n    *(short *)(param_1 + 0x18) = (short)uVar1;\n    if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }\n  }" ({ "{") (expression_statement "uVar13 = *(undefined4 *)PTR_stderr_0012b184;" (assignment_expression "uVar13 = *(undefined4 *)PTR_stderr_0012b184" (identifier "uVar13") (= "=") (pointer_expression "*(undefined4 *)PTR_stderr_0012b184" (* "*") (cast_expression "(undefined4 *)PTR_stderr_0012b184" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stderr_0012b184")))) (; ";")) (expression_statement "puVar15 = *(undefined4 **)(param_1 + 0xc);" (assignment_expression "puVar15 = *(undefined4 **)(param_1 + 0xc)" (identifier "puVar15") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if ((param_2 & 1) != 0) goto LAB_00072e68;" (if "if") (parenthesized_expression "((param_2 & 1) != 0)" (( "(") (binary_expression "(param_2 & 1) != 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00072e68;" (goto "goto") (statement_identifier "LAB_00072e68") (; ";"))) (labeled_statement "LAB_00072ee0:\n    puVar12 = auStack_7f + 3;" (statement_identifier "LAB_00072ee0") (: ":") (expression_statement "puVar12 = auStack_7f + 3;" (assignment_expression "puVar12 = auStack_7f + 3" (identifier "puVar12") (= "=") (binary_expression "auStack_7f + 3" (identifier "auStack_7f") (+ "+") (number_literal "3"))) (; ";"))) (expression_statement "iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);" (assignment_expression "iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" (identifier "iVar4") (= "=") (call_expression "FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" (identifier "FUN_000714a8") (argument_list "(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,\n                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1)" (( "(") (identifier "puVar12") (, ",") (number_literal "0x10") (, ",") (binary_expression "PTR_UINT_0012a18c + 0x75cc" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x75cc")) (, ",") (binary_expression "(param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1" (parenthesized_expression "(param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5)" (( "(") (binary_expression "param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5" (binary_expression "param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc)" (identifier "param_1") (- "-") (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")) () ")"))))) (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);" (assignment_expression "iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04)" (identifier "iVar5") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (iVar5 == param_1) {\n      auStack_7f[iVar4] = 0x2b;\n    }\n    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" (if "if") (parenthesized_expression "(iVar5 == param_1)" (( "(") (binary_expression "iVar5 == param_1" (identifier "iVar5") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      auStack_7f[iVar4] = 0x2b;\n    }" ({ "{") (expression_statement "auStack_7f[iVar4] = 0x2b;" (assignment_expression "auStack_7f[iVar4] = 0x2b" (subscript_expression "auStack_7f[iVar4]" (identifier "auStack_7f") ([ "[") (identifier "iVar4") (] "]")) (= "=") (number_literal "0x2b")) (; ";")) (} "}")) (else_clause "else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" (else "else") (if_statement "if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {\n      auStack_7f[iVar4] = 0x2d;\n    }" (if "if") (parenthesized_expression "((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1))" (( "(") (binary_expression "(iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)" (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar5 + 0x1c) == param_1)" (( "(") (binary_expression "*(int *)(iVar5 + 0x1c) == param_1" (pointer_expression "*(int *)(iVar5 + 0x1c)" (* "*") (cast_expression "(int *)(iVar5 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")")))) (== "==") (identifier "param_1")) () ")"))) () ")")) (compound_statement "{\n      auStack_7f[iVar4] = 0x2d;\n    }" ({ "{") (expression_statement "auStack_7f[iVar4] = 0x2d;" (assignment_expression "auStack_7f[iVar4] = 0x2d" (subscript_expression "auStack_7f[iVar4]" (identifier "auStack_7f") ([ "[") (identifier "iVar4") (] "]")) (= "=") (number_literal "0x2d")) (; ";")) (} "}"))))) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if ((param_2 & 2) != 0) {\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }" (if "if") (parenthesized_expression "((param_2 & 2) != 0)" (( "(") (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);\n      iVar5 = iVar4 + iVar5;\n    }" ({ "{") (expression_statement "iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);" (assignment_expression "iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" (identifier "iVar5") (= "=") (call_expression "FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" (identifier "FUN_000714a8") (argument_list "(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15)" (( "(") (binary_expression "puVar12 + iVar4" (identifier "puVar12") (+ "+") (identifier "iVar4")) (, ",") (number_literal "0x10") (, ",") (binary_expression "PTR_UINT_0012a18c + 0x5640" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x5640")) (, ",") (pointer_expression "*puVar15" (* "*") (identifier "puVar15")) () ")")))) (; ";")) (expression_statement "iVar5 = iVar4 + iVar5;" (assignment_expression "iVar5 = iVar4 + iVar5" (identifier "iVar5") (= "=") (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5"))) (; ";")) (} "}"))) (expression_statement "puVar8 = (undefined4 *)(puVar12 + iVar5);" (assignment_expression "puVar8 = (undefined4 *)(puVar12 + iVar5)" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)(puVar12 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + iVar5)" (( "(") (binary_expression "puVar12 + iVar5" (identifier "puVar12") (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;" (assignment_expression "puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3" (identifier "puVar11") (= "=") (binary_expression "puVar15 + *(int *)(param_1 + 0x14) * 3" (identifier "puVar15") (+ "+") (binary_expression "*(int *)(param_1 + 0x14) * 3" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (* "*") (number_literal "3")))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x18) == '\0') {\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }\n    else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x18) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x18) == '\0'" (pointer_expression "*(char *)(param_1 + 0x18)" (* "*") (cast_expression "(char *)(param_1 + 0x18)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar5 = iVar5 + 7;\n      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);\n      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);\n      puVar8[1] = uVar9;\n    }" ({ "{") (expression_statement "iVar5 = iVar5 + 7;" (assignment_expression "iVar5 = iVar5 + 7" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 7" (identifier "iVar5") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);" (assignment_expression "uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" (* "*") (cast_expression "(undefined4 *)(PTR_UINT_0012a18c + 0x75d8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d8)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x75d8" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x75d8")) () ")"))))) (; ";")) (expression_statement "*puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);" (assignment_expression "*puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (pointer_expression "*(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" (* "*") (cast_expression "(undefined4 *)(PTR_UINT_0012a18c + 0x75d4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_UINT_0012a18c + 0x75d4)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x75d4" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x75d4")) () ")"))))) (; ";")) (expression_statement "puVar8[1] = uVar9;" (assignment_expression "puVar8[1] = uVar9" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (} "}")) (else_clause "else {\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" (else "else") (compound_statement "{\n      uVar9 = puVar11[-2];\n      if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }\n      iVar6 = FUN_00072560(puVar8,uVar9,0);\n      iVar5 = iVar5 + iVar6;\n    }" ({ "{") (expression_statement "uVar9 = puVar11[-2];" (assignment_expression "uVar9 = puVar11[-2]" (identifier "uVar9") (= "=") (subscript_expression "puVar11[-2]" (identifier "puVar11") ([ "[") (number_literal "-2") (] "]"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x18) == '\x01') {\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x18) == '\x01')" (( "(") (binary_expression "*(char *)(param_1 + 0x18) == '\x01'" (pointer_expression "*(char *)(param_1 + 0x18)" (* "*") (cast_expression "(char *)(param_1 + 0x18)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n        uVar9 = *(undefined4 *)(param_1 + 0x10);\n      }" ({ "{") (expression_statement "uVar9 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar9 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_00072560(puVar8,uVar9,0);" (assignment_expression "iVar6 = FUN_00072560(puVar8,uVar9,0)" (identifier "iVar6") (= "=") (call_expression "FUN_00072560(puVar8,uVar9,0)" (identifier "FUN_00072560") (argument_list "(puVar8,uVar9,0)" (( "(") (identifier "puVar8") (, ",") (identifier "uVar9") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + iVar6;" (assignment_expression "iVar5 = iVar5 + iVar6" (identifier "iVar5") (= "=") (binary_expression "iVar5 + iVar6" (identifier "iVar5") (+ "+") (identifier "iVar6"))) (; ";")) (} "}")))) (expression_statement "puVar2 = PTR_UINT_0012a18c;" (assignment_expression "puVar2 = PTR_UINT_0012a18c" (identifier "puVar2") (= "=") (identifier "PTR_UINT_0012a18c")) (; ";")) (expression_statement "puVar14 = PTR_UINT_0012a18c + 0x578c;" (assignment_expression "puVar14 = PTR_UINT_0012a18c + 0x578c" (identifier "puVar14") (= "=") (binary_expression "PTR_UINT_0012a18c + 0x578c" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x578c"))) (; ";")) (expression_statement "puVar7 = PTR_UINT_0012a18c + 0x75c8;" (assignment_expression "puVar7 = PTR_UINT_0012a18c + 0x75c8" (identifier "puVar7") (= "=") (binary_expression "PTR_UINT_0012a18c + 0x75c8" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x75c8"))) (; ";")) (while_statement "while( true ) {\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar5 = 0x21 - iVar5;\n      puVar8 = puVar15 + 2;\n      puVar10 = puVar14;\n      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }\n      if (iVar5 < 0) {\n        iVar5 = 0;\n      }\n      puVar15 = puVar15 + 3;\n      (*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);\n      if (puVar11 == puVar15) break;\n      local_7c[0]._0_1_ = 0;\n      iVar5 = 0x21;\n      if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }\n    }" ({ "{") (expression_statement "iVar5 = 0x21 - iVar5;" (assignment_expression "iVar5 = 0x21 - iVar5" (identifier "iVar5") (= "=") (binary_expression "0x21 - iVar5" (number_literal "0x21") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "puVar8 = puVar15 + 2;" (assignment_expression "puVar8 = puVar15 + 2" (identifier "puVar8") (= "=") (binary_expression "puVar15 + 2" (identifier "puVar15") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar10 = puVar14;" (assignment_expression "puVar10 = puVar14" (identifier "puVar10") (= "=") (identifier "puVar14")) (; ";")) (if_statement "if (*(undefined4 **)(param_1 + 0xc) != puVar15) {\n        puVar10 = puVar7;\n      }" (if "if") (parenthesized_expression "(*(undefined4 **)(param_1 + 0xc) != puVar15)" (( "(") (binary_expression "*(undefined4 **)(param_1 + 0xc) != puVar15" (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (identifier "puVar15")) () ")")) (compound_statement "{\n        puVar10 = puVar7;\n      }" ({ "{") (expression_statement "puVar10 = puVar7;" (assignment_expression "puVar10 = puVar7" (identifier "puVar10") (= "=") (identifier "puVar7")) (; ";")) (} "}"))) (if_statement "if (iVar5 < 0) {\n        iVar5 = 0;\n      }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = 0;\n      }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "puVar15 = puVar15 + 3;" (assignment_expression "puVar15 = puVar15 + 3" (identifier "puVar15") (= "=") (binary_expression "puVar15 + 3" (identifier "puVar15") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);" (call_expression "(*(code *)PTR___fprintf_chk_0012ad0c)\n                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8)" (parenthesized_expression "(*(code *)PTR___fprintf_chk_0012ad0c)" (( "(") (pointer_expression "*(code *)PTR___fprintf_chk_0012ad0c" (* "*") (cast_expression "(code *)PTR___fprintf_chk_0012ad0c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fprintf_chk_0012ad0c"))) () ")")) (argument_list "(uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8)" (( "(") (identifier "uVar13") (, ",") (number_literal "1") (, ",") (binary_expression "puVar2 + 0x75e4" (identifier "puVar2") (+ "+") (number_literal "0x75e4")) (, ",") (identifier "puVar12") (, ",") (identifier "iVar5") (, ",") (number_literal "0x20") (, ",") (identifier "puVar10") (, ",") (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) () ")"))) (; ";")) (if_statement "if (puVar11 == puVar15) break;" (if "if") (parenthesized_expression "(puVar11 == puVar15)" (( "(") (binary_expression "puVar11 == puVar15" (identifier "puVar11") (== "==") (identifier "puVar15")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_7c[0]._0_1_ = 0;" (assignment_expression "local_7c[0]._0_1_ = 0" (field_expression "local_7c[0]._0_1_" (subscript_expression "local_7c[0]" (identifier "local_7c") ([ "[") (number_literal "0") (] "]")) (. ".") (field_identifier "_0_1_")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0x21;" (assignment_expression "iVar5 = 0x21" (identifier "iVar5") (= "=") (number_literal "0x21")) (; ";")) (if_statement "if ((param_2 & 2) != 0) {\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }" (if "if") (parenthesized_expression "((param_2 & 2) != 0)" (( "(") (binary_expression "(param_2 & 2) != 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);\n        iVar5 = iVar5 + -1;\n      }" ({ "{") (expression_statement "iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);" (assignment_expression "iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" (identifier "iVar5") (= "=") (call_expression "FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" (identifier "FUN_000714a8") (argument_list "(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15)" (( "(") (identifier "puVar12") (, ",") (number_literal "0x30") (, ",") (binary_expression "puVar2 + 0x75dc" (identifier "puVar2") (+ "+") (number_literal "0x75dc")) (, ",") (identifier "iVar4") (, ",") (number_literal "0x20") (, ",") (pointer_expression "*puVar15" (* "*") (identifier "puVar15")) () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0006ec94(uVar13);" (call_expression "FUN_0006ec94(uVar13)" (identifier "FUN_0006ec94") (argument_list "(uVar13)" (( "(") (identifier "uVar13") () ")"))) (; ";")) (expression_statement "uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;" (assignment_expression "uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7" (identifier "uVar1") (= "=") (binary_expression "*(ushort *)(param_1 + 0x18) & 0xfffffff7" (pointer_expression "*(ushort *)(param_1 + 0x18)" (* "*") (cast_expression "(ushort *)(param_1 + 0x18)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (& "&") (number_literal "0xfffffff7"))) (; ";")) (expression_statement "*(short *)(param_1 + 0x18) = (short)uVar1;" (assignment_expression "*(short *)(param_1 + 0x18) = (short)uVar1" (pointer_expression "*(short *)(param_1 + 0x18)" (* "*") (cast_expression "(short *)(param_1 + 0x18)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (cast_expression "(short)uVar1" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar1"))) (; ";")) (if_statement "if ((uVar1 << 0x10) >> 0x18 == 2) {\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }" (if "if") (parenthesized_expression "((uVar1 << 0x10) >> 0x18 == 2)" (( "(") (binary_expression "(uVar1 << 0x10) >> 0x18 == 2" (binary_expression "(uVar1 << 0x10) >> 0x18" (parenthesized_expression "(uVar1 << 0x10)" (( "(") (binary_expression "uVar1 << 0x10" (identifier "uVar1") (<< "<<") (number_literal "0x10")) () ")")) (>> ">>") (number_literal "0x18")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      FUN_0006e000(param_1);\n      if (local_2c == *(int *)puVar3) {\n        return;\n      }\n      goto LAB_0007313c;\n    }" ({ "{") (expression_statement "FUN_0006e000(param_1);" (call_expression "FUN_0006e000(param_1)" (identifier "FUN_0006e000") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_2c == *(int *)puVar3) {\n        return;\n      }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar3)" (( "(") (binary_expression "local_2c == *(int *)puVar3" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_0007313c;" (goto "goto") (statement_identifier "LAB_0007313c") (; ";")) (} "}"))) (} "}")))) (if_statement "if (local_2c == *(int *)puVar3) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar3)" (( "(") (binary_expression "local_2c == *(int *)puVar3" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0007313c:\n  (*(code *)PTR___stack_chk_fail_0012b0c8)();" (statement_identifier "LAB_0007313c") (: ":") (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) 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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_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) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (parenthesized_expression (binary_expression left: (binary_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)))))) 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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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))))) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (number_literal) (identifier) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (field_expression argument: (subscript_expression argument: (identifier) index: (number_literal)) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement))) (goto_statement label: (statement_identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement))) (labeled_statement label: (statement_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)))) (return_statement))))

void MASKED(int param_1,uint param_2)

{
  uint uVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined *puVar7;
  undefined4 *puVar8;
  undefined4 uVar9;
  undefined *puVar10;
  undefined4 *puVar11;
  undefined1 *puVar12;
  undefined4 uVar13;
  undefined *puVar14;
  undefined4 *puVar15;
  undefined1 auStack_7f [3];
  undefined4 local_7c [20];
  int local_2c;
  
  puVar3 = PTR___stack_chk_guard_0012b14c;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  if ((param_2 & 8) == 0) {
    uVar13 = *(undefined4 *)PTR_stdout_0012ae40;
    puVar15 = *(undefined4 **)(param_1 + 0xc);
    if ((param_2 & 1) == 0) goto LAB_00072ee0;
LAB_00072e68:
    (*(code *)PTR___fprintf_chk_0012ad0c)(uVar13,1,PTR_UINT_0012a18c + 0x4b74,*puVar15);
  }
  else {
    uVar13 = *(undefined4 *)PTR_stderr_0012b184;
    puVar15 = *(undefined4 **)(param_1 + 0xc);
    if ((param_2 & 1) != 0) goto LAB_00072e68;
LAB_00072ee0:
    puVar12 = auStack_7f + 3;
    iVar4 = FUN_000714a8(puVar12,0x10,PTR_UINT_0012a18c + 0x75cc,
                         (param_1 - *(int *)(PTR_DAT_0012a178 + -0x4cfc) >> 5) + 1);
    iVar5 = *(int *)(PTR_DAT_0012a178 + -0x4d04);
    if (iVar5 == param_1) {
      auStack_7f[iVar4] = 0x2b;
    }
    else if ((iVar5 != 0) && (*(int *)(iVar5 + 0x1c) == param_1)) {
      auStack_7f[iVar4] = 0x2d;
    }
    iVar5 = iVar4;
    if ((param_2 & 2) != 0) {
      iVar5 = FUN_000714a8(puVar12 + iVar4,0x10,PTR_UINT_0012a18c + 0x5640,*puVar15);
      iVar5 = iVar4 + iVar5;
    }
    puVar8 = (undefined4 *)(puVar12 + iVar5);
    puVar11 = puVar15 + *(int *)(param_1 + 0x14) * 3;
    if (*(char *)(param_1 + 0x18) == '\0') {
      iVar5 = iVar5 + 7;
      uVar9 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d8);
      *puVar8 = *(undefined4 *)(PTR_UINT_0012a18c + 0x75d4);
      puVar8[1] = uVar9;
    }
    else {
      uVar9 = puVar11[-2];
      if (*(char *)(param_1 + 0x18) == '\x01') {
        uVar9 = *(undefined4 *)(param_1 + 0x10);
      }
      iVar6 = FUN_00072560(puVar8,uVar9,0);
      iVar5 = iVar5 + iVar6;
    }
    puVar2 = PTR_UINT_0012a18c;
    puVar14 = PTR_UINT_0012a18c + 0x578c;
    puVar7 = PTR_UINT_0012a18c + 0x75c8;
    while( true ) {
      iVar5 = 0x21 - iVar5;
      puVar8 = puVar15 + 2;
      puVar10 = puVar14;
      if (*(undefined4 **)(param_1 + 0xc) != puVar15) {
        puVar10 = puVar7;
      }
      if (iVar5 < 0) {
        iVar5 = 0;
      }
      puVar15 = puVar15 + 3;
      (*(code *)PTR___fprintf_chk_0012ad0c)
                (uVar13,1,puVar2 + 0x75e4,puVar12,iVar5,0x20,puVar10,*puVar8);
      if (puVar11 == puVar15) break;
      local_7c[0]._0_1_ = 0;
      iVar5 = 0x21;
      if ((param_2 & 2) != 0) {
        iVar5 = FUN_000714a8(puVar12,0x30,puVar2 + 0x75dc,iVar4,0x20,*puVar15);
        iVar5 = iVar5 + -1;
      }
    }
    FUN_0006ec94(uVar13);
    uVar1 = *(ushort *)(param_1 + 0x18) & 0xfffffff7;
    *(short *)(param_1 + 0x18) = (short)uVar1;
    if ((uVar1 << 0x10) >> 0x18 == 2) {
      FUN_0006e000(param_1);
      if (local_2c == *(int *)puVar3) {
        return;
      }
      goto LAB_0007313c;
    }
  }
  if (local_2c == *(int *)puVar3) {
    return;
  }
LAB_0007313c:
  (*(code *)PTR___stack_chk_fail_0012b0c8)();
  return;
}

