
/* DWARF original prototype: void add_global_pair_with_rel(Output_data_got<64,_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<64,_true>::add_global_pair_with_rel
          (Output_data_got<64,_true> *this,Symbol *gsym,uint got_type,
          Output_data_reloc_generic *rel_dyn,uint r_type_1,uint r_type_2)

{
  uint uVar1;
  uint uVar2;
  Got_offset_list *pGVar3;
  Got_offset_list *pGVar4;
  undefined4 uStack_6c;
  undefined4 uStack_4c;
  
  pGVar4 = &gsym->got_offsets_;
  if (pGVar4 == (Got_offset_list *)0x0) {
    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),
                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {
LAB_002133ee:
      pGVar3 = (Got_offset_list *)operator_new(0x10);
      pGVar4 = (gsym->got_offsets_).got_next_;
      pGVar3->got_type_ = got_type;
      pGVar3->got_offset_ = uVar2;
      pGVar3->got_next_ = pGVar4;
      (gsym->got_offsets_).got_next_ = pGVar3;
      goto LAB_0021341e;
    }
  }
  else {
    uVar2 = (gsym->got_offsets_).got_type_;
    pGVar3 = pGVar4;
    while (got_type != uVar2) {
      pGVar3 = pGVar3->got_next_;
      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00213341;
      uVar2 = pGVar3->got_type_;
    }
    if (pGVar3->got_offset_ != 0xffffffff) {
      return;
    }
LAB_00213341:
    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),
                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));
    uVar1 = (gsym->got_offsets_).got_type_;
    if (uVar1 != 0xffffffff) {
      while (got_type != uVar1) {
        pGVar4 = pGVar4->got_next_;
        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;
        uVar1 = pGVar4->got_type_;
      }
      pGVar4->got_offset_ = uVar2;
      goto LAB_0021341e;
    }
  }
  (gsym->got_offsets_).got_type_ = got_type;
  (gsym->got_offsets_).got_offset_ = uVar2;
LAB_0021341e:
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_1,this,(ulong)uVar2,0);
  if (r_type_2 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_2,this,(ulong)(uVar2 + 8),0);
  return;
}



void FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,
                 int param_6)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = (int *)(param_2 + 0x28);
  if (piVar5 == (int *)0x0) {
    iVar4 = FUN_00213120();
    if (*(int *)(param_2 + 0x28) != -1) {
LAB_002133ee:
      piVar5 = (int *)FUN_002d94a0(0x10);
      uVar3 = *(undefined8 *)(param_2 + 0x30);
      *piVar5 = param_3;
      piVar5[1] = iVar4;
      *(undefined8 *)(piVar5 + 2) = uVar3;
      *(int **)(param_2 + 0x30) = piVar5;
      goto LAB_0021341e;
    }
  }
  else {
    iVar4 = *(int *)(param_2 + 0x28);
    piVar2 = piVar5;
    while (param_3 != iVar4) {
      piVar2 = *(int **)(piVar2 + 2);
      if (piVar2 == (int *)0x0) goto LAB_00213341;
      iVar4 = *piVar2;
    }
    if (piVar2[1] != -1) {
      return;
    }
LAB_00213341:
    iVar4 = FUN_00213120(param_1);
    iVar1 = *(int *)(param_2 + 0x28);
    if (iVar1 != -1) {
      while (param_3 != iVar1) {
        piVar5 = *(int **)(piVar5 + 2);
        if (piVar5 == (int *)0x0) goto LAB_002133ee;
        iVar1 = *piVar5;
      }
      piVar5[1] = iVar4;
      goto LAB_0021341e;
    }
  }
  *(int *)(param_2 + 0x28) = param_3;
  *(int *)(param_2 + 0x2c) = iVar4;
LAB_0021341e:
  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);
  if (param_6 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);
  return;
}


PUSH R15
MOV R15,RDI
PUSH R14
MOV R14D,R9D
PUSH R13
MOV R13,RCX
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV EBX,EDX
MOV EDX,R8D
SUB RSP,0x58
ADD RBP,0x28
JZ 0x00213474
MOV RAX,RBP
CMP EBX,dword ptr [RSI + 0x28]
JNZ 0x00213338
JMP 0x002133c0
CMP EBX,dword ptr [RAX]
JZ 0x002133c0
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JNZ 0x00213330
MOV dword ptr [RSP + 0x8],EDX
MOV RDI,R15
MOV qword ptr [RSP + 0x40],0x0
MOV qword ptr [RSP + 0x30],0x0
MOV dword ptr [RSP + 0x38],0x7ffffffd
MOV qword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x18],0x7ffffffd
PUSH qword ptr [RSP + 0x40]
PUSH qword ptr [RSP + 0x40]
PUSH 0x0
PUSH qword ptr [RSP + 0x38]
PUSH qword ptr [RSP + 0x38]
PUSH 0x0
CALL 0x00213120
ADD RSP,0x30
MOV EDX,dword ptr [RSP + 0x8]
MOV R10D,EAX
MOV EAX,dword ptr [R12 + 0x28]
CMP EAX,-0x1
JZ 0x002134e0
CMP EBX,EAX
JNZ 0x002133e5
NOP word ptr [RAX + RAX*0x1]
MOV dword ptr [RBP + 0x4],R10D
JMP 0x0021341e
CMP dword ptr [RAX + 0x4],-0x1
JZ 0x00213341
ADD RSP,0x58
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CMP EBX,dword ptr [RBP]
JZ 0x002133b8
MOV RBP,qword ptr [RBP + 0x8]
TEST RBP,RBP
JNZ 0x002133e0
MOV EDI,0x10
MOV dword ptr [RSP + 0xc],EDX
MOV dword ptr [RSP + 0x8],R10D
CALL 0x002d94a0
MOV RCX,qword ptr [R12 + 0x30]
MOV R10D,dword ptr [RSP + 0x8]
MOV dword ptr [RAX],EBX
MOV EDX,dword ptr [RSP + 0xc]
MOV dword ptr [RAX + 0x4],R10D
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [R12 + 0x30],RAX
MOV RAX,qword ptr [R13]
XOR R9D,R9D
MOV R8D,R10D
MOV dword ptr [RSP + 0x8],R10D
MOV RCX,R15
MOV RSI,R12
MOV RDI,R13
CALL qword ptr [RAX + 0xc8]
TEST R14D,R14D
JZ 0x002133ca
MOV RAX,qword ptr [R13]
MOV R10D,dword ptr [RSP + 0x8]
MOV RCX,R15
MOV EDX,R14D
MOV RSI,R12
MOV RDI,R13
XOR R9D,R9D
MOV RAX,qword ptr [RAX + 0xc8]
ADD RSP,0x58
LEA R8D,[R10 + 0x8]
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
JMP RAX
MOV dword ptr [RSP + 0x8],R8D
MOV qword ptr [RSP + 0x40],0x0
MOV qword ptr [RSP + 0x30],0x0
MOV dword ptr [RSP + 0x38],0x7ffffffd
MOV qword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x10],0x0
MOV dword ptr [RSP + 0x18],0x7ffffffd
PUSH qword ptr [RSP + 0x40]
PUSH qword ptr [RSP + 0x40]
PUSH 0x0
PUSH qword ptr [RSP + 0x38]
PUSH qword ptr [RSP + 0x38]
PUSH 0x0
CALL 0x00213120
ADD RSP,0x30
CMP dword ptr [R12 + 0x28],-0x1
MOV EDX,dword ptr [RSP + 0x8]
MOV R10D,EAX
JNZ 0x002133ee
NOP dword ptr [RAX]
MOV dword ptr [R12 + 0x28],EBX
MOV dword ptr [R12 + 0x2c],R10D
JMP 0x0021341e
(translation_unit "void FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}\n\n" (function_definition "void FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}" primitive_type (function_declarator "FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long *param_4" (sized_type_specifier "long" long) (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 *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)(param_2 + 0x28);" (assignment_expression "piVar5 = (int *)(param_2 + 0x28)" identifier = (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }" { (expression_statement "iVar4 = FUN_00213120();" (assignment_expression "iVar4 = FUN_00213120()" identifier = (call_expression "FUN_00213120()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x28) != -1)" ( (binary_expression "*(int *)(param_2 + 0x28) != -1" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }" { (labeled_statement "LAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_002d94a0(0x10);" (assignment_expression "piVar5 = (int *)FUN_002d94a0(0x10)" identifier = (cast_expression "(int *)FUN_002d94a0(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d94a0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;)) (expression_statement "uVar3 = *(undefined8 *)(param_2 + 0x30);" (assignment_expression "uVar3 = *(undefined8 *)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_2 + 0x30)" * (cast_expression "(undefined8 *)(param_2 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 *)(piVar5 + 2) = uVar3;" (assignment_expression "*(undefined8 *)(piVar5 + 2) = uVar3" (pointer_expression "*(undefined8 *)(piVar5 + 2)" * (cast_expression "(undefined8 *)(piVar5 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x30) = piVar5;" (assignment_expression "*(int **)(param_2 + 0x30) = piVar5" (pointer_expression "*(int **)(param_2 + 0x30)" * (cast_expression "(int **)(param_2 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_0021341e;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" else (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = piVar5;" (assignment_expression "piVar2 = piVar5" identifier = identifier) ;) (while_statement "while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }" while (parenthesized_expression "(param_3 != iVar4)" ( (binary_expression "param_3 != iVar4" identifier != identifier) )) (compound_statement "{\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }" { (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" identifier = (pointer_expression "*(int **)(piVar2 + 2)" * (cast_expression "(int **)(piVar2 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) goto LAB_00213341;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00213341;" goto statement_identifier ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (if_statement "if (piVar2[1] != -1) {\n      return;\n    }" if (parenthesized_expression "(piVar2[1] != -1)" ( (binary_expression "piVar2[1] != -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00213341:\n    iVar4 = FUN_00213120(param_1);" statement_identifier : (expression_statement "iVar4 = FUN_00213120(param_1);" (assignment_expression "iVar4 = FUN_00213120(param_1)" identifier = (call_expression "FUN_00213120(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "iVar1 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }" { (while_statement "while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }" while (parenthesized_expression "(param_3 != iVar1)" ( (binary_expression "param_3 != iVar1" identifier != identifier) )) (compound_statement "{\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }" { (expression_statement "piVar5 = *(int **)(piVar5 + 2);" (assignment_expression "piVar5 = *(int **)(piVar5 + 2)" identifier = (pointer_expression "*(int **)(piVar5 + 2)" * (cast_expression "(int **)(piVar5 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) goto LAB_002133ee;" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_002133ee;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_0021341e;" goto statement_identifier ;) })) }))) (expression_statement "*(int *)(param_2 + 0x28) = param_3;" (assignment_expression "*(int *)(param_2 + 0x28) = param_3" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x2c) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x2c) = iVar4" (pointer_expression "*(int *)(param_2 + 0x2c)" * (cast_expression "(int *)(param_2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" statement_identifier : (expression_statement "(**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" (call_expression "(**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0)" (parenthesized_expression "(**(code **)(*param_4 + 200))" ( (pointer_expression "**(code **)(*param_4 + 200)" * (pointer_expression "*(code **)(*param_4 + 200)" * (cast_expression "(code **)(*param_4 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 200)" ( (binary_expression "*param_4 + 200" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4,param_2,param_5,param_1,iVar4,0)" ( identifier , identifier , identifier , identifier , identifier , number_literal ))) ;)) (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 ;) })) comment comment (expression_statement "(**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);" (call_expression "(**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0)" (parenthesized_expression "(**(code **)(*param_4 + 200))" ( (pointer_expression "**(code **)(*param_4 + 200)" * (pointer_expression "*(code **)(*param_4 + 200)" * (cast_expression "(code **)(*param_4 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 200)" ( (binary_expression "*param_4 + 200" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4,param_2,param_6,param_1,iVar4 + 8,0)" ( identifier , identifier , identifier , identifier , (binary_expression "iVar4 + 8" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_global_pair_with_rel(Output_data_got<64,_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<64,_true>::add_global_pair_with_rel\n          (Output_data_got<64,_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  uint uVar2;\n  Got_offset_list *pGVar3;\n  Got_offset_list *pGVar4;\n  undefined4 uStack_6c;\n  undefined4 uStack_4c;\n  \n  pGVar4 = &gsym->got_offsets_;\n  if (pGVar4 == (Got_offset_list *)0x0) {\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_002133ee:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00213341;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00213341:\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_0021341e;\n    }\n  }\n  (gsym->got_offsets_).got_type_ = got_type;\n  (gsym->got_offsets_).got_offset_ = uVar2;\nLAB_0021341e:\n  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_1,this,(ulong)uVar2,0);\n  if (r_type_2 == 0) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_2,this,(ulong)(uVar2 + 8),0);\n  return;\n}\n\n" comment (declaration "void __thiscall\ngold::Output_data_got<64,_true>::add_global_pair_with_rel\n          (Output_data_got<64,_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 "<64" < number_literal) , (ERROR "_true>::add_global_pair_with_rel\n          (Output_data_got<64,_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<64,_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<64,_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 "<64" < 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 "uint uVar2;" type_identifier identifier ;) (declaration "Got_offset_list *pGVar3;" type_identifier (pointer_declarator "*pGVar3" * identifier) ;) (declaration "Got_offset_list *pGVar4;" type_identifier (pointer_declarator "*pGVar4" * identifier) ;) (declaration "undefined4 uStack_6c;" type_identifier identifier ;) (declaration "undefined4 uStack_4c;" type_identifier identifier ;) (expression_statement "pGVar4 = &gsym->got_offsets_;" (assignment_expression "pGVar4 = &gsym->got_offsets_" identifier = (pointer_expression "&gsym->got_offsets_" & (field_expression "gsym->got_offsets_" identifier -> field_identifier))) ;) (if_statement "if (pGVar4 == (Got_offset_list *)0x0) {\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_002133ee:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00213341;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00213341:\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_0021341e;\n    }\n  }" if (parenthesized_expression "(pGVar4 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar4 == (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    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_002133ee:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      goto LAB_0021341e;\n    }\n  }" { (expression_statement "uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));" (assignment_expression "uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40))" identifier = (call_expression "add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40))" identifier (argument_list "(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40))" ( identifier , (call_expression "(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40)" (parenthesized_expression "(Got_entry)" ( identifier )) (argument_list "(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40)" ( (binary_expression "ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40" (call_expression "ZEXT824(CONCAT44(uStack_6c,0x7ffffffd))" identifier (argument_list "(CONCAT44(uStack_6c,0x7ffffffd))" ( (call_expression "CONCAT44(uStack_6c,0x7ffffffd)" identifier (argument_list "(uStack_6c,0x7ffffffd)" ( identifier , number_literal ))) ))) << number_literal) ))) , (call_expression "(Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40)" (parenthesized_expression "(Got_entry)" ( identifier )) (argument_list "(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40)" ( (binary_expression "ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40" (call_expression "ZEXT824(CONCAT44(uStack_4c,0x7ffffffd))" identifier (argument_list "(CONCAT44(uStack_4c,0x7ffffffd))" ( (call_expression "CONCAT44(uStack_4c,0x7ffffffd)" identifier (argument_list "(uStack_4c,0x7ffffffd)" ( identifier , number_literal ))) ))) << number_literal) ))) )))) ;) (if_statement "if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_002133ee:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      goto LAB_0021341e;\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_002133ee:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      pGVar3->got_type_ = got_type;\n      pGVar3->got_offset_ = uVar2;\n      pGVar3->got_next_ = pGVar4;\n      (gsym->got_offsets_).got_next_ = pGVar3;\n      goto LAB_0021341e;\n    }" { (labeled_statement "LAB_002133ee:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);" statement_identifier : (expression_statement "pGVar3 = (Got_offset_list *)operator_new(0x10);" (assignment_expression "pGVar3 = (Got_offset_list *)operator_new(0x10)" identifier = (cast_expression "(Got_offset_list *)operator_new(0x10)" ( (type_descriptor "Got_offset_list *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;)) (expression_statement "pGVar4 = (gsym->got_offsets_).got_next_;" (assignment_expression "pGVar4 = (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_type_ = got_type;" (assignment_expression "pGVar3->got_type_ = got_type" (field_expression "pGVar3->got_type_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar3->got_offset_ = uVar2;" (assignment_expression "pGVar3->got_offset_ = uVar2" (field_expression "pGVar3->got_offset_" identifier -> field_identifier) = identifier) ;) (expression_statement "pGVar3->got_next_ = pGVar4;" (assignment_expression "pGVar3->got_next_ = pGVar4" (field_expression "pGVar3->got_next_" 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) ;) (goto_statement "goto LAB_0021341e;" goto statement_identifier ;) })) }) (else_clause "else {\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00213341;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00213341:\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_0021341e;\n    }\n  }" else (compound_statement "{\n    uVar2 = (gsym->got_offsets_).got_type_;\n    pGVar3 = pGVar4;\n    while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00213341;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_00213341:\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));\n    uVar1 = (gsym->got_offsets_).got_type_;\n    if (uVar1 != 0xffffffff) {\n      while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_0021341e;\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 = pGVar4;" (assignment_expression "pGVar3 = pGVar4" identifier = identifier) ;) (while_statement "while (got_type != uVar2) {\n      pGVar3 = pGVar3->got_next_;\n      if (pGVar3 == (Got_offset_list *)0x0) goto LAB_00213341;\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_00213341;\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_00213341;" 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_00213341;" 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_00213341:\n    uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));" statement_identifier : (expression_statement "uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40));" (assignment_expression "uVar2 = add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40))" identifier = (call_expression "add_got_entry_pair(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40))" identifier (argument_list "(this,(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40),\n                               (Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40))" ( identifier , (call_expression "(Got_entry)(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40)" (parenthesized_expression "(Got_entry)" ( identifier )) (argument_list "(ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40)" ( (binary_expression "ZEXT824(CONCAT44(uStack_6c,0x7ffffffd)) << 0x40" (call_expression "ZEXT824(CONCAT44(uStack_6c,0x7ffffffd))" identifier (argument_list "(CONCAT44(uStack_6c,0x7ffffffd))" ( (call_expression "CONCAT44(uStack_6c,0x7ffffffd)" identifier (argument_list "(uStack_6c,0x7ffffffd)" ( identifier , number_literal ))) ))) << number_literal) ))) , (call_expression "(Got_entry)(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40)" (parenthesized_expression "(Got_entry)" ( identifier )) (argument_list "(ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40)" ( (binary_expression "ZEXT824(CONCAT44(uStack_4c,0x7ffffffd)) << 0x40" (call_expression "ZEXT824(CONCAT44(uStack_4c,0x7ffffffd))" identifier (argument_list "(CONCAT44(uStack_4c,0x7ffffffd))" ( (call_expression "CONCAT44(uStack_4c,0x7ffffffd)" identifier (argument_list "(uStack_4c,0x7ffffffd)" ( identifier , number_literal ))) ))) << 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        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_0021341e;\n    }" if (parenthesized_expression "(uVar1 != 0xffffffff)" ( (binary_expression "uVar1 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n      while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_0021341e;\n    }" { (while_statement "while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }" while (parenthesized_expression "(got_type != uVar1)" ( (binary_expression "got_type != uVar1" identifier != identifier) )) (compound_statement "{\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;\n        uVar1 = pGVar4->got_type_;\n      }" { (expression_statement "pGVar4 = pGVar4->got_next_;" (assignment_expression "pGVar4 = pGVar4->got_next_" identifier = (field_expression "pGVar4->got_next_" identifier -> field_identifier)) ;) (if_statement "if (pGVar4 == (Got_offset_list *)0x0) goto LAB_002133ee;" if (parenthesized_expression "(pGVar4 == (Got_offset_list *)0x0)" ( (binary_expression "pGVar4 == (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_002133ee;" goto statement_identifier ;)) (expression_statement "uVar1 = pGVar4->got_type_;" (assignment_expression "uVar1 = pGVar4->got_type_" identifier = (field_expression "pGVar4->got_type_" identifier -> field_identifier)) ;) })) (expression_statement "pGVar4->got_offset_ = uVar2;" (assignment_expression "pGVar4->got_offset_ = uVar2" (field_expression "pGVar4->got_offset_" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_0021341e;" 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_0021341e:\n  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_1,this,(ulong)uVar2,0);" statement_identifier : (expression_statement "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_1,this,(ulong)uVar2,0);" (call_expression "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_1,this,(ulong)uVar2,0)" (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 "(rel_dyn,gsym,(ulong)r_type_1,this,(ulong)uVar2,0)" ( identifier , identifier , (cast_expression "(ulong)r_type_1" ( (type_descriptor "ulong" type_identifier) ) identifier) , identifier , (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) , number_literal ))) ;)) (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 ;) })) comment comment (expression_statement "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_2,this,(ulong)(uVar2 + 8),0);" (call_expression "(*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.\n    _vptr_Output_data[0x19])(rel_dyn,gsym,(ulong)r_type_2,this,(ulong)(uVar2 + 8),0)" (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 "(rel_dyn,gsym,(ulong)r_type_2,this,(ulong)(uVar2 + 8),0)" ( identifier , identifier , (cast_expression "(ulong)r_type_2" ( (type_descriptor "ulong" type_identifier) ) identifier) , identifier , (call_expression "(ulong)(uVar2 + 8)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar2 + 8)" ( (binary_expression "uVar2 + 8" identifier + number_literal) ))) , number_literal ))) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}\n\n" (function_definition "void FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}" primitive_type (function_declarator "FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "long *param_4" (sized_type_specifier "long" long) (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 *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)(param_2 + 0x28);" (assignment_expression "piVar5 = (int *)(param_2 + 0x28)" identifier = (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }" { (expression_statement "iVar4 = FUN_00213120();" (assignment_expression "iVar4 = FUN_00213120()" identifier = (call_expression "FUN_00213120()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }" if (parenthesized_expression "(*(int *)(param_2 + 0x28) != -1)" ( (binary_expression "*(int *)(param_2 + 0x28) != -1" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }" { (labeled_statement "LAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_002d94a0(0x10);" (assignment_expression "piVar5 = (int *)FUN_002d94a0(0x10)" identifier = (cast_expression "(int *)FUN_002d94a0(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d94a0(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;)) (expression_statement "uVar3 = *(undefined8 *)(param_2 + 0x30);" (assignment_expression "uVar3 = *(undefined8 *)(param_2 + 0x30)" identifier = (pointer_expression "*(undefined8 *)(param_2 + 0x30)" * (cast_expression "(undefined8 *)(param_2 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 *)(piVar5 + 2) = uVar3;" (assignment_expression "*(undefined8 *)(piVar5 + 2) = uVar3" (pointer_expression "*(undefined8 *)(piVar5 + 2)" * (cast_expression "(undefined8 *)(piVar5 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int **)(param_2 + 0x30) = piVar5;" (assignment_expression "*(int **)(param_2 + 0x30) = piVar5" (pointer_expression "*(int **)(param_2 + 0x30)" * (cast_expression "(int **)(param_2 + 0x30)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_0021341e;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" else (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "piVar2 = piVar5;" (assignment_expression "piVar2 = piVar5" identifier = identifier) ;) (while_statement "while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }" while (parenthesized_expression "(param_3 != iVar4)" ( (binary_expression "param_3 != iVar4" identifier != identifier) )) (compound_statement "{\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }" { (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" identifier = (pointer_expression "*(int **)(piVar2 + 2)" * (cast_expression "(int **)(piVar2 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) goto LAB_00213341;" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00213341;" goto statement_identifier ;)) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (if_statement "if (piVar2[1] != -1) {\n      return;\n    }" if (parenthesized_expression "(piVar2[1] != -1)" ( (binary_expression "piVar2[1] != -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_00213341:\n    iVar4 = FUN_00213120(param_1);" statement_identifier : (expression_statement "iVar4 = FUN_00213120(param_1);" (assignment_expression "iVar4 = FUN_00213120(param_1)" identifier = (call_expression "FUN_00213120(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "iVar1 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }" { (while_statement "while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }" while (parenthesized_expression "(param_3 != iVar1)" ( (binary_expression "param_3 != iVar1" identifier != identifier) )) (compound_statement "{\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }" { (expression_statement "piVar5 = *(int **)(piVar5 + 2);" (assignment_expression "piVar5 = *(int **)(piVar5 + 2)" identifier = (pointer_expression "*(int **)(piVar5 + 2)" * (cast_expression "(int **)(piVar5 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 2)" ( (binary_expression "piVar5 + 2" identifier + number_literal) ))))) ;) (if_statement "if (piVar5 == (int *)0x0) goto LAB_002133ee;" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_002133ee;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_0021341e;" goto statement_identifier ;) })) }))) (expression_statement "*(int *)(param_2 + 0x28) = param_3;" (assignment_expression "*(int *)(param_2 + 0x28) = param_3" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_2 + 0x2c) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x2c) = iVar4" (pointer_expression "*(int *)(param_2 + 0x2c)" * (cast_expression "(int *)(param_2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2c)" ( (binary_expression "param_2 + 0x2c" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" statement_identifier : (expression_statement "(**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" (call_expression "(**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0)" (parenthesized_expression "(**(code **)(*param_4 + 200))" ( (pointer_expression "**(code **)(*param_4 + 200)" * (pointer_expression "*(code **)(*param_4 + 200)" * (cast_expression "(code **)(*param_4 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 200)" ( (binary_expression "*param_4 + 200" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4,param_2,param_5,param_1,iVar4,0)" ( identifier , identifier , identifier , identifier , identifier , number_literal ))) ;)) (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 "(**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);" (call_expression "(**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0)" (parenthesized_expression "(**(code **)(*param_4 + 200))" ( (pointer_expression "**(code **)(*param_4 + 200)" * (pointer_expression "*(code **)(*param_4 + 200)" * (cast_expression "(code **)(*param_4 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_4 + 200)" ( (binary_expression "*param_4 + 200" (pointer_expression "*param_4" * identifier) + number_literal) ))))) )) (argument_list "(param_4,param_2,param_6,param_1,iVar4 + 8,0)" ( identifier , identifier , identifier , identifier , (binary_expression "iVar4 + 8" identifier + number_literal) , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 (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 ( IDENT , IDENT , IDENT , IDENT , IDENT , LIT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (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 ( IDENT , IDENT , IDENT , IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002132f0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)" (identifier "FUN_002132f0") (parameter_list "(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5,\n                 int param_6)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "long *param_4" (sized_type_specifier "long" (long "long")) (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 *piVar2;\n  undefined8 uVar3;\n  int iVar4;\n  int *piVar5;\n  \n  piVar5 = (int *)(param_2 + 0x28);\n  if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  if (param_6 == 0) {\n    return;\n  }\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar5 = (int *)(param_2 + 0x28);" (assignment_expression "piVar5 = (int *)(param_2 + 0x28)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }\n  else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar4 = FUN_00213120();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }\n  }" ({ "{") (expression_statement "iVar4 = FUN_00213120();" (assignment_expression "iVar4 = FUN_00213120()" (identifier "iVar4") (= "=") (call_expression "FUN_00213120()" (identifier "FUN_00213120") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x28) != -1) {\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x28) != -1)" (( "(") (binary_expression "*(int *)(param_2 + 0x28) != -1" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);\n      uVar3 = *(undefined8 *)(param_2 + 0x30);\n      *piVar5 = param_3;\n      piVar5[1] = iVar4;\n      *(undefined8 *)(piVar5 + 2) = uVar3;\n      *(int **)(param_2 + 0x30) = piVar5;\n      goto LAB_0021341e;\n    }" ({ "{") (labeled_statement "LAB_002133ee:\n      piVar5 = (int *)FUN_002d94a0(0x10);" (statement_identifier "LAB_002133ee") (: ":") (expression_statement "piVar5 = (int *)FUN_002d94a0(0x10);" (assignment_expression "piVar5 = (int *)FUN_002d94a0(0x10)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_002d94a0(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002d94a0(0x10)" (identifier "FUN_002d94a0") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";"))) (expression_statement "uVar3 = *(undefined8 *)(param_2 + 0x30);" (assignment_expression "uVar3 = *(undefined8 *)(param_2 + 0x30)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined8 *)(param_2 + 0x30)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*piVar5 = param_3;" (assignment_expression "*piVar5 = param_3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined8 *)(piVar5 + 2) = uVar3;" (assignment_expression "*(undefined8 *)(piVar5 + 2) = uVar3" (pointer_expression "*(undefined8 *)(piVar5 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar5 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(int **)(param_2 + 0x30) = piVar5;" (assignment_expression "*(int **)(param_2 + 0x30) = piVar5" (pointer_expression "*(int **)(param_2 + 0x30)" (* "*") (cast_expression "(int **)(param_2 + 0x30)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "piVar5")) (; ";")) (goto_statement "goto LAB_0021341e;" (goto "goto") (statement_identifier "LAB_0021341e") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" (else "else") (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x28);\n    piVar2 = piVar5;\n    while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_00213341:\n    iVar4 = FUN_00213120(param_1);\n    iVar1 = *(int *)(param_2 + 0x28);\n    if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x28)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "piVar2 = piVar5;" (assignment_expression "piVar2 = piVar5" (identifier "piVar2") (= "=") (identifier "piVar5")) (; ";")) (while_statement "while (param_3 != iVar4) {\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }" (while "while") (parenthesized_expression "(param_3 != iVar4)" (( "(") (binary_expression "param_3 != iVar4" (identifier "param_3") (!= "!=") (identifier "iVar4")) () ")")) (compound_statement "{\n      piVar2 = *(int **)(piVar2 + 2);\n      if (piVar2 == (int *)0x0) goto LAB_00213341;\n      iVar4 = *piVar2;\n    }" ({ "{") (expression_statement "piVar2 = *(int **)(piVar2 + 2);" (assignment_expression "piVar2 = *(int **)(piVar2 + 2)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(piVar2 + 2)" (* "*") (cast_expression "(int **)(piVar2 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) goto LAB_00213341;" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00213341;" (goto "goto") (statement_identifier "LAB_00213341") (; ";"))) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (if_statement "if (piVar2[1] != -1) {\n      return;\n    }" (if "if") (parenthesized_expression "(piVar2[1] != -1)" (( "(") (binary_expression "piVar2[1] != -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_00213341:\n    iVar4 = FUN_00213120(param_1);" (statement_identifier "LAB_00213341") (: ":") (expression_statement "iVar4 = FUN_00213120(param_1);" (assignment_expression "iVar4 = FUN_00213120(param_1)" (identifier "iVar4") (= "=") (call_expression "FUN_00213120(param_1)" (identifier "FUN_00213120") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "iVar1 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar1 = *(int *)(param_2 + 0x28)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (iVar1 != -1) {\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_0021341e;\n    }" ({ "{") (while_statement "while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }" (while "while") (parenthesized_expression "(param_3 != iVar1)" (( "(") (binary_expression "param_3 != iVar1" (identifier "param_3") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_002133ee;\n        iVar1 = *piVar5;\n      }" ({ "{") (expression_statement "piVar5 = *(int **)(piVar5 + 2);" (assignment_expression "piVar5 = *(int **)(piVar5 + 2)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(piVar5 + 2)" (* "*") (cast_expression "(int **)(piVar5 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar5 + 2)" (( "(") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) goto LAB_002133ee;" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_002133ee;" (goto "goto") (statement_identifier "LAB_002133ee") (; ";"))) (expression_statement "iVar1 = *piVar5;" (assignment_expression "iVar1 = *piVar5" (identifier "iVar1") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}"))) (expression_statement "piVar5[1] = iVar4;" (assignment_expression "piVar5[1] = iVar4" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (goto_statement "goto LAB_0021341e;" (goto "goto") (statement_identifier "LAB_0021341e") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)(param_2 + 0x28) = param_3;" (assignment_expression "*(int *)(param_2 + 0x28) = param_3" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(param_2 + 0x2c) = iVar4;" (assignment_expression "*(int *)(param_2 + 0x2c) = iVar4" (pointer_expression "*(int *)(param_2 + 0x2c)" (* "*") (cast_expression "(int *)(param_2 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2c)" (( "(") (binary_expression "param_2 + 0x2c" (identifier "param_2") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (labeled_statement "LAB_0021341e:\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" (statement_identifier "LAB_0021341e") (: ":") (expression_statement "(**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" (call_expression "(**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0)" (parenthesized_expression "(**(code **)(*param_4 + 200))" (( "(") (pointer_expression "**(code **)(*param_4 + 200)" (* "*") (pointer_expression "*(code **)(*param_4 + 200)" (* "*") (cast_expression "(code **)(*param_4 + 200)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_4 + 200)" (( "(") (binary_expression "*param_4 + 200" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "200")) () ")"))))) () ")")) (argument_list "(param_4,param_2,param_5,param_1,iVar4,0)" (( "(") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (identifier "param_5") (, ",") (identifier "param_1") (, ",") (identifier "iVar4") (, ",") (number_literal "0") () ")"))) (; ";"))) (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 "(**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);" (call_expression "(**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0)" (parenthesized_expression "(**(code **)(*param_4 + 200))" (( "(") (pointer_expression "**(code **)(*param_4 + 200)" (* "*") (pointer_expression "*(code **)(*param_4 + 200)" (* "*") (cast_expression "(code **)(*param_4 + 200)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_4 + 200)" (( "(") (binary_expression "*param_4 + 200" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (number_literal "200")) () ")"))))) () ")")) (argument_list "(param_4,param_2,param_6,param_1,iVar4 + 8,0)" (( "(") (identifier "param_4") (, ",") (identifier "param_2") (, ",") (identifier "param_6") (, ",") (identifier "param_1") (, ",") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_global_pair_with_rel(Output_data_got<64,_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<64,_true>::add_global_pair_with_rel
          (Output_data_got<64,_true> *this,Symbol *gsym,type_1 var_6,
          Output_data_reloc_generic *rel_dyn,type_1 r_type_1,type_1 var_10)

{
  type_1 var_9;
  type_1 var_7;
  type_2 *var_8;
  type_2 *var_1;
  type_3 uStack_6c;
  type_3 uStack_4c;
  
  var_1 = &gsym->got_offsets_;
  if (var_1 == (type_2 *)0x0) {
    var_7 = var_2(this,(Got_entry)(var_3(var_4(uStack_6c,0x7ffffffd)) << 0x40),
                               (Got_entry)(var_3(var_4(uStack_4c,0x7ffffffd)) << 0x40));
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {
LAB_002133ee:
      var_8 = (type_2 *)var_5(0x10);
      var_1 = (gsym->got_offsets_).got_next_;
      var_8->got_type_ = var_6;
      var_8->got_offset_ = var_7;
      var_8->got_next_ = var_1;
      (gsym->got_offsets_).got_next_ = var_8;
      goto LAB_0021341e;
    }
  }
  else {
    var_7 = (gsym->got_offsets_).got_type_;
    var_8 = var_1;
    while (var_6 != var_7) {
      var_8 = var_8->got_next_;
      if (var_8 == (type_2 *)0x0) goto LAB_00213341;
      var_7 = var_8->got_type_;
    }
    if (var_8->got_offset_ != 0xffffffff) {
      return;
    }
LAB_00213341:
    var_7 = var_2(this,(Got_entry)(var_3(var_4(uStack_6c,0x7ffffffd)) << 0x40),
                               (Got_entry)(var_3(var_4(uStack_4c,0x7ffffffd)) << 0x40));
    var_9 = (gsym->got_offsets_).got_type_;
    if (var_9 != 0xffffffff) {
      while (var_6 != var_9) {
        var_1 = var_1->got_next_;
        if (var_1 == (type_2 *)0x0) goto LAB_002133ee;
        var_9 = var_1->got_type_;
      }
      var_1->got_offset_ = var_7;
      goto LAB_0021341e;
    }
  }
  (gsym->got_offsets_).got_type_ = var_6;
  (gsym->got_offsets_).got_offset_ = var_7;
LAB_0021341e:
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])(rel_dyn,gsym,(type_4)r_type_1,this,(type_4)var_7,0);
  if (var_10 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(rel_dyn->super_Output_section_data_build).super_Output_section_data.super_Output_data.
    _vptr_Output_data[0x19])(rel_dyn,gsym,(type_4)var_10,this,(type_4)(var_7 + 8),0);
  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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (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 (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 (identifier) (identifier) (identifier) (identifier) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (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 (identifier) (identifier) (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (return_statement))))

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

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  int iVar4;
  int *piVar5;
  
  piVar5 = (int *)(param_2 + 0x28);
  if (piVar5 == (int *)0x0) {
    iVar4 = FUN_00213120();
    if (*(int *)(param_2 + 0x28) != -1) {
LAB_002133ee:
      piVar5 = (int *)FUN_002d94a0(0x10);
      uVar3 = *(undefined8 *)(param_2 + 0x30);
      *piVar5 = param_3;
      piVar5[1] = iVar4;
      *(undefined8 *)(piVar5 + 2) = uVar3;
      *(int **)(param_2 + 0x30) = piVar5;
      goto LAB_0021341e;
    }
  }
  else {
    iVar4 = *(int *)(param_2 + 0x28);
    piVar2 = piVar5;
    while (param_3 != iVar4) {
      piVar2 = *(int **)(piVar2 + 2);
      if (piVar2 == (int *)0x0) goto LAB_00213341;
      iVar4 = *piVar2;
    }
    if (piVar2[1] != -1) {
      return;
    }
LAB_00213341:
    iVar4 = FUN_00213120(param_1);
    iVar1 = *(int *)(param_2 + 0x28);
    if (iVar1 != -1) {
      while (param_3 != iVar1) {
        piVar5 = *(int **)(piVar5 + 2);
        if (piVar5 == (int *)0x0) goto LAB_002133ee;
        iVar1 = *piVar5;
      }
      piVar5[1] = iVar4;
      goto LAB_0021341e;
    }
  }
  *(int *)(param_2 + 0x28) = param_3;
  *(int *)(param_2 + 0x2c) = iVar4;
LAB_0021341e:
  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);
  if (param_6 == 0) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x00213472. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*param_4 + 200))(param_4,param_2,param_6,param_1,iVar4 + 8,0);
  return;
}

