
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void add_global_pair_with_rel(Output_data_got<32,_true> * this, Symbol
   * gsym, uint got_type, Output_data_reloc_generic * rel_dyn, uint r_type_1, uint r_type_2) */

void __thiscall
gold::Output_data_got<32,_true>::add_global_pair_with_rel
          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,
          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)

{
  uint uVar1;
  Got_entry got_entry_1;
  Got_entry got_entry_2;
  uint uVar2;
  Got_offset_list *pGVar3;
  int iVar4;
  Got_offset_list *pGVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  undefined4 in_stack_ffffff98;
  undefined4 in_stack_ffffff9c;
  undefined4 in_stack_ffffffa0;
  undefined4 in_stack_ffffffa4;
  undefined4 in_stack_ffffffa8;
  undefined4 in_stack_ffffffac;
  undefined4 in_stack_ffffffb0;
  undefined4 in_stack_ffffffb4;
  undefined4 local_3c [10];
  undefined4 uStack_14;
  
  uStack_14 = 0x120b09;
  pGVar5 = &gsym->got_offsets_;
  if (pGVar5 == (Got_offset_list *)0x0) {
    local_3c[4] = 0;
    local_3c[5] = 0x7ffffffd;
    local_3c[6] = 0;
    local_3c[7] = 0;
    local_3c[0] = 0;
    local_3c[1] = 0x7ffffffd;
    local_3c[2] = 0;
    local_3c[3] = 0;
    puVar6 = local_3c + 4;
    puVar7 = (undefined4 *)&stack0xffffffa8;
    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {
      *puVar7 = *puVar6;
      puVar6 = puVar6 + 1;
      puVar7 = puVar7 + 1;
    }
    puVar6 = local_3c;
    puVar7 = (undefined4 *)&stack0xffffff98;
    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {
      *puVar7 = *puVar6;
      puVar6 = puVar6 + 1;
      puVar7 = puVar7 + 1;
    }
    got_entry_1._4_4_ = in_stack_ffffff9c;
    got_entry_1.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98;
    got_entry_1.addend_._0_4_ = in_stack_ffffffa0;
    got_entry_1.addend_._4_4_ = in_stack_ffffffa4;
    got_entry_2._4_4_ = in_stack_ffffffac;
    got_entry_2.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8;
    got_entry_2.addend_._0_4_ = in_stack_ffffffb0;
    got_entry_2.addend_._4_4_ = in_stack_ffffffb4;
    uVar2 = add_got_entry_pair(this,got_entry_1,got_entry_2);
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {
LAB_00120bfb:
      pGVar3 = (Got_offset_list *)operator_new(0xc);
      pGVar3->got_type_ = got_type;
      pGVar5 = (gsym->got_offsets_).got_next_;
      pGVar3->got_offset_ = uVar2;
      (gsym->got_offsets_).got_next_ = pGVar3;
      pGVar3->got_next_ = pGVar5;
      goto LAB_00120c1e;
    }
  }
  else {
    uVar2 = (gsym->got_offsets_).got_type_;
    pGVar3 = pGVar5;
    while (got_type != uVar2) {
      pGVar3 = pGVar3->got_next_;
      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;
      uVar2 = pGVar3->got_type_;
    }
    if (pGVar3->got_offset_ != 0xffffffff) {
      return;
    }
LAB_00120b47:
    local_3c[4] = 0;
    local_3c[5] = 0x7ffffffd;
    local_3c[6] = 0;
    local_3c[7] = 0;
    local_3c[0] = 0;
    local_3c[1] = 0x7ffffffd;
    local_3c[2] = 0;
    local_3c[3] = 0;
    uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),
                               (Got_entry)ZEXT816(0x7ffffffd00000000));
    uVar1 = (gsym->got_offsets_).got_type_;
    if (uVar1 != 0xffffffff) {
      while (got_type != uVar1) {
        pGVar5 = pGVar5->got_next_;
        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;
        uVar1 = pGVar5->got_type_;
      }
      pGVar5->got_offset_ = uVar2;
      goto LAB_00120c1e;
    }
  }
  (gsym->got_offsets_).got_type_ = got_type;
  (gsym->got_offsets_).got_offset_ = uVar2;
LAB_00120c1e:
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])();
  if (r_type_2 == 0) {
    return;
  }
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])();
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,
                 int param_6)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  int **ppiVar5;
  int *apiStack_68 [4];
  int aiStack_58 [17];
  undefined4 uStack_14;
  
  uStack_14 = 0x120b09;
  piVar3 = (int *)(param_2 + 0x1c);
  if (piVar3 == (int *)0x0) {
    aiStack_58[0xb] = 0;
    aiStack_58[0xc] = 0x7ffffffd;
    aiStack_58[0xd] = 0;
    aiStack_58[0xe] = 0;
    aiStack_58[7] = 0;
    aiStack_58[8] = 0x7ffffffd;
    aiStack_58[9] = 0;
    aiStack_58[10] = 0;
    piVar3 = aiStack_58 + 0xb;
    piVar4 = aiStack_58;
    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
      *piVar4 = *piVar3;
      piVar3 = piVar3 + 1;
      piVar4 = piVar4 + 1;
    }
    piVar3 = aiStack_58 + 7;
    ppiVar5 = apiStack_68;
    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
      *ppiVar5 = (int *)*piVar3;
      piVar3 = piVar3 + 1;
      ppiVar5 = (int **)((int *)ppiVar5 + 1);
    }
    iVar2 = FUN_00120900(param_1);
    if (*(int *)(param_2 + 0x1c) != -1) {
LAB_00120bfb:
      aiStack_58[3] = 0xc;
      aiStack_58[2] = 0x120c09;
      piVar3 = (int *)FUN_001fb470();
      *piVar3 = param_3;
      iVar1 = *(int *)(param_2 + 0x24);
      piVar3[1] = iVar2;
      *(int **)(param_2 + 0x24) = piVar3;
      piVar3[2] = iVar1;
      goto LAB_00120c1e;
    }
  }
  else {
    iVar2 = *(int *)(param_2 + 0x1c);
    piVar4 = piVar3;
    while (param_3 != iVar2) {
      piVar4 = (int *)piVar4[2];
      if (piVar4 == (int *)0x0) goto LAB_00120b47;
      iVar2 = *piVar4;
    }
    if (piVar4[1] != -1) {
      return;
    }
LAB_00120b47:
    aiStack_58[0xb] = 0;
    aiStack_58[0xc] = 0x7ffffffd;
    aiStack_58[0xd] = 0;
    aiStack_58[0xe] = 0;
    aiStack_58[7] = 0;
    aiStack_58[8] = 0x7ffffffd;
    aiStack_58[9] = 0;
    aiStack_58[10] = 0;
    aiStack_58[3] = 0;
    aiStack_58[2] = 0;
    aiStack_58[1] = 0x7ffffffd;
    aiStack_58[0] = 0;
    apiStack_68[3] = (int *)0x0;
    apiStack_68[2] = (int *)0x0;
    apiStack_68[1] = (int *)0x7ffffffd;
    apiStack_68[0] = (int *)0x0;
    iVar2 = FUN_00120900(param_1);
    iVar1 = *(int *)(param_2 + 0x1c);
    if (iVar1 != -1) {
      while (param_3 != iVar1) {
        piVar3 = (int *)piVar3[2];
        if (piVar3 == (int *)0x0) goto LAB_00120bfb;
        iVar1 = *piVar3;
      }
      piVar3[1] = iVar2;
      goto LAB_00120c1e;
    }
  }
  *(int *)(param_2 + 0x1c) = param_3;
  *(int *)(param_2 + 0x20) = iVar2;
LAB_00120c1e:
  aiStack_58[6] = 0;
  aiStack_58[5] = 0;
  aiStack_58[4] = 0;
  aiStack_58[2] = param_1;
  aiStack_58[1] = param_5;
  apiStack_68[3] = param_4;
  apiStack_68[2] = (int *)0x120c40;
  aiStack_58[0] = param_2;
  aiStack_58[3] = iVar2;
  (**(code **)(*param_4 + 100))();
  if (param_6 == 0) {
    return;
  }
  aiStack_58[3] = iVar2 + 4;
  aiStack_58[6] = 0;
  aiStack_58[5] = 0;
  aiStack_58[4] = 0;
  aiStack_58[2] = param_1;
  aiStack_58[1] = param_6;
  apiStack_68[3] = param_4;
  apiStack_68[2] = (int *)0x120c70;
  aiStack_58[0] = param_2;
  (**(code **)(*param_4 + 100))();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x2894f7
SUB ESP,0x2c
MOV EDX,dword ptr [ESP + 0x44]
MOV EBP,dword ptr [ESP + 0x48]
MOV ESI,EDX
ADD ESI,0x1c
JZ 0x00120c7b
MOV EAX,ESI
CMP EBP,dword ptr [EDX + 0x1c]
JNZ 0x00120b40
JMP 0x00120bd8
CMP EBP,dword ptr [EAX]
JZ 0x00120bd8
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JNZ 0x00120b38
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x1c],0x0
MOV dword ptr [ESP + 0x20],0x7ffffffd
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x10],0x7ffffffd
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x18],0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH 0x7ffffffd
PUSH 0x0
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH 0x7ffffffd
PUSH 0x0
PUSH dword ptr [ESP + 0x6c]
CALL 0x00120900
MOV EDX,dword ptr [ESP + 0x74]
ADD ESP,0x30
MOV EDI,EAX
MOV EAX,dword ptr [EDX + 0x1c]
CMP EAX,-0x1
JZ 0x00120d00
CMP EBP,EAX
JNZ 0x00120bf4
NOP
MOV dword ptr [ESI + 0x4],EDI
JMP 0x00120c1e
CMP dword ptr [EAX + 0x4],-0x1
JZ 0x00120b47
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP EBP,dword ptr [ESI]
JZ 0x00120bd0
MOV ESI,dword ptr [ESI + 0x8]
TEST ESI,ESI
JNZ 0x00120bf0
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0xc
PUSH 0xc
CALL 0x001fb470
MOV EDX,dword ptr [ESP + 0x54]
ADD ESP,0x10
MOV dword ptr [EAX],EBP
MOV ECX,dword ptr [EDX + 0x24]
MOV dword ptr [EAX + 0x4],EDI
MOV dword ptr [EDX + 0x24],EAX
MOV dword ptr [EAX + 0x8],ECX
MOV EAX,dword ptr [ESP + 0x4c]
XOR EBX,EBX
MOV EAX,dword ptr [EAX]
PUSH 0x0
PUSH 0x0
PUSH EBX
PUSH EDI
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x64]
PUSH EDX
MOV dword ptr [ESP + 0x60],EDX
PUSH dword ptr [ESP + 0x68]
CALL dword ptr [EAX + 0x64]
MOV EAX,dword ptr [ESP + 0x74]
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00120be2
MOV EAX,dword ptr [ESP + 0x4c]
ADD EDI,0x4
XOR EBX,EBX
MOV EAX,dword ptr [EAX]
PUSH 0x0
PUSH 0x0
PUSH EBX
PUSH EDI
PUSH dword ptr [ESP + 0x50]
PUSH dword ptr [ESP + 0x68]
MOV EDX,dword ptr [ESP + 0x5c]
PUSH EDX
PUSH dword ptr [ESP + 0x68]
CALL dword ptr [EAX + 0x64]
ADD ESP,0x20
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0x1c
MOV ECX,0x4
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x30],0x7ffffffd
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x1c],0x0
MOV dword ptr [ESP + 0x20],0x7ffffffd
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x0
LEA ESI,[ESP + 0x2c]
MOV EDI,ESP
SUB ESP,0x10
MOVSD.REP ES:EDI,ESI
LEA ESI,[ESP + 0x2c]
MOV EDI,ESP
MOV ECX,0x4
MOVSD.REP ES:EDI,ESI
PUSH dword ptr [ESP + 0x6c]
CALL 0x00120900
ADD ESP,0x30
MOV EDX,dword ptr [ESP + 0x44]
MOV EDI,EAX
CMP dword ptr [EDX + 0x1c],-0x1
JNZ 0x00120bfb
LEA ESI,[ESI]
NOP
MOV dword ptr [EDX + 0x1c],EBP
MOV dword ptr [EDX + 0x20],EDI
JMP 0x00120c1e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}\n\n" comment (function_definition "void FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}" primitive_type (function_declarator "FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int **ppiVar5;" primitive_type (pointer_declarator "**ppiVar5" * (pointer_declarator "*ppiVar5" * identifier)) ;) (declaration "int *apiStack_68 [4];" primitive_type (pointer_declarator "*apiStack_68 [4]" * (array_declarator "apiStack_68 [4]" identifier [ number_literal ])) ;) (declaration "int aiStack_58 [17];" primitive_type (array_declarator "aiStack_58 [17]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x120b09;" (assignment_expression "uStack_14 = 0x120b09" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(param_2 + 0x1c);" (assignment_expression "piVar3 = (int *)(param_2 + 0x1c)" identifier = (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }" { (expression_statement "aiStack_58[0xb] = 0;" (assignment_expression "aiStack_58[0xb] = 0" (subscript_expression "aiStack_58[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xc] = 0x7ffffffd;" (assignment_expression "aiStack_58[0xc] = 0x7ffffffd" (subscript_expression "aiStack_58[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xd] = 0;" (assignment_expression "aiStack_58[0xd] = 0" (subscript_expression "aiStack_58[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xe] = 0;" (assignment_expression "aiStack_58[0xe] = 0" (subscript_expression "aiStack_58[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[7] = 0;" (assignment_expression "aiStack_58[7] = 0" (subscript_expression "aiStack_58[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[8] = 0x7ffffffd;" (assignment_expression "aiStack_58[8] = 0x7ffffffd" (subscript_expression "aiStack_58[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[9] = 0;" (assignment_expression "aiStack_58[9] = 0" (subscript_expression "aiStack_58[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[10] = 0;" (assignment_expression "aiStack_58[10] = 0" (subscript_expression "aiStack_58[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = aiStack_58 + 0xb;" (assignment_expression "piVar3 = aiStack_58 + 0xb" identifier = (binary_expression "aiStack_58 + 0xb" identifier + number_literal)) ;) (expression_statement "piVar4 = aiStack_58;" (assignment_expression "piVar4 = aiStack_58" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "*piVar4 = *piVar3;" (assignment_expression "*piVar4 = *piVar3" (pointer_expression "*piVar4" * identifier) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar3 = aiStack_58 + 7;" (assignment_expression "piVar3 = aiStack_58 + 7" identifier = (binary_expression "aiStack_58 + 7" identifier + number_literal)) ;) (expression_statement "ppiVar5 = apiStack_68;" (assignment_expression "ppiVar5 = apiStack_68" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }" { (expression_statement "*ppiVar5 = (int *)*piVar3;" (assignment_expression "*ppiVar5 = (int *)*piVar3" (pointer_expression "*ppiVar5" * identifier) = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "ppiVar5 = (int **)((int *)ppiVar5 + 1);" (assignment_expression "ppiVar5 = (int **)((int *)ppiVar5 + 1)" identifier = (cast_expression "(int **)((int *)ppiVar5 + 1)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int *)ppiVar5 + 1)" ( (binary_expression "(int *)ppiVar5 + 1" (cast_expression "(int *)ppiVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar2 = FUN_00120900(param_1);" (assignment_expression "iVar2 = FUN_00120900(param_1)" identifier = (call_expression "FUN_00120900(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -1)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -1" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }" { (labeled_statement "LAB_00120bfb:\n      aiStack_58[3] = 0xc;" statement_identifier : (expression_statement "aiStack_58[3] = 0xc;" (assignment_expression "aiStack_58[3] = 0xc" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_58[2] = 0x120c09;" (assignment_expression "aiStack_58[2] = 0x120c09" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = (int *)FUN_001fb470();" (assignment_expression "piVar3 = (int *)FUN_001fb470()" identifier = (cast_expression "(int *)FUN_001fb470()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001fb470()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x24) = piVar3;" (assignment_expression "*(int **)(param_2 + 0x24) = piVar3" (pointer_expression "*(int **)(param_2 + 0x24)" * (cast_expression "(int **)(param_2 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar3[2] = iVar1;" (assignment_expression "piVar3[2] = iVar1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00120c1e;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" identifier = identifier) ;) (while_statement "while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }" while (parenthesized_expression "(param_3 != iVar2)" ( (binary_expression "param_3 != iVar2" identifier != identifier) )) (compound_statement "{\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }" { (expression_statement "piVar4 = (int *)piVar4[2];" (assignment_expression "piVar4 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_00120b47;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00120b47;" goto statement_identifier ;)) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) (if_statement "if (piVar4[1] != -1) {\n      return;\n    }" if (parenthesized_expression "(piVar4[1] != -1)" ( (binary_expression "piVar4[1] != -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00120b47:\n    aiStack_58[0xb] = 0;" statement_identifier : (expression_statement "aiStack_58[0xb] = 0;" (assignment_expression "aiStack_58[0xb] = 0" (subscript_expression "aiStack_58[0xb]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_58[0xc] = 0x7ffffffd;" (assignment_expression "aiStack_58[0xc] = 0x7ffffffd" (subscript_expression "aiStack_58[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xd] = 0;" (assignment_expression "aiStack_58[0xd] = 0" (subscript_expression "aiStack_58[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xe] = 0;" (assignment_expression "aiStack_58[0xe] = 0" (subscript_expression "aiStack_58[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[7] = 0;" (assignment_expression "aiStack_58[7] = 0" (subscript_expression "aiStack_58[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[8] = 0x7ffffffd;" (assignment_expression "aiStack_58[8] = 0x7ffffffd" (subscript_expression "aiStack_58[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[9] = 0;" (assignment_expression "aiStack_58[9] = 0" (subscript_expression "aiStack_58[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[10] = 0;" (assignment_expression "aiStack_58[10] = 0" (subscript_expression "aiStack_58[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[3] = 0;" (assignment_expression "aiStack_58[3] = 0" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[2] = 0;" (assignment_expression "aiStack_58[2] = 0" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[1] = 0x7ffffffd;" (assignment_expression "aiStack_58[1] = 0x7ffffffd" (subscript_expression "aiStack_58[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0] = 0;" (assignment_expression "aiStack_58[0] = 0" (subscript_expression "aiStack_58[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "apiStack_68[3] = (int *)0x0;" (assignment_expression "apiStack_68[3] = (int *)0x0" (subscript_expression "apiStack_68[3]" identifier [ number_literal ]) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "apiStack_68[2] = (int *)0x0;" (assignment_expression "apiStack_68[2] = (int *)0x0" (subscript_expression "apiStack_68[2]" identifier [ number_literal ]) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "apiStack_68[1] = (int *)0x7ffffffd;" (assignment_expression "apiStack_68[1] = (int *)0x7ffffffd" (subscript_expression "apiStack_68[1]" identifier [ number_literal ]) = (cast_expression "(int *)0x7ffffffd" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "apiStack_68[0] = (int *)0x0;" (assignment_expression "apiStack_68[0] = (int *)0x0" (subscript_expression "apiStack_68[0]" identifier [ number_literal ]) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = FUN_00120900(param_1);" (assignment_expression "iVar2 = FUN_00120900(param_1)" identifier = (call_expression "FUN_00120900(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }" { (while_statement "while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }" while (parenthesized_expression "(param_3 != iVar1)" ( (binary_expression "param_3 != iVar1" identifier != identifier) )) (compound_statement "{\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }" { (expression_statement "piVar3 = (int *)piVar3[2];" (assignment_expression "piVar3 = (int *)piVar3[2]" identifier = (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00120bfb;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00120bfb;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00120c1e;" goto statement_identifier ;) })) }))) (expression_statement "*(int *)(param_2 + 0x1c) = param_3;" (assignment_expression "*(int *)(param_2 + 0x1c) = param_3" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x20) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar2" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_00120c1e:\n  aiStack_58[6] = 0;" statement_identifier : (expression_statement "aiStack_58[6] = 0;" (assignment_expression "aiStack_58[6] = 0" (subscript_expression "aiStack_58[6]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_58[5] = 0;" (assignment_expression "aiStack_58[5] = 0" (subscript_expression "aiStack_58[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[4] = 0;" (assignment_expression "aiStack_58[4] = 0" (subscript_expression "aiStack_58[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[2] = param_1;" (assignment_expression "aiStack_58[2] = param_1" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_58[1] = param_5;" (assignment_expression "aiStack_58[1] = param_5" (subscript_expression "aiStack_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[3] = param_4;" (assignment_expression "apiStack_68[3] = param_4" (subscript_expression "apiStack_68[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[2] = (int *)0x120c40;" (assignment_expression "apiStack_68[2] = (int *)0x120c40" (subscript_expression "apiStack_68[2]" identifier [ number_literal ]) = (cast_expression "(int *)0x120c40" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "aiStack_58[0] = param_2;" (assignment_expression "aiStack_58[0] = param_2" (subscript_expression "aiStack_58[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_58[3] = iVar2;" (assignment_expression "aiStack_58[3] = iVar2" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(**(code **)(*param_4 + 100))();" (call_expression "(**(code **)(*param_4 + 100))()" (parenthesized_expression "(**(code **)(*param_4 + 100))" ( (pointer_expression "**(code **)(*param_4 + 100)" * (pointer_expression "*(code **)(*param_4 + 100)" * (cast_expression "(code **)(*param_4 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 100)" ( (binary_expression "*param_4 + 100" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (param_6 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "aiStack_58[3] = iVar2 + 4;" (assignment_expression "aiStack_58[3] = iVar2 + 4" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = (binary_expression "iVar2 + 4" identifier + number_literal)) ;) (expression_statement "aiStack_58[6] = 0;" (assignment_expression "aiStack_58[6] = 0" (subscript_expression "aiStack_58[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[5] = 0;" (assignment_expression "aiStack_58[5] = 0" (subscript_expression "aiStack_58[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[4] = 0;" (assignment_expression "aiStack_58[4] = 0" (subscript_expression "aiStack_58[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[2] = param_1;" (assignment_expression "aiStack_58[2] = param_1" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_58[1] = param_6;" (assignment_expression "aiStack_58[1] = param_6" (subscript_expression "aiStack_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[3] = param_4;" (assignment_expression "apiStack_68[3] = param_4" (subscript_expression "apiStack_68[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[2] = (int *)0x120c70;" (assignment_expression "apiStack_68[2] = (int *)0x120c70" (subscript_expression "apiStack_68[2]" identifier [ number_literal ]) = (cast_expression "(int *)0x120c70" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "aiStack_58[0] = param_2;" (assignment_expression "aiStack_58[0] = param_2" (subscript_expression "aiStack_58[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(**(code **)(*param_4 + 100))();" (call_expression "(**(code **)(*param_4 + 100))()" (parenthesized_expression "(**(code **)(*param_4 + 100))" ( (pointer_expression "**(code **)(*param_4 + 100)" * (pointer_expression "*(code **)(*param_4 + 100)" * (cast_expression "(code **)(*param_4 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 100)" ( (binary_expression "*param_4 + 100" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void add_global_pair_with_rel(Output_data_got<32,_true> * this, Symbol\n   * gsym, uint got_type, Output_data_reloc_generic * rel_dyn, uint r_type_1, uint r_type_2) */\n\nvoid __thiscall\ngold::Output_data_got<32,_true>::add_global_pair_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)\n\n{\n  uint uVar1;\n  Got_entry got_entry_1;\n  Got_entry got_entry_2;\n  uint uVar2;\n  Got_offset_list *pGVar3;\n  int iVar4;\n  Got_offset_list *pGVar5;\n  undefined4 *puVar6;\n  undefined4 *puVar7;\n  undefined4 in_stack_ffffff98;\n  undefined4 in_stack_ffffff9c;\n  undefined4 in_stack_ffffffa0;\n  undefined4 in_stack_ffffffa4;\n  undefined4 in_stack_ffffffa8;\n  undefined4 in_stack_ffffffac;\n  undefined4 in_stack_ffffffb0;\n  undefined4 in_stack_ffffffb4;\n  undefined4 local_3c [10];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  pGVar5 = &gsym->got_offsets_;\n  if (pGVar5 == (Got_offset_list *)0x0) {\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    puVar6 = local_3c + 4;\n    puVar7 = (undefined4 *)&stack0xffffffa8;\n    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }\n    puVar6 = local_3c;\n    puVar7 = (undefined4 *)&stack0xffffff98;\n    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }\n    got_entry_1._4_4_ = in_stack_ffffff9c;\n    got_entry_1.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98;\n    got_entry_1.addend_._0_4_ = in_stack_ffffffa0;\n    got_entry_1.addend_._4_4_ = in_stack_ffffffa4;\n    got_entry_2._4_4_ = in_stack_ffffffac;\n    got_entry_2.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8;\n    got_entry_2.addend_._0_4_ = in_stack_ffffffb0;\n    got_entry_2.addend_._4_4_ = in_stack_ffffffb4;\n    uVar2 = add_got_entry_pair(this,got_entry_1,got_entry_2);\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_00120bfb:\n      pGVar3 = (Got_offset_list *)operator_new(0xc);\n      pGVar3->got_type_ = got_type;\n      pGVar5 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_offset_ = uVar2;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      pGVar3->got_next_ = pGVar5;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar5;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00120b47:\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }\n      pGVar5->got_offset_ = uVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  (gsym->got_offsets_).got_type_ = got_type;\n  (gsym->got_offsets_).got_offset_ = uVar2;\nLAB_00120c1e:\n  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])();\n  if (r_type_2 == 0) {\n    return;\n  }\n  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])();\n  return;\n}\n\n" comment comment (declaration "void __thiscall\ngold::Output_data_got<32,_true>::add_global_pair_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::add_global_pair_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)\n\n{\n  uint" identifier > : : (function_declarator "add_global_pair_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)" identifier (parameter_list "(Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)" ( (parameter_declaration "Output_data_got" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol *gsym" type_identifier (pointer_declarator "*gsym" * identifier)) , (parameter_declaration "uint got_type" type_identifier identifier) , (parameter_declaration "Output_data_reloc_generic *rel_dyn" type_identifier (pointer_declarator "*rel_dyn" * identifier)) , (parameter_declaration "uint r_type_1" type_identifier identifier) , (parameter_declaration "uint r_type_2" type_identifier identifier) ))) { identifier) identifier ;) (declaration "Got_entry got_entry_1;" type_identifier identifier ;) (declaration "Got_entry got_entry_2;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Got_offset_list *pGVar3;" type_identifier (pointer_declarator "*pGVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Got_offset_list *pGVar5;" type_identifier (pointer_declarator "*pGVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 in_stack_ffffff98;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffff9c;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffa0;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffa4;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffa8;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffac;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffb0;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffb4;" type_identifier identifier ;) (declaration "undefined4 local_3c [10];" type_identifier (array_declarator "local_3c [10]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x120b09;" (assignment_expression "uStack_14 = 0x120b09" identifier = number_literal) ;) (expression_statement "pGVar5 = &gsym->got_offsets_;" (assignment_expression "pGVar5 = &gsym->got_offsets_" identifier = (pointer_expression "&gsym->got_offsets_" & (field_expression "gsym->got_offsets_" identifier -> field_identifier))) ;) (if_statement "if (pGVar5 == (Got_offset_list *)0x0) {\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    puVar6 = local_3c + 4;\n    puVar7 = (undefined4 *)&stack0xffffffa8;\n    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }\n    puVar6 = local_3c;\n    puVar7 = (undefined4 *)&stack0xffffff98;\n    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }\n    got_entry_1._4_4_ = in_stack_ffffff9c;\n    got_entry_1.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98;\n    got_entry_1.addend_._0_4_ = in_stack_ffffffa0;\n    got_entry_1.addend_._4_4_ = in_stack_ffffffa4;\n    got_entry_2._4_4_ = in_stack_ffffffac;\n    got_entry_2.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8;\n    got_entry_2.addend_._0_4_ = in_stack_ffffffb0;\n    got_entry_2.addend_._4_4_ = in_stack_ffffffb4;\n    uVar2 = add_got_entry_pair(this,got_entry_1,got_entry_2);\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_00120bfb:\n      pGVar3 = (Got_offset_list *)operator_new(0xc);\n      pGVar3->got_type_ = got_type;\n      pGVar5 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_offset_ = uVar2;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      pGVar3->got_next_ = pGVar5;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar5;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00120b47:\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }\n      pGVar5->got_offset_ = uVar2;\n      goto LAB_00120c1e;\n    }\n  }" if (parenthesized_expression "(pGVar5 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar5 == (Got_offset_list *)0x0" identifier == (cast_expression "(Got_offset_list *)0x0" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    puVar6 = local_3c + 4;\n    puVar7 = (undefined4 *)&stack0xffffffa8;\n    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }\n    puVar6 = local_3c;\n    puVar7 = (undefined4 *)&stack0xffffff98;\n    for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }\n    got_entry_1._4_4_ = in_stack_ffffff9c;\n    got_entry_1.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98;\n    got_entry_1.addend_._0_4_ = in_stack_ffffffa0;\n    got_entry_1.addend_._4_4_ = in_stack_ffffffa4;\n    got_entry_2._4_4_ = in_stack_ffffffac;\n    got_entry_2.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8;\n    got_entry_2.addend_._0_4_ = in_stack_ffffffb0;\n    got_entry_2.addend_._4_4_ = in_stack_ffffffb4;\n    uVar2 = add_got_entry_pair(this,got_entry_1,got_entry_2);\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_00120bfb:\n      pGVar3 = (Got_offset_list *)operator_new(0xc);\n      pGVar3->got_type_ = got_type;\n      pGVar5 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_offset_ = uVar2;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      pGVar3->got_next_ = pGVar5;\n      goto LAB_00120c1e;\n    }\n  }" { (expression_statement "local_3c[4] = 0;" (assignment_expression "local_3c[4] = 0" (subscript_expression "local_3c[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[5] = 0x7ffffffd;" (assignment_expression "local_3c[5] = 0x7ffffffd" (subscript_expression "local_3c[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[6] = 0;" (assignment_expression "local_3c[6] = 0" (subscript_expression "local_3c[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[7] = 0;" (assignment_expression "local_3c[7] = 0" (subscript_expression "local_3c[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[0] = 0;" (assignment_expression "local_3c[0] = 0" (subscript_expression "local_3c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[1] = 0x7ffffffd;" (assignment_expression "local_3c[1] = 0x7ffffffd" (subscript_expression "local_3c[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[2] = 0;" (assignment_expression "local_3c[2] = 0" (subscript_expression "local_3c[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[3] = 0;" (assignment_expression "local_3c[3] = 0" (subscript_expression "local_3c[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = local_3c + 4;" (assignment_expression "puVar6 = local_3c + 4" identifier = (binary_expression "local_3c + 4" identifier + number_literal)) ;) (expression_statement "puVar7 = (undefined4 *)&stack0xffffffa8;" (assignment_expression "puVar7 = (undefined4 *)&stack0xffffffa8" identifier = (cast_expression "(undefined4 *)&stack0xffffffa8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0xffffffa8" & identifier))) ;) (for_statement "for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }" for ( (assignment_expression "iVar4 = 4" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "puVar6 = local_3c;" (assignment_expression "puVar6 = local_3c" identifier = identifier) ;) (expression_statement "puVar7 = (undefined4 *)&stack0xffffff98;" (assignment_expression "puVar7 = (undefined4 *)&stack0xffffff98" identifier = (cast_expression "(undefined4 *)&stack0xffffff98" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0xffffff98" & identifier))) ;) (for_statement "for (iVar4 = 4; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }" for ( (assignment_expression "iVar4 = 4" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar7 = *puVar6;\n      puVar6 = puVar6 + 1;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "*puVar7 = *puVar6;" (assignment_expression "*puVar7 = *puVar6" (pointer_expression "*puVar7" * identifier) = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) })) (expression_statement "got_entry_1._4_4_ = in_stack_ffffff9c;" (assignment_expression "got_entry_1._4_4_ = in_stack_ffffff9c" (field_expression "got_entry_1._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "got_entry_1.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98;" (assignment_expression "got_entry_1.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98" (field_expression "got_entry_1.u_" identifier . field_identifier) = (cast_expression "(anon_union_4_3_9d565b01_for_u_)in_stack_ffffff98" ( (type_descriptor "anon_union_4_3_9d565b01_for_u_" type_identifier) ) identifier)) ;) (expression_statement "got_entry_1.addend_._0_4_ = in_stack_ffffffa0;" (assignment_expression "got_entry_1.addend_._0_4_ = in_stack_ffffffa0" (field_expression "got_entry_1.addend_._0_4_" (field_expression "got_entry_1.addend_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "got_entry_1.addend_._4_4_ = in_stack_ffffffa4;" (assignment_expression "got_entry_1.addend_._4_4_ = in_stack_ffffffa4" (field_expression "got_entry_1.addend_._4_4_" (field_expression "got_entry_1.addend_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "got_entry_2._4_4_ = in_stack_ffffffac;" (assignment_expression "got_entry_2._4_4_ = in_stack_ffffffac" (field_expression "got_entry_2._4_4_" identifier . field_identifier) = identifier) ;) (expression_statement "got_entry_2.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8;" (assignment_expression "got_entry_2.u_ = (anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8" (field_expression "got_entry_2.u_" identifier . field_identifier) = (cast_expression "(anon_union_4_3_9d565b01_for_u_)in_stack_ffffffa8" ( (type_descriptor "anon_union_4_3_9d565b01_for_u_" type_identifier) ) identifier)) ;) (expression_statement "got_entry_2.addend_._0_4_ = in_stack_ffffffb0;" (assignment_expression "got_entry_2.addend_._0_4_ = in_stack_ffffffb0" (field_expression "got_entry_2.addend_._0_4_" (field_expression "got_entry_2.addend_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "got_entry_2.addend_._4_4_ = in_stack_ffffffb4;" (assignment_expression "got_entry_2.addend_._4_4_ = in_stack_ffffffb4" (field_expression "got_entry_2.addend_._4_4_" (field_expression "got_entry_2.addend_" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "uVar2 = add_got_entry_pair(this,got_entry_1,got_entry_2);" (assignment_expression "uVar2 = add_got_entry_pair(this,got_entry_1,got_entry_2)" identifier = (call_expression "add_got_entry_pair(this,got_entry_1,got_entry_2)" identifier (argument_list "(this,got_entry_1,got_entry_2)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_00120bfb:\n      pGVar3 = (Got_offset_list *)operator_new(0xc);\n      pGVar3->got_type_ = got_type;\n      pGVar5 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_offset_ = uVar2;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      pGVar3->got_next_ = pGVar5;\n      goto LAB_00120c1e;\n    }" if (parenthesized_expression "((gsym->got_offsets_).got_type_ != 0xffffffff)" ( (binary_expression "(gsym->got_offsets_).got_type_ != 0xffffffff" (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) != number_literal) )) (compound_statement "{\nLAB_00120bfb:\n      pGVar3 = (Got_offset_list *)operator_new(0xc);\n      pGVar3->got_type_ = got_type;\n      pGVar5 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_offset_ = uVar2;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      pGVar3->got_next_ = pGVar5;\n      goto LAB_00120c1e;\n    }" { (labeled_statement "LAB_00120bfb:\n      pGVar3 = (Got_offset_list *)operator_new(0xc);" statement_identifier : (expression_statement "pGVar3 = (Got_offset_list *)operator_new(0xc);" (assignment_expression "pGVar3 = (Got_offset_list *)operator_new(0xc)" identifier = (cast_expression "(Got_offset_list *)operator_new(0xc)" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;)) (expression_statement "pGVar3->got_type_ = got_type;" (assignment_expression "pGVar3->got_type_ = got_type" (field_expression "pGVar3->got_type_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar5 = (gsym->got_offsets_).got_next_;" (assignment_expression "pGVar5 = (gsym->got_offsets_).got_next_" identifier = (field_expression "(gsym->got_offsets_).got_next_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pGVar3->got_offset_ = uVar2;" (assignment_expression "pGVar3->got_offset_ = uVar2" (field_expression "pGVar3->got_offset_" identifier -> field_identifier) = identifier) ;) (expression_statement "(gsym->got_offsets_).got_next_ = pGVar3;" (assignment_expression "(gsym->got_offsets_).got_next_ = pGVar3" (field_expression "(gsym->got_offsets_).got_next_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pGVar3->got_next_ = pGVar5;" (assignment_expression "pGVar3->got_next_ = pGVar5" (field_expression "pGVar3->got_next_" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00120c1e;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar5;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00120b47:\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }\n      pGVar5->got_offset_ = uVar2;\n      goto LAB_00120c1e;\n    }\n  }" else (compound_statement "{\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar5;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00120b47:\n    local_3c[4] = 0;\n    local_3c[5] = 0x7ffffffd;\n    local_3c[6] = 0;\n    local_3c[7] = 0;\n    local_3c[0] = 0;\n    local_3c[1] = 0x7ffffffd;\n    local_3c[2] = 0;\n    local_3c[3] = 0;\n    uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }\n      pGVar5->got_offset_ = uVar2;\n      goto LAB_00120c1e;\n    }\n  }" { (expression_statement "uVar2 = (gsym->got_offsets_).got_type_;" (assignment_expression "uVar2 = (gsym->got_offsets_).got_type_" identifier = (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pGVar3 = pGVar5;" (assignment_expression "pGVar3 = pGVar5" identifier = identifier) ;) (while_statement "while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;\n      uVar2 = pGVar3->got_type_;\n    }" while (parenthesized_expression "(got_type != uVar2)" ( (binary_expression "got_type != uVar2" identifier != identifier) )) (compound_statement "{\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;\n      uVar2 = pGVar3->got_type_;\n    }" { (expression_statement "pGVar3 = pGVar3->got_next_;" (assignment_expression "pGVar3 = pGVar3->got_next_" identifier = (field_expression "pGVar3->got_next_" identifier -> field_identifier)) ;) (if_statement "if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00120b47;" if (parenthesized_expression "(pGVar3 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar3 == (Got_offset_list *)0x0" identifier == (cast_expression "(Got_offset_list *)0x0" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00120b47;" goto statement_identifier ;)) (expression_statement "uVar2 = pGVar3->got_type_;" (assignment_expression "uVar2 = pGVar3->got_type_" identifier = (field_expression "pGVar3->got_type_" identifier -> field_identifier)) ;) })) (if_statement "if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }" if (parenthesized_expression "(pGVar3->got_offset_ != 0xffffffff)" ( (binary_expression "pGVar3->got_offset_ != 0xffffffff" (field_expression "pGVar3->got_offset_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00120b47:\n    local_3c[4] = 0;" statement_identifier : (expression_statement "local_3c[4] = 0;" (assignment_expression "local_3c[4] = 0" (subscript_expression "local_3c[4]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "local_3c[5] = 0x7ffffffd;" (assignment_expression "local_3c[5] = 0x7ffffffd" (subscript_expression "local_3c[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[6] = 0;" (assignment_expression "local_3c[6] = 0" (subscript_expression "local_3c[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[7] = 0;" (assignment_expression "local_3c[7] = 0" (subscript_expression "local_3c[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[0] = 0;" (assignment_expression "local_3c[0] = 0" (subscript_expression "local_3c[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[1] = 0x7ffffffd;" (assignment_expression "local_3c[1] = 0x7ffffffd" (subscript_expression "local_3c[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[2] = 0;" (assignment_expression "local_3c[2] = 0" (subscript_expression "local_3c[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_3c[3] = 0;" (assignment_expression "local_3c[3] = 0" (subscript_expression "local_3c[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000));" (assignment_expression "uVar2 = add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000))" identifier = (call_expression "add_got_entry_pair(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000))" identifier (argument_list "(this,(Got_entry)ZEXT816(0x7ffffffd00000000),\n                               (Got_entry)ZEXT816(0x7ffffffd00000000))" ( identifier , (cast_expression "(Got_entry)ZEXT816(0x7ffffffd00000000)" ( (type_descriptor "Got_entry" type_identifier) ) (call_expression "ZEXT816(0x7ffffffd00000000)" identifier (argument_list "(0x7ffffffd00000000)" ( number_literal )))) , (cast_expression "(Got_entry)ZEXT816(0x7ffffffd00000000)" ( (type_descriptor "Got_entry" type_identifier) ) (call_expression "ZEXT816(0x7ffffffd00000000)" identifier (argument_list "(0x7ffffffd00000000)" ( number_literal )))) )))) ;) (expression_statement "uVar1 = (gsym->got_offsets_).got_type_;" (assignment_expression "uVar1 = (gsym->got_offsets_).got_type_" identifier = (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }\n      pGVar5->got_offset_ = uVar2;\n      goto LAB_00120c1e;\n    }" if (parenthesized_expression "(uVar1 != 0xffffffff)" ( (binary_expression "uVar1 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n      while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }\n      pGVar5->got_offset_ = uVar2;\n      goto LAB_00120c1e;\n    }" { (while_statement "while (got_type != uVar1) {\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }" while (parenthesized_expression "(got_type != uVar1)" ( (binary_expression "got_type != uVar1" identifier != identifier) )) (compound_statement "{\n        pGVar5 = pGVar5->got_next_;\n        if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;\n        uVar1 = pGVar5->got_type_;\n      }" { (expression_statement "pGVar5 = pGVar5->got_next_;" (assignment_expression "pGVar5 = pGVar5->got_next_" identifier = (field_expression "pGVar5->got_next_" identifier -> field_identifier)) ;) (if_statement "if (pGVar5 == (Got_offset_list *)0x0) goto LAB_00120bfb;" if (parenthesized_expression "(pGVar5 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar5 == (Got_offset_list *)0x0" identifier == (cast_expression "(Got_offset_list *)0x0" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00120bfb;" goto statement_identifier ;)) (expression_statement "uVar1 = pGVar5->got_type_;" (assignment_expression "uVar1 = pGVar5->got_type_" identifier = (field_expression "pGVar5->got_type_" identifier -> field_identifier)) ;) })) (expression_statement "pGVar5->got_offset_ = uVar2;" (assignment_expression "pGVar5->got_offset_ = uVar2" (field_expression "pGVar5->got_offset_" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_00120c1e;" goto statement_identifier ;) })) }))) (expression_statement "(gsym->got_offsets_).got_type_ = got_type;" (assignment_expression "(gsym->got_offsets_).got_type_ = got_type" (field_expression "(gsym->got_offsets_).got_type_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(gsym->got_offsets_).got_offset_ = uVar2;" (assignment_expression "(gsym->got_offsets_).got_offset_ = uVar2" (field_expression "(gsym->got_offsets_).got_offset_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (labeled_statement "LAB_00120c1e:\n  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])();" statement_identifier : (expression_statement "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])();" (call_expression "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])()" (parenthesized_expression "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])" ( (pointer_expression "*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19]" * (subscript_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19]" (field_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data" (field_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data" (field_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data" (parenthesized_expression "(rel_dyn->super_Output_section_data_build)" ( (field_expression "rel_dyn->super_Output_section_data_build" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) [ number_literal ])) )) (argument_list "()" ( ))) ;)) (if_statement "if (r_type_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(r_type_2 == 0)" ( (binary_expression "r_type_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])();" (call_expression "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])()" (parenthesized_expression "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])" ( (pointer_expression "*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19]" * (subscript_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19]" (field_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data" (field_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data" (field_expression "(rel_dyn->super_Output_section_data_build).super_Output_section_data" (parenthesized_expression "(rel_dyn->super_Output_section_data_build)" ( (field_expression "rel_dyn->super_Output_section_data_build" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) [ number_literal ])) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}\n\n" (function_definition "void FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}" primitive_type (function_declarator "FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int **ppiVar5;" primitive_type (pointer_declarator "**ppiVar5" * (pointer_declarator "*ppiVar5" * identifier)) ;) (declaration "int *apiStack_68 [4];" primitive_type (pointer_declarator "*apiStack_68 [4]" * (array_declarator "apiStack_68 [4]" identifier [ number_literal ])) ;) (declaration "int aiStack_58 [17];" primitive_type (array_declarator "aiStack_58 [17]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x120b09;" (assignment_expression "uStack_14 = 0x120b09" identifier = number_literal) ;) (expression_statement "piVar3 = (int *)(param_2 + 0x1c);" (assignment_expression "piVar3 = (int *)(param_2 + 0x1c)" identifier = (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }" { (expression_statement "aiStack_58[0xb] = 0;" (assignment_expression "aiStack_58[0xb] = 0" (subscript_expression "aiStack_58[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xc] = 0x7ffffffd;" (assignment_expression "aiStack_58[0xc] = 0x7ffffffd" (subscript_expression "aiStack_58[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xd] = 0;" (assignment_expression "aiStack_58[0xd] = 0" (subscript_expression "aiStack_58[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xe] = 0;" (assignment_expression "aiStack_58[0xe] = 0" (subscript_expression "aiStack_58[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[7] = 0;" (assignment_expression "aiStack_58[7] = 0" (subscript_expression "aiStack_58[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[8] = 0x7ffffffd;" (assignment_expression "aiStack_58[8] = 0x7ffffffd" (subscript_expression "aiStack_58[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[9] = 0;" (assignment_expression "aiStack_58[9] = 0" (subscript_expression "aiStack_58[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[10] = 0;" (assignment_expression "aiStack_58[10] = 0" (subscript_expression "aiStack_58[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = aiStack_58 + 0xb;" (assignment_expression "piVar3 = aiStack_58 + 0xb" identifier = (binary_expression "aiStack_58 + 0xb" identifier + number_literal)) ;) (expression_statement "piVar4 = aiStack_58;" (assignment_expression "piVar4 = aiStack_58" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }" { (expression_statement "*piVar4 = *piVar3;" (assignment_expression "*piVar4 = *piVar3" (pointer_expression "*piVar4" * identifier) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" identifier = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "piVar3 = aiStack_58 + 7;" (assignment_expression "piVar3 = aiStack_58 + 7" identifier = (binary_expression "aiStack_58 + 7" identifier + number_literal)) ;) (expression_statement "ppiVar5 = apiStack_68;" (assignment_expression "ppiVar5 = apiStack_68" identifier = identifier) ;) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }" for ( (assignment_expression "iVar2 = 4" identifier = number_literal) ; (binary_expression "iVar2 != 0" identifier != number_literal) ; (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ) (compound_statement "{\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }" { (expression_statement "*ppiVar5 = (int *)*piVar3;" (assignment_expression "*ppiVar5 = (int *)*piVar3" (pointer_expression "*ppiVar5" * identifier) = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) ;) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" identifier = (binary_expression "piVar3 + 1" identifier + number_literal)) ;) (expression_statement "ppiVar5 = (int **)((int *)ppiVar5 + 1);" (assignment_expression "ppiVar5 = (int **)((int *)ppiVar5 + 1)" identifier = (cast_expression "(int **)((int *)ppiVar5 + 1)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int *)ppiVar5 + 1)" ( (binary_expression "(int *)ppiVar5 + 1" (cast_expression "(int *)ppiVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) })) (expression_statement "iVar2 = FUN_00120900(param_1);" (assignment_expression "iVar2 = FUN_00120900(param_1)" identifier = (call_expression "FUN_00120900(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -1)" ( (binary_expression "*(int *)(param_2 + 0x1c) != -1" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }" { (labeled_statement "LAB_00120bfb:\n      aiStack_58[3] = 0xc;" statement_identifier : (expression_statement "aiStack_58[3] = 0xc;" (assignment_expression "aiStack_58[3] = 0xc" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_58[2] = 0x120c09;" (assignment_expression "aiStack_58[2] = 0x120c09" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar3 = (int *)FUN_001fb470();" (assignment_expression "piVar3 = (int *)FUN_001fb470()" identifier = (cast_expression "(int *)FUN_001fb470()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001fb470()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" * identifier) = identifier) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x24) = piVar3;" (assignment_expression "*(int **)(param_2 + 0x24) = piVar3" (pointer_expression "*(int **)(param_2 + 0x24)" * (cast_expression "(int **)(param_2 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar3[2] = iVar1;" (assignment_expression "piVar3[2] = iVar1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00120c1e;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" else (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" { (expression_statement "iVar2 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" identifier = identifier) ;) (while_statement "while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }" while (parenthesized_expression "(param_3 != iVar2)" ( (binary_expression "param_3 != iVar2" identifier != identifier) )) (compound_statement "{\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }" { (expression_statement "piVar4 = (int *)piVar4[2];" (assignment_expression "piVar4 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 == (int *)0x0) goto LAB_00120b47;" if (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00120b47;" goto statement_identifier ;)) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) (if_statement "if (piVar4[1] != -1) {\n      return;\n    }" if (parenthesized_expression "(piVar4[1] != -1)" ( (binary_expression "piVar4[1] != -1" (subscript_expression "piVar4[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00120b47:\n    aiStack_58[0xb] = 0;" statement_identifier : (expression_statement "aiStack_58[0xb] = 0;" (assignment_expression "aiStack_58[0xb] = 0" (subscript_expression "aiStack_58[0xb]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_58[0xc] = 0x7ffffffd;" (assignment_expression "aiStack_58[0xc] = 0x7ffffffd" (subscript_expression "aiStack_58[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xd] = 0;" (assignment_expression "aiStack_58[0xd] = 0" (subscript_expression "aiStack_58[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0xe] = 0;" (assignment_expression "aiStack_58[0xe] = 0" (subscript_expression "aiStack_58[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[7] = 0;" (assignment_expression "aiStack_58[7] = 0" (subscript_expression "aiStack_58[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[8] = 0x7ffffffd;" (assignment_expression "aiStack_58[8] = 0x7ffffffd" (subscript_expression "aiStack_58[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[9] = 0;" (assignment_expression "aiStack_58[9] = 0" (subscript_expression "aiStack_58[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[10] = 0;" (assignment_expression "aiStack_58[10] = 0" (subscript_expression "aiStack_58[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[3] = 0;" (assignment_expression "aiStack_58[3] = 0" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[2] = 0;" (assignment_expression "aiStack_58[2] = 0" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[1] = 0x7ffffffd;" (assignment_expression "aiStack_58[1] = 0x7ffffffd" (subscript_expression "aiStack_58[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[0] = 0;" (assignment_expression "aiStack_58[0] = 0" (subscript_expression "aiStack_58[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "apiStack_68[3] = (int *)0x0;" (assignment_expression "apiStack_68[3] = (int *)0x0" (subscript_expression "apiStack_68[3]" identifier [ number_literal ]) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "apiStack_68[2] = (int *)0x0;" (assignment_expression "apiStack_68[2] = (int *)0x0" (subscript_expression "apiStack_68[2]" identifier [ number_literal ]) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "apiStack_68[1] = (int *)0x7ffffffd;" (assignment_expression "apiStack_68[1] = (int *)0x7ffffffd" (subscript_expression "apiStack_68[1]" identifier [ number_literal ]) = (cast_expression "(int *)0x7ffffffd" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "apiStack_68[0] = (int *)0x0;" (assignment_expression "apiStack_68[0] = (int *)0x0" (subscript_expression "apiStack_68[0]" identifier [ number_literal ]) = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar2 = FUN_00120900(param_1);" (assignment_expression "iVar2 = FUN_00120900(param_1)" identifier = (call_expression "FUN_00120900(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar1 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }" { (while_statement "while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }" while (parenthesized_expression "(param_3 != iVar1)" ( (binary_expression "param_3 != iVar1" identifier != identifier) )) (compound_statement "{\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }" { (expression_statement "piVar3 = (int *)piVar3[2];" (assignment_expression "piVar3 = (int *)piVar3[2]" identifier = (cast_expression "(int *)piVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00120bfb;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00120bfb;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00120c1e;" goto statement_identifier ;) })) }))) (expression_statement "*(int *)(param_2 + 0x1c) = param_3;" (assignment_expression "*(int *)(param_2 + 0x1c) = param_3" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x20) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar2" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_00120c1e:\n  aiStack_58[6] = 0;" statement_identifier : (expression_statement "aiStack_58[6] = 0;" (assignment_expression "aiStack_58[6] = 0" (subscript_expression "aiStack_58[6]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "aiStack_58[5] = 0;" (assignment_expression "aiStack_58[5] = 0" (subscript_expression "aiStack_58[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[4] = 0;" (assignment_expression "aiStack_58[4] = 0" (subscript_expression "aiStack_58[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[2] = param_1;" (assignment_expression "aiStack_58[2] = param_1" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_58[1] = param_5;" (assignment_expression "aiStack_58[1] = param_5" (subscript_expression "aiStack_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[3] = param_4;" (assignment_expression "apiStack_68[3] = param_4" (subscript_expression "apiStack_68[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[2] = (int *)0x120c40;" (assignment_expression "apiStack_68[2] = (int *)0x120c40" (subscript_expression "apiStack_68[2]" identifier [ number_literal ]) = (cast_expression "(int *)0x120c40" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "aiStack_58[0] = param_2;" (assignment_expression "aiStack_58[0] = param_2" (subscript_expression "aiStack_58[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_58[3] = iVar2;" (assignment_expression "aiStack_58[3] = iVar2" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(**(code **)(*param_4 + 100))();" (call_expression "(**(code **)(*param_4 + 100))()" (parenthesized_expression "(**(code **)(*param_4 + 100))" ( (pointer_expression "**(code **)(*param_4 + 100)" * (pointer_expression "*(code **)(*param_4 + 100)" * (cast_expression "(code **)(*param_4 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 100)" ( (binary_expression "*param_4 + 100" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (if_statement "if (param_6 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "aiStack_58[3] = iVar2 + 4;" (assignment_expression "aiStack_58[3] = iVar2 + 4" (subscript_expression "aiStack_58[3]" identifier [ number_literal ]) = (binary_expression "iVar2 + 4" identifier + number_literal)) ;) (expression_statement "aiStack_58[6] = 0;" (assignment_expression "aiStack_58[6] = 0" (subscript_expression "aiStack_58[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[5] = 0;" (assignment_expression "aiStack_58[5] = 0" (subscript_expression "aiStack_58[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[4] = 0;" (assignment_expression "aiStack_58[4] = 0" (subscript_expression "aiStack_58[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "aiStack_58[2] = param_1;" (assignment_expression "aiStack_58[2] = param_1" (subscript_expression "aiStack_58[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "aiStack_58[1] = param_6;" (assignment_expression "aiStack_58[1] = param_6" (subscript_expression "aiStack_58[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[3] = param_4;" (assignment_expression "apiStack_68[3] = param_4" (subscript_expression "apiStack_68[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "apiStack_68[2] = (int *)0x120c70;" (assignment_expression "apiStack_68[2] = (int *)0x120c70" (subscript_expression "apiStack_68[2]" identifier [ number_literal ]) = (cast_expression "(int *)0x120c70" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "aiStack_58[0] = param_2;" (assignment_expression "aiStack_58[0] = param_2" (subscript_expression "aiStack_58[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(**(code **)(*param_4 + 100))();" (call_expression "(**(code **)(*param_4 + 100))()" (parenthesized_expression "(**(code **)(*param_4 + 100))" ( (pointer_expression "**(code **)(*param_4 + 100)" * (pointer_expression "*(code **)(*param_4 + 100)" * (cast_expression "(code **)(*param_4 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 100)" ( (binary_expression "*param_4 + 100" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (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 = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00120b00(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)" (identifier "FUN_00120b00") (parameter_list "(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,\n                 int param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  int **ppiVar5;\n  int *apiStack_68 [4];\n  int aiStack_58 [17];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x120b09;\n  piVar3 = (int *)(param_2 + 0x1c);\n  if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }\n  *(int *)(param_2 + 0x1c) = param_3;\n  *(int *)(param_2 + 0x20) = iVar2;\nLAB_00120c1e:\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_5;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c40;\n  aiStack_58[0] = param_2;\n  aiStack_58[3] = iVar2;\n  (**(code **)(*param_4 + 100))();\n  if (param_6 == 0) {\n    return;\n  }\n  aiStack_58[3] = iVar2 + 4;\n  aiStack_58[6] = 0;\n  aiStack_58[5] = 0;\n  aiStack_58[4] = 0;\n  aiStack_58[2] = param_1;\n  aiStack_58[1] = param_6;\n  apiStack_68[3] = param_4;\n  apiStack_68[2] = (int *)0x120c70;\n  aiStack_58[0] = param_2;\n  (**(code **)(*param_4 + 100))();\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int **ppiVar5;" (primitive_type "int") (pointer_declarator "**ppiVar5" (* "*") (pointer_declarator "*ppiVar5" (* "*") (identifier "ppiVar5"))) (; ";")) (declaration "int *apiStack_68 [4];" (primitive_type "int") (pointer_declarator "*apiStack_68 [4]" (* "*") (array_declarator "apiStack_68 [4]" (identifier "apiStack_68") ([ "[") (number_literal "4") (] "]"))) (; ";")) (declaration "int aiStack_58 [17];" (primitive_type "int") (array_declarator "aiStack_58 [17]" (identifier "aiStack_58") ([ "[") (number_literal "17") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x120b09;" (assignment_expression "uStack_14 = 0x120b09" (identifier "uStack_14") (= "=") (number_literal "0x120b09")) (; ";")) (expression_statement "piVar3 = (int *)(param_2 + 0x1c);" (assignment_expression "piVar3 = (int *)(param_2 + 0x1c)" (identifier "piVar3") (= "=") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }\n  else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    piVar3 = aiStack_58 + 0xb;\n    piVar4 = aiStack_58;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }\n    piVar3 = aiStack_58 + 7;\n    ppiVar5 = apiStack_68;\n    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }\n    iVar2 = FUN_00120900(param_1);\n    if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }\n  }" ({ "{") (expression_statement "aiStack_58[0xb] = 0;" (assignment_expression "aiStack_58[0xb] = 0" (subscript_expression "aiStack_58[0xb]" (identifier "aiStack_58") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[0xc] = 0x7ffffffd;" (assignment_expression "aiStack_58[0xc] = 0x7ffffffd" (subscript_expression "aiStack_58[0xc]" (identifier "aiStack_58") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0x7ffffffd")) (; ";")) (expression_statement "aiStack_58[0xd] = 0;" (assignment_expression "aiStack_58[0xd] = 0" (subscript_expression "aiStack_58[0xd]" (identifier "aiStack_58") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[0xe] = 0;" (assignment_expression "aiStack_58[0xe] = 0" (subscript_expression "aiStack_58[0xe]" (identifier "aiStack_58") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[7] = 0;" (assignment_expression "aiStack_58[7] = 0" (subscript_expression "aiStack_58[7]" (identifier "aiStack_58") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[8] = 0x7ffffffd;" (assignment_expression "aiStack_58[8] = 0x7ffffffd" (subscript_expression "aiStack_58[8]" (identifier "aiStack_58") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0x7ffffffd")) (; ";")) (expression_statement "aiStack_58[9] = 0;" (assignment_expression "aiStack_58[9] = 0" (subscript_expression "aiStack_58[9]" (identifier "aiStack_58") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[10] = 0;" (assignment_expression "aiStack_58[10] = 0" (subscript_expression "aiStack_58[10]" (identifier "aiStack_58") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = aiStack_58 + 0xb;" (assignment_expression "piVar3 = aiStack_58 + 0xb" (identifier "piVar3") (= "=") (binary_expression "aiStack_58 + 0xb" (identifier "aiStack_58") (+ "+") (number_literal "0xb"))) (; ";")) (expression_statement "piVar4 = aiStack_58;" (assignment_expression "piVar4 = aiStack_58" (identifier "piVar4") (= "=") (identifier "aiStack_58")) (; ";")) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }" (for "for") (( "(") (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *piVar4 = *piVar3;\n      piVar3 = piVar3 + 1;\n      piVar4 = piVar4 + 1;\n    }" ({ "{") (expression_statement "*piVar4 = *piVar3;" (assignment_expression "*piVar4 = *piVar3" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar4 = piVar4 + 1;" (assignment_expression "piVar4 = piVar4 + 1" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar3 = aiStack_58 + 7;" (assignment_expression "piVar3 = aiStack_58 + 7" (identifier "piVar3") (= "=") (binary_expression "aiStack_58 + 7" (identifier "aiStack_58") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "ppiVar5 = apiStack_68;" (assignment_expression "ppiVar5 = apiStack_68" (identifier "ppiVar5") (= "=") (identifier "apiStack_68")) (; ";")) (for_statement "for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }" (for "for") (( "(") (assignment_expression "iVar2 = 4" (identifier "iVar2") (= "=") (number_literal "4")) (; ";") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *ppiVar5 = (int *)*piVar3;\n      piVar3 = piVar3 + 1;\n      ppiVar5 = (int **)((int *)ppiVar5 + 1);\n    }" ({ "{") (expression_statement "*ppiVar5 = (int *)*piVar3;" (assignment_expression "*ppiVar5 = (int *)*piVar3" (pointer_expression "*ppiVar5" (* "*") (identifier "ppiVar5")) (= "=") (cast_expression "(int *)*piVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")))) (; ";")) (expression_statement "piVar3 = piVar3 + 1;" (assignment_expression "piVar3 = piVar3 + 1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 1" (identifier "piVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "ppiVar5 = (int **)((int *)ppiVar5 + 1);" (assignment_expression "ppiVar5 = (int **)((int *)ppiVar5 + 1)" (identifier "ppiVar5") (= "=") (cast_expression "(int **)((int *)ppiVar5 + 1)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int *)ppiVar5 + 1)" (( "(") (binary_expression "(int *)ppiVar5 + 1" (cast_expression "(int *)ppiVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "ppiVar5")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00120900(param_1);" (assignment_expression "iVar2 = FUN_00120900(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00120900(param_1)" (identifier "FUN_00120900") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x1c) != -1) {\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x1c) != -1)" (( "(") (binary_expression "*(int *)(param_2 + 0x1c) != -1" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_00120bfb:\n      aiStack_58[3] = 0xc;\n      aiStack_58[2] = 0x120c09;\n      piVar3 = (int *)FUN_001fb470();\n      *piVar3 = param_3;\n      iVar1 = *(int *)(param_2 + 0x24);\n      piVar3[1] = iVar2;\n      *(int **)(param_2 + 0x24) = piVar3;\n      piVar3[2] = iVar1;\n      goto LAB_00120c1e;\n    }" ({ "{") (labeled_statement "LAB_00120bfb:\n      aiStack_58[3] = 0xc;" (statement_identifier "LAB_00120bfb") (: ":") (expression_statement "aiStack_58[3] = 0xc;" (assignment_expression "aiStack_58[3] = 0xc" (subscript_expression "aiStack_58[3]" (identifier "aiStack_58") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0xc")) (; ";"))) (expression_statement "aiStack_58[2] = 0x120c09;" (assignment_expression "aiStack_58[2] = 0x120c09" (subscript_expression "aiStack_58[2]" (identifier "aiStack_58") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x120c09")) (; ";")) (expression_statement "piVar3 = (int *)FUN_001fb470();" (assignment_expression "piVar3 = (int *)FUN_001fb470()" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_001fb470()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001fb470()" (identifier "FUN_001fb470") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar3 = param_3;" (assignment_expression "*piVar3 = param_3" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x24)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x24)" (* "*") (cast_expression "(int *)(param_2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int **)(param_2 + 0x24) = piVar3;" (assignment_expression "*(int **)(param_2 + 0x24) = piVar3" (pointer_expression "*(int **)(param_2 + 0x24)" (* "*") (cast_expression "(int **)(param_2 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar3")) (; ";")) (expression_statement "piVar3[2] = iVar1;" (assignment_expression "piVar3[2] = iVar1" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (goto_statement "goto LAB_00120c1e;" (goto "goto") (statement_identifier "LAB_00120c1e") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" (else "else") (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x1c);\n    piVar4 = piVar3;\n    while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }\n    if (piVar4[1] != -1) {\n      return;\n    }\nLAB_00120b47:\n    aiStack_58[0xb] = 0;\n    aiStack_58[0xc] = 0x7ffffffd;\n    aiStack_58[0xd] = 0;\n    aiStack_58[0xe] = 0;\n    aiStack_58[7] = 0;\n    aiStack_58[8] = 0x7ffffffd;\n    aiStack_58[9] = 0;\n    aiStack_58[10] = 0;\n    aiStack_58[3] = 0;\n    aiStack_58[2] = 0;\n    aiStack_58[1] = 0x7ffffffd;\n    aiStack_58[0] = 0;\n    apiStack_68[3] = (int *)0x0;\n    apiStack_68[2] = (int *)0x0;\n    apiStack_68[1] = (int *)0x7ffffffd;\n    apiStack_68[0] = (int *)0x0;\n    iVar2 = FUN_00120900(param_1);\n    iVar1 = *(int *)(param_2 + 0x1c);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x1c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "piVar4 = piVar3;" (assignment_expression "piVar4 = piVar3" (identifier "piVar4") (= "=") (identifier "piVar3")) (; ";")) (while_statement "while (param_3 != iVar2) {\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }" (while "while") (parenthesized_expression "(param_3 != iVar2)" (( "(") (binary_expression "param_3 != iVar2" (identifier "param_3") (!= "!=") (identifier "iVar2")) () ")")) (compound_statement "{\n      piVar4 = (int *)piVar4[2];\n      if (piVar4 == (int *)0x0) goto LAB_00120b47;\n      iVar2 = *piVar4;\n    }" ({ "{") (expression_statement "piVar4 = (int *)piVar4[2];" (assignment_expression "piVar4 = (int *)piVar4[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar4 == (int *)0x0) goto LAB_00120b47;" (if "if") (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00120b47;" (goto "goto") (statement_identifier "LAB_00120b47") (; ";"))) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (} "}"))) (if_statement "if (piVar4[1] != -1) {\n      return;\n    }" (if "if") (parenthesized_expression "(piVar4[1] != -1)" (( "(") (binary_expression "piVar4[1] != -1" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00120b47:\n    aiStack_58[0xb] = 0;" (statement_identifier "LAB_00120b47") (: ":") (expression_statement "aiStack_58[0xb] = 0;" (assignment_expression "aiStack_58[0xb] = 0" (subscript_expression "aiStack_58[0xb]" (identifier "aiStack_58") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "aiStack_58[0xc] = 0x7ffffffd;" (assignment_expression "aiStack_58[0xc] = 0x7ffffffd" (subscript_expression "aiStack_58[0xc]" (identifier "aiStack_58") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0x7ffffffd")) (; ";")) (expression_statement "aiStack_58[0xd] = 0;" (assignment_expression "aiStack_58[0xd] = 0" (subscript_expression "aiStack_58[0xd]" (identifier "aiStack_58") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[0xe] = 0;" (assignment_expression "aiStack_58[0xe] = 0" (subscript_expression "aiStack_58[0xe]" (identifier "aiStack_58") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[7] = 0;" (assignment_expression "aiStack_58[7] = 0" (subscript_expression "aiStack_58[7]" (identifier "aiStack_58") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[8] = 0x7ffffffd;" (assignment_expression "aiStack_58[8] = 0x7ffffffd" (subscript_expression "aiStack_58[8]" (identifier "aiStack_58") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0x7ffffffd")) (; ";")) (expression_statement "aiStack_58[9] = 0;" (assignment_expression "aiStack_58[9] = 0" (subscript_expression "aiStack_58[9]" (identifier "aiStack_58") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[10] = 0;" (assignment_expression "aiStack_58[10] = 0" (subscript_expression "aiStack_58[10]" (identifier "aiStack_58") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[3] = 0;" (assignment_expression "aiStack_58[3] = 0" (subscript_expression "aiStack_58[3]" (identifier "aiStack_58") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[2] = 0;" (assignment_expression "aiStack_58[2] = 0" (subscript_expression "aiStack_58[2]" (identifier "aiStack_58") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[1] = 0x7ffffffd;" (assignment_expression "aiStack_58[1] = 0x7ffffffd" (subscript_expression "aiStack_58[1]" (identifier "aiStack_58") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7ffffffd")) (; ";")) (expression_statement "aiStack_58[0] = 0;" (assignment_expression "aiStack_58[0] = 0" (subscript_expression "aiStack_58[0]" (identifier "aiStack_58") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "apiStack_68[3] = (int *)0x0;" (assignment_expression "apiStack_68[3] = (int *)0x0" (subscript_expression "apiStack_68[3]" (identifier "apiStack_68") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "apiStack_68[2] = (int *)0x0;" (assignment_expression "apiStack_68[2] = (int *)0x0" (subscript_expression "apiStack_68[2]" (identifier "apiStack_68") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "apiStack_68[1] = (int *)0x7ffffffd;" (assignment_expression "apiStack_68[1] = (int *)0x7ffffffd" (subscript_expression "apiStack_68[1]" (identifier "apiStack_68") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int *)0x7ffffffd" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x7ffffffd"))) (; ";")) (expression_statement "apiStack_68[0] = (int *)0x0;" (assignment_expression "apiStack_68[0] = (int *)0x0" (subscript_expression "apiStack_68[0]" (identifier "apiStack_68") ([ "[") (number_literal "0") (] "]")) (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar2 = FUN_00120900(param_1);" (assignment_expression "iVar2 = FUN_00120900(param_1)" (identifier "iVar2") (= "=") (call_expression "FUN_00120900(param_1)" (identifier "FUN_00120900") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }\n      piVar3[1] = iVar2;\n      goto LAB_00120c1e;\n    }" ({ "{") (while_statement "while (param_3 != iVar1) {\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }" (while "while") (parenthesized_expression "(param_3 != iVar1)" (( "(") (binary_expression "param_3 != iVar1" (identifier "param_3") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n        piVar3 = (int *)piVar3[2];\n        if (piVar3 == (int *)0x0) goto LAB_00120bfb;\n        iVar1 = *piVar3;\n      }" ({ "{") (expression_statement "piVar3 = (int *)piVar3[2];" (assignment_expression "piVar3 = (int *)piVar3[2]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar3[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00120bfb;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00120bfb;" (goto "goto") (statement_identifier "LAB_00120bfb") (; ";"))) (expression_statement "iVar1 = *piVar3;" (assignment_expression "iVar1 = *piVar3" (identifier "iVar1") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (goto_statement "goto LAB_00120c1e;" (goto "goto") (statement_identifier "LAB_00120c1e") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)(param_2 + 0x1c) = param_3;" (assignment_expression "*(int *)(param_2 + 0x1c) = param_3" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(param_2 + 0x20) = iVar2;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar2" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (labeled_statement "LAB_00120c1e:\n  aiStack_58[6] = 0;" (statement_identifier "LAB_00120c1e") (: ":") (expression_statement "aiStack_58[6] = 0;" (assignment_expression "aiStack_58[6] = 0" (subscript_expression "aiStack_58[6]" (identifier "aiStack_58") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "aiStack_58[5] = 0;" (assignment_expression "aiStack_58[5] = 0" (subscript_expression "aiStack_58[5]" (identifier "aiStack_58") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[4] = 0;" (assignment_expression "aiStack_58[4] = 0" (subscript_expression "aiStack_58[4]" (identifier "aiStack_58") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[2] = param_1;" (assignment_expression "aiStack_58[2] = param_1" (subscript_expression "aiStack_58[2]" (identifier "aiStack_58") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "aiStack_58[1] = param_5;" (assignment_expression "aiStack_58[1] = param_5" (subscript_expression "aiStack_58[1]" (identifier "aiStack_58") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "apiStack_68[3] = param_4;" (assignment_expression "apiStack_68[3] = param_4" (subscript_expression "apiStack_68[3]" (identifier "apiStack_68") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "apiStack_68[2] = (int *)0x120c40;" (assignment_expression "apiStack_68[2] = (int *)0x120c40" (subscript_expression "apiStack_68[2]" (identifier "apiStack_68") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int *)0x120c40" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x120c40"))) (; ";")) (expression_statement "aiStack_58[0] = param_2;" (assignment_expression "aiStack_58[0] = param_2" (subscript_expression "aiStack_58[0]" (identifier "aiStack_58") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "aiStack_58[3] = iVar2;" (assignment_expression "aiStack_58[3] = iVar2" (subscript_expression "aiStack_58[3]" (identifier "aiStack_58") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "(**(code **)(*param_4 + 100))();" (call_expression "(**(code **)(*param_4 + 100))()" (parenthesized_expression "(**(code **)(*param_4 + 100))" (( "(") (pointer_expression "**(code **)(*param_4 + 100)" (* "*") (pointer_expression "*(code **)(*param_4 + 100)" (* "*") (cast_expression "(code **)(*param_4 + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_4 + 100)" (( "(") (binary_expression "*param_4 + 100" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_6 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "aiStack_58[3] = iVar2 + 4;" (assignment_expression "aiStack_58[3] = iVar2 + 4" (subscript_expression "aiStack_58[3]" (identifier "aiStack_58") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "aiStack_58[6] = 0;" (assignment_expression "aiStack_58[6] = 0" (subscript_expression "aiStack_58[6]" (identifier "aiStack_58") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[5] = 0;" (assignment_expression "aiStack_58[5] = 0" (subscript_expression "aiStack_58[5]" (identifier "aiStack_58") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[4] = 0;" (assignment_expression "aiStack_58[4] = 0" (subscript_expression "aiStack_58[4]" (identifier "aiStack_58") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "aiStack_58[2] = param_1;" (assignment_expression "aiStack_58[2] = param_1" (subscript_expression "aiStack_58[2]" (identifier "aiStack_58") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "aiStack_58[1] = param_6;" (assignment_expression "aiStack_58[1] = param_6" (subscript_expression "aiStack_58[1]" (identifier "aiStack_58") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "apiStack_68[3] = param_4;" (assignment_expression "apiStack_68[3] = param_4" (subscript_expression "apiStack_68[3]" (identifier "apiStack_68") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "apiStack_68[2] = (int *)0x120c70;" (assignment_expression "apiStack_68[2] = (int *)0x120c70" (subscript_expression "apiStack_68[2]" (identifier "apiStack_68") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int *)0x120c70" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x120c70"))) (; ";")) (expression_statement "aiStack_58[0] = param_2;" (assignment_expression "aiStack_58[0] = param_2" (subscript_expression "aiStack_58[0]" (identifier "aiStack_58") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "(**(code **)(*param_4 + 100))();" (call_expression "(**(code **)(*param_4 + 100))()" (parenthesized_expression "(**(code **)(*param_4 + 100))" (( "(") (pointer_expression "**(code **)(*param_4 + 100)" (* "*") (pointer_expression "*(code **)(*param_4 + 100)" (* "*") (cast_expression "(code **)(*param_4 + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_4 + 100)" (( "(") (binary_expression "*param_4 + 100" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void add_global_pair_with_rel(Output_data_got<32,_true> * this, Symbol
   * gsym, uint got_type, Output_data_reloc_generic * rel_dyn, uint r_type_1, uint r_type_2) */

void __thiscall
gold::Output_data_got<32,_true>::add_global_pair_with_rel
          (Output_data_got<32,_true> *this,Symbol *gsym,type_2 var_8,
          Output_data_reloc_generic *rel_dyn,type_2 r_type_1,type_2 var_13)

{
  type_2 var_12;
  type_1 got_entry_1;
  type_1 got_entry_2;
  type_2 var_9;
  type_3 *var_10;
  int var_3;
  type_3 *var_1;
  type_4 *var_4;
  type_4 *var_5;
  type_4 in_stack_ffffff98;
  type_4 in_stack_ffffff9c;
  type_4 in_stack_ffffffa0;
  type_4 in_stack_ffffffa4;
  type_4 in_stack_ffffffa8;
  type_4 in_stack_ffffffac;
  type_4 in_stack_ffffffb0;
  type_4 in_stack_ffffffb4;
  type_4 var_2 [10];
  type_4 uStack_14;
  
  uStack_14 = 0x120b09;
  var_1 = &gsym->got_offsets_;
  if (var_1 == (type_3 *)0x0) {
    var_2[4] = 0;
    var_2[5] = 0x7ffffffd;
    var_2[6] = 0;
    var_2[7] = 0;
    var_2[0] = 0;
    var_2[1] = 0x7ffffffd;
    var_2[2] = 0;
    var_2[3] = 0;
    var_4 = var_2 + 4;
    var_5 = (type_4 *)&stack0xffffffa8;
    for (var_3 = 4; var_3 != 0; var_3 = var_3 + -1) {
      *var_5 = *var_4;
      var_4 = var_4 + 1;
      var_5 = var_5 + 1;
    }
    var_4 = var_2;
    var_5 = (type_4 *)&stack0xffffff98;
    for (var_3 = 4; var_3 != 0; var_3 = var_3 + -1) {
      *var_5 = *var_4;
      var_4 = var_4 + 1;
      var_5 = var_5 + 1;
    }
    got_entry_1._4_4_ = in_stack_ffffff9c;
    got_entry_1.u_ = (type_5)in_stack_ffffff98;
    got_entry_1.addend_._0_4_ = in_stack_ffffffa0;
    got_entry_1.addend_._4_4_ = in_stack_ffffffa4;
    got_entry_2._4_4_ = in_stack_ffffffac;
    got_entry_2.u_ = (type_5)in_stack_ffffffa8;
    got_entry_2.addend_._0_4_ = in_stack_ffffffb0;
    got_entry_2.addend_._4_4_ = in_stack_ffffffb4;
    var_9 = var_6(this,got_entry_1,got_entry_2);
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {
LAB_00120bfb:
      var_10 = (type_3 *)var_7(0xc);
      var_10->got_type_ = var_8;
      var_1 = (gsym->got_offsets_).got_next_;
      var_10->got_offset_ = var_9;
      (gsym->got_offsets_).got_next_ = var_10;
      var_10->got_next_ = var_1;
      goto LAB_00120c1e;
    }
  }
  else {
    var_9 = (gsym->got_offsets_).got_type_;
    var_10 = var_1;
    while (var_8 != var_9) {
      var_10 = var_10->got_next_;
      if (var_10 == (type_3 *)0x0) goto LAB_00120b47;
      var_9 = var_10->got_type_;
    }
    if (var_10->got_offset_ != 0xffffffff) {
      return;
    }
LAB_00120b47:
    var_2[4] = 0;
    var_2[5] = 0x7ffffffd;
    var_2[6] = 0;
    var_2[7] = 0;
    var_2[0] = 0;
    var_2[1] = 0x7ffffffd;
    var_2[2] = 0;
    var_2[3] = 0;
    var_9 = var_6(this,(type_1)var_11(0x7ffffffd00000000),
                               (type_1)var_11(0x7ffffffd00000000));
    var_12 = (gsym->got_offsets_).got_type_;
    if (var_12 != 0xffffffff) {
      while (var_8 != var_12) {
        var_1 = var_1->got_next_;
        if (var_1 == (type_3 *)0x0) goto LAB_00120bfb;
        var_12 = var_1->got_type_;
      }
      var_1->got_offset_ = var_9;
      goto LAB_00120c1e;
    }
  }
  (gsym->got_offsets_).got_type_ = var_8;
  (gsym->got_offsets_).got_offset_ = var_9;
LAB_00120c1e:
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])();
  if (var_13 == 0) {
    return;
  }
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])();
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 param_1,int param_2,int param_3,int *param_4,undefined4 param_5,
                 int param_6)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  int **ppiVar5;
  int *apiStack_68 [4];
  int aiStack_58 [17];
  undefined4 uStack_14;
  
  uStack_14 = 0x120b09;
  piVar3 = (int *)(param_2 + 0x1c);
  if (piVar3 == (int *)0x0) {
    aiStack_58[0xb] = 0;
    aiStack_58[0xc] = 0x7ffffffd;
    aiStack_58[0xd] = 0;
    aiStack_58[0xe] = 0;
    aiStack_58[7] = 0;
    aiStack_58[8] = 0x7ffffffd;
    aiStack_58[9] = 0;
    aiStack_58[10] = 0;
    piVar3 = aiStack_58 + 0xb;
    piVar4 = aiStack_58;
    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
      *piVar4 = *piVar3;
      piVar3 = piVar3 + 1;
      piVar4 = piVar4 + 1;
    }
    piVar3 = aiStack_58 + 7;
    ppiVar5 = apiStack_68;
    for (iVar2 = 4; iVar2 != 0; iVar2 = iVar2 + -1) {
      *ppiVar5 = (int *)*piVar3;
      piVar3 = piVar3 + 1;
      ppiVar5 = (int **)((int *)ppiVar5 + 1);
    }
    iVar2 = FUN_00120900(param_1);
    if (*(int *)(param_2 + 0x1c) != -1) {
LAB_00120bfb:
      aiStack_58[3] = 0xc;
      aiStack_58[2] = 0x120c09;
      piVar3 = (int *)FUN_001fb470();
      *piVar3 = param_3;
      iVar1 = *(int *)(param_2 + 0x24);
      piVar3[1] = iVar2;
      *(int **)(param_2 + 0x24) = piVar3;
      piVar3[2] = iVar1;
      goto LAB_00120c1e;
    }
  }
  else {
    iVar2 = *(int *)(param_2 + 0x1c);
    piVar4 = piVar3;
    while (param_3 != iVar2) {
      piVar4 = (int *)piVar4[2];
      if (piVar4 == (int *)0x0) goto LAB_00120b47;
      iVar2 = *piVar4;
    }
    if (piVar4[1] != -1) {
      return;
    }
LAB_00120b47:
    aiStack_58[0xb] = 0;
    aiStack_58[0xc] = 0x7ffffffd;
    aiStack_58[0xd] = 0;
    aiStack_58[0xe] = 0;
    aiStack_58[7] = 0;
    aiStack_58[8] = 0x7ffffffd;
    aiStack_58[9] = 0;
    aiStack_58[10] = 0;
    aiStack_58[3] = 0;
    aiStack_58[2] = 0;
    aiStack_58[1] = 0x7ffffffd;
    aiStack_58[0] = 0;
    apiStack_68[3] = (int *)0x0;
    apiStack_68[2] = (int *)0x0;
    apiStack_68[1] = (int *)0x7ffffffd;
    apiStack_68[0] = (int *)0x0;
    iVar2 = FUN_00120900(param_1);
    iVar1 = *(int *)(param_2 + 0x1c);
    if (iVar1 != -1) {
      while (param_3 != iVar1) {
        piVar3 = (int *)piVar3[2];
        if (piVar3 == (int *)0x0) goto LAB_00120bfb;
        iVar1 = *piVar3;
      }
      piVar3[1] = iVar2;
      goto LAB_00120c1e;
    }
  }
  *(int *)(param_2 + 0x1c) = param_3;
  *(int *)(param_2 + 0x20) = iVar2;
LAB_00120c1e:
  aiStack_58[6] = 0;
  aiStack_58[5] = 0;
  aiStack_58[4] = 0;
  aiStack_58[2] = param_1;
  aiStack_58[1] = param_5;
  apiStack_68[3] = param_4;
  apiStack_68[2] = (int *)0x120c40;
  aiStack_58[0] = param_2;
  aiStack_58[3] = iVar2;
  (**(code **)(*param_4 + 100))();
  if (param_6 == 0) {
    return;
  }
  aiStack_58[3] = iVar2 + 4;
  aiStack_58[6] = 0;
  aiStack_58[5] = 0;
  aiStack_58[4] = 0;
  aiStack_58[2] = param_1;
  aiStack_58[1] = param_6;
  apiStack_68[3] = param_4;
  apiStack_68[2] = (int *)0x120c70;
  aiStack_58[0] = param_2;
  (**(code **)(*param_4 + 100))();
  return;
}

