
/* DWARF original prototype: void add_global_with_rel(Output_data_got<32,_true> * this, Symbol *
   gsym, uint got_type, Output_data_reloc_generic * rel_dyn, uint r_type) */

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

{
  uint uVar1;
  uint uVar2;
  Got_offset_list *pGVar3;
  Got_offset_list *pGVar4;
  ulong uVar5;
  undefined4 uStack_54;
  undefined4 uStack_4c;
  
  pGVar4 = &gsym->got_offsets_;
  if (pGVar4 == (Got_offset_list *)0x0) {
    uVar2 = add_got_entry(this,(Got_entry)
                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20
                               ));
    uVar5 = (ulong)uVar2;
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {
LAB_001d4696:
      pGVar3 = (Got_offset_list *)operator_new(0x10);
      pGVar4 = (gsym->got_offsets_).got_next_;
      uVar5 = (ulong)uVar2;
      pGVar3->got_type_ = got_type;
      pGVar3->got_offset_ = uVar2;
      pGVar3->got_next_ = pGVar4;
      (gsym->got_offsets_).got_next_ = pGVar3;
      goto LAB_001d46be;
    }
  }
  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_001d4615;
      uVar2 = pGVar3->got_type_;
    }
    if (pGVar3->got_offset_ != 0xffffffff) {
      return;
    }
LAB_001d4615:
    uVar2 = add_got_entry(this,(Got_entry)
                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20
                               ));
    uVar5 = (ulong)uVar2;
    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_001d4696;
        uVar1 = pGVar4->got_type_;
      }
      pGVar4->got_offset_ = uVar2;
      goto LAB_001d46be;
    }
  }
  (gsym->got_offsets_).got_type_ = got_type;
  (gsym->got_offsets_).got_offset_ = (uint)uVar5;
LAB_001d46be:
                    /* WARNING: Could not recover jumptable at 0x001d46e5. 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,this,uVar5,0);
  return;
}



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

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


PUSH R15
MOV R15D,R8D
PUSH R14
MOV R14,RCX
PUSH R13
MOV R13,RDI
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV EBX,EDX
SUB RSP,0x38
ADD RBP,0x28
JZ 0x001d46e7
MOV RAX,RBP
CMP EDX,dword ptr [RSI + 0x28]
JNZ 0x001d460c
JMP 0x001d4670
CMP EBX,dword ptr [RAX]
JZ 0x001d4670
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JNZ 0x001d4608
MOV dword ptr [RSP + 0x18],0x7ffffffd
SUB RSP,0x8
MOV RDI,R13
MOV qword ptr [RSP + 0x28],0x0
MOV dword ptr [RSP + 0x18],0x0
PUSH qword ptr [RSP + 0x28]
PUSH qword ptr [RSP + 0x28]
PUSH qword ptr [RSP + 0x28]
CALL 0x001d41e0
ADD RSP,0x20
MOV R8D,EAX
MOV EAX,dword ptr [R12 + 0x28]
CMP EAX,-0x1
JZ 0x001d4728
CMP EBX,EAX
JNZ 0x001d468d
NOP
MOV dword ptr [RBP + 0x4],R8D
JMP 0x001d46be
CMP dword ptr [RAX + 0x4],-0x1
JZ 0x001d4615
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CMP EBX,dword ptr [RBP]
JZ 0x001d4660
MOV RBP,qword ptr [RBP + 0x8]
TEST RBP,RBP
JNZ 0x001d4688
MOV EDI,0x10
MOV dword ptr [RSP + 0xc],R8D
CALL 0x00275550
MOV RDX,qword ptr [R12 + 0x30]
MOV R8D,dword ptr [RSP + 0xc]
MOV dword ptr [RAX],EBX
MOV dword ptr [RAX + 0x4],R8D
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [R12 + 0x30],RAX
MOV RAX,qword ptr [R14]
MOV RCX,R13
MOV EDX,R15D
MOV RSI,R12
MOV RDI,R14
XOR R9D,R9D
MOV RAX,qword ptr [RAX + 0xc8]
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
JMP RAX
MOV dword ptr [RSP + 0x18],0x7ffffffd
MOV qword ptr [RSP + 0x20],0x0
MOV dword ptr [RSP + 0x10],0x0
PUSH RAX
PUSH qword ptr [RSP + 0x28]
PUSH qword ptr [RSP + 0x28]
PUSH qword ptr [RSP + 0x28]
CALL 0x001d41e0
ADD RSP,0x20
CMP dword ptr [R12 + 0x28],-0x1
MOV R8D,EAX
JNZ 0x001d4696
NOP dword ptr [RAX]
MOV dword ptr [R12 + 0x28],EBX
MOV dword ptr [R12 + 0x2c],R8D
JMP 0x001d46be
(translation_unit "void FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    /* WARNING: Could not recover jumptable at 0x001d46e5. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  return;\n}\n\n" (function_definition "void FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    /* WARNING: Could not recover jumptable at 0x001d46e5. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  return;\n}" primitive_type (function_declarator "FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)" ( (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) ))) (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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    /* WARNING: Could not recover jumptable at 0x001d46e5. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\n    }\n  }" { (expression_statement "iVar4 = FUN_001d41e0();" (assignment_expression "iVar4 = FUN_001d41e0()" identifier = (call_expression "FUN_001d41e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\n    }" { (labeled_statement "LAB_001d4696:\n      piVar5 = (int *)FUN_00275550(0x10);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_00275550(0x10);" (assignment_expression "piVar5 = (int *)FUN_00275550(0x10)" identifier = (cast_expression "(int *)FUN_00275550(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00275550(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_001d46be;" 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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4615;\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_001d4615;\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_001d4615;" 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_001d4615;" 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_001d4615:\n    iVar4 = FUN_001d41e0(param_1);" statement_identifier : (expression_statement "iVar4 = FUN_001d41e0(param_1);" (assignment_expression "iVar4 = FUN_001d41e0(param_1)" identifier = (call_expression "FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }" { (while_statement "while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_001d4696;\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_001d4696;\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_001d4696;" 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_001d4696;" 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_001d46be;" 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_001d46be:\n                    /* WARNING: Could not recover jumptable at 0x001d46e5. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" statement_identifier : comment comment (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 ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_global_with_rel(Output_data_got<32,_true> * this, Symbol *\n   gsym, uint got_type, Output_data_reloc_generic * rel_dyn, uint r_type) */\n\nvoid __thiscall\ngold::Output_data_got<32,_true>::add_global_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type)\n\n{\n  uint uVar1;\n  uint uVar2;\n  Got_offset_list *pGVar3;\n  Got_offset_list *pGVar4;\n  ulong uVar5;\n  undefined4 uStack_54;\n  undefined4 uStack_4c;\n  \n  pGVar4 = &gsym->got_offsets_;\n  if (pGVar4 == (Got_offset_list *)0x0) {\n    uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_001d4696:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      uVar5 = (ulong)uVar2;\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_001d46be;\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_001d4615;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_001d4615:\n    uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\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_001d4696;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_001d46be;\n    }\n  }\n  (gsym->got_offsets_).got_type_ = got_type;\n  (gsym->got_offsets_).got_offset_ = (uint)uVar5;\nLAB_001d46be:\n                    /* WARNING: Could not recover jumptable at 0x001d46e5. 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,this,uVar5,0);\n  return;\n}\n\n" comment (declaration "void __thiscall\ngold::Output_data_got<32,_true>::add_global_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type)\n\n{\n  uint uVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::add_global_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type)\n\n{\n  uint" identifier > : : (function_declarator "add_global_with_rel\n          (Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type)" identifier (parameter_list "(Output_data_got<32,_true> *this,Symbol *gsym,uint got_type,\n          Output_data_reloc_generic *rel_dyn,uint r_type)" ( (parameter_declaration "Output_data_got" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol *gsym" type_identifier (pointer_declarator "*gsym" * identifier)) , (parameter_declaration "uint got_type" type_identifier identifier) , (parameter_declaration "Output_data_reloc_generic *rel_dyn" type_identifier (pointer_declarator "*rel_dyn" * identifier)) , (parameter_declaration "uint r_type" 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 "ulong uVar5;" type_identifier identifier ;) (declaration "undefined4 uStack_54;" 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(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_001d4696:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      uVar5 = (ulong)uVar2;\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_001d46be;\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_001d4615;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_001d4615:\n    uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\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_001d4696;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_001d46be;\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(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\n    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_001d4696:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      uVar5 = (ulong)uVar2;\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_001d46be;\n    }\n  }" { (expression_statement "uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));" (assignment_expression "uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ))" identifier = (call_expression "add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ))" identifier (argument_list "(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ))" ( identifier , (call_expression "(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               )" (parenthesized_expression "(Got_entry)" ( identifier )) (argument_list "(ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               )" ( (binary_expression "ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20" (call_expression "ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54))" identifier (argument_list "(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54))" ( (call_expression "CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)" identifier (argument_list "(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)" ( (call_expression "CONCAT44(uStack_4c,0x7ffffffd)" identifier (argument_list "(uStack_4c,0x7ffffffd)" ( identifier , number_literal ))) , identifier ))) ))) << number_literal) ))) )))) ;) (expression_statement "uVar5 = (ulong)uVar2;" (assignment_expression "uVar5 = (ulong)uVar2" identifier = (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if ((gsym->got_offsets_).got_type_ != 0xffffffff) {\nLAB_001d4696:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      uVar5 = (ulong)uVar2;\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_001d46be;\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_001d4696:\n      pGVar3 = (Got_offset_list *)operator_new(0x10);\n      pGVar4 = (gsym->got_offsets_).got_next_;\n      uVar5 = (ulong)uVar2;\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_001d46be;\n    }" { (labeled_statement "LAB_001d4696:\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 "uVar5 = (ulong)uVar2;" (assignment_expression "uVar5 = (ulong)uVar2" identifier = (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) 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_001d46be;" 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_001d4615;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_001d4615:\n    uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\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_001d4696;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_001d46be;\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_001d4615;\n      uVar2 = pGVar3->got_type_;\n    }\n    if (pGVar3->got_offset_ != 0xffffffff) {\n      return;\n    }\nLAB_001d4615:\n    uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));\n    uVar5 = (ulong)uVar2;\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_001d4696;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_001d46be;\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_001d4615;\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_001d4615;\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_001d4615;" 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_001d4615;" 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_001d4615:\n    uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));" statement_identifier : (expression_statement "uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ));" (assignment_expression "uVar2 = add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ))" identifier = (call_expression "add_got_entry(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ))" identifier (argument_list "(this,(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               ))" ( identifier , (call_expression "(Got_entry)\n                               (ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               )" (parenthesized_expression "(Got_entry)" ( identifier )) (argument_list "(ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20\n                               )" ( (binary_expression "ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)) << 0x20" (call_expression "ZEXT1224(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54))" identifier (argument_list "(CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54))" ( (call_expression "CONCAT84(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)" identifier (argument_list "(CONCAT44(uStack_4c,0x7ffffffd),uStack_54)" ( (call_expression "CONCAT44(uStack_4c,0x7ffffffd)" identifier (argument_list "(uStack_4c,0x7ffffffd)" ( identifier , number_literal ))) , identifier ))) ))) << number_literal) ))) )))) ;)) (expression_statement "uVar5 = (ulong)uVar2;" (assignment_expression "uVar5 = (ulong)uVar2" identifier = (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (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_001d4696;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_001d46be;\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_001d4696;\n        uVar1 = pGVar4->got_type_;\n      }\n      pGVar4->got_offset_ = uVar2;\n      goto LAB_001d46be;\n    }" { (while_statement "while (got_type != uVar1) {\n        pGVar4 = pGVar4->got_next_;\n        if (pGVar4 == (Got_offset_list *)0x0) goto LAB_001d4696;\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_001d4696;\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_001d4696;" 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_001d4696;" 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_001d46be;" 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_ = (uint)uVar5;" (assignment_expression "(gsym->got_offsets_).got_offset_ = (uint)uVar5" (field_expression "(gsym->got_offsets_).got_offset_" (parenthesized_expression "(gsym->got_offsets_)" ( (field_expression "gsym->got_offsets_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (labeled_statement "LAB_001d46be:\n                    /* WARNING: Could not recover jumptable at 0x001d46e5. 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,this,uVar5,0);" statement_identifier : 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,this,uVar5,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,this,uVar5,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,this,uVar5,0)" ( identifier , identifier , (cast_expression "(ulong)r_type" ( (type_descriptor "ulong" type_identifier) ) identifier) , identifier , identifier , number_literal ))) ;)) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  return;\n}\n\n" (function_definition "void FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  return;\n}" primitive_type (function_declarator "FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)" identifier (parameter_list "(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)" ( (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) ))) (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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\n    }\n  }" { (expression_statement "iVar4 = FUN_001d41e0();" (assignment_expression "iVar4 = FUN_001d41e0()" identifier = (call_expression "FUN_001d41e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\n    }" { (labeled_statement "LAB_001d4696:\n      piVar5 = (int *)FUN_00275550(0x10);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_00275550(0x10);" (assignment_expression "piVar5 = (int *)FUN_00275550(0x10)" identifier = (cast_expression "(int *)FUN_00275550(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00275550(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_001d46be;" 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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4615;\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_001d4615;\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_001d4615;" 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_001d4615;" 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_001d4615:\n    iVar4 = FUN_001d41e0(param_1);" statement_identifier : (expression_statement "iVar4 = FUN_001d41e0(param_1);" (assignment_expression "iVar4 = FUN_001d41e0(param_1)" identifier = (call_expression "FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }" { (while_statement "while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_001d4696;\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_001d4696;\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_001d4696;" 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_001d4696;" 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_001d46be;" 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_001d46be:\n                    \n                    \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 ))) ;)) (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) ))) (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 ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001d45d0(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)" (identifier "FUN_001d45d0") (parameter_list "(undefined8 param_1,long param_2,int param_3,long *param_4,undefined4 param_5)" (( "(") (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")) () ")"))) (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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }\n  }\n  *(int *)(param_2 + 0x28) = param_3;\n  *(int *)(param_2 + 0x2c) = iVar4;\nLAB_001d46be:\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d41e0();\n    if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\n    }\n  }" ({ "{") (expression_statement "iVar4 = FUN_001d41e0();" (assignment_expression "iVar4 = FUN_001d41e0()" (identifier "iVar4") (= "=") (call_expression "FUN_001d41e0()" (identifier "FUN_001d41e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x28) != -1) {\nLAB_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\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_001d4696:\n      piVar5 = (int *)FUN_00275550(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_001d46be;\n    }" ({ "{") (labeled_statement "LAB_001d4696:\n      piVar5 = (int *)FUN_00275550(0x10);" (statement_identifier "LAB_001d4696") (: ":") (expression_statement "piVar5 = (int *)FUN_00275550(0x10);" (assignment_expression "piVar5 = (int *)FUN_00275550(0x10)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_00275550(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00275550(0x10)" (identifier "FUN_00275550") (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_001d46be;" (goto "goto") (statement_identifier "LAB_001d46be") (; ";")) (} "}"))) (} "}")) (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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4615;\n      iVar4 = *piVar2;\n    }\n    if (piVar2[1] != -1) {\n      return;\n    }\nLAB_001d4615:\n    iVar4 = FUN_001d41e0(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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4615;\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_001d4615;\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_001d4615;" (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_001d4615;" (goto "goto") (statement_identifier "LAB_001d4615") (; ";"))) (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_001d4615:\n    iVar4 = FUN_001d41e0(param_1);" (statement_identifier "LAB_001d4615") (: ":") (expression_statement "iVar4 = FUN_001d41e0(param_1);" (assignment_expression "iVar4 = FUN_001d41e0(param_1)" (identifier "iVar4") (= "=") (call_expression "FUN_001d41e0(param_1)" (identifier "FUN_001d41e0") (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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\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_001d4696;\n        iVar1 = *piVar5;\n      }\n      piVar5[1] = iVar4;\n      goto LAB_001d46be;\n    }" ({ "{") (while_statement "while (param_3 != iVar1) {\n        piVar5 = *(int **)(piVar5 + 2);\n        if (piVar5 == (int *)0x0) goto LAB_001d4696;\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_001d4696;\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_001d4696;" (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_001d4696;" (goto "goto") (statement_identifier "LAB_001d4696") (; ";"))) (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_001d46be;" (goto "goto") (statement_identifier "LAB_001d46be") (; ";")) (} "}"))) (} "}")))) (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_001d46be:\n                    \n                    \n  (**(code **)(*param_4 + 200))(param_4,param_2,param_5,param_1,iVar4,0);" (statement_identifier "LAB_001d46be") (: ":") (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") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_global_with_rel(Output_data_got<32,_true> * this, Symbol *
   gsym, uint got_type, Output_data_reloc_generic * rel_dyn, uint r_type) */

void __thiscall
gold::Output_data_got<32,_true>::add_global_with_rel
          (Output_data_got<32,_true> *this,Symbol *gsym,type_1 var_7,
          Output_data_reloc_generic *rel_dyn,type_1 r_type)

{
  type_1 var_10;
  type_1 var_8;
  type_2 *var_9;
  type_2 *var_1;
  type_3 uVar5;
  type_4 uStack_54;
  type_4 uStack_4c;
  
  var_1 = &gsym->got_offsets_;
  if (var_1 == (type_2 *)0x0) {
    var_8 = var_2(this,(Got_entry)
                               (var_3(var_4(var_5(uStack_4c,0x7ffffffd),uStack_54)) << 0x20
                               ));
    uVar5 = (type_3)var_8;
    if ((gsym->got_offsets_).got_type_ != 0xffffffff) {
LAB_001d4696:
      var_9 = (type_2 *)var_6(0x10);
      var_1 = (gsym->got_offsets_).got_next_;
      uVar5 = (type_3)var_8;
      var_9->got_type_ = var_7;
      var_9->got_offset_ = var_8;
      var_9->got_next_ = var_1;
      (gsym->got_offsets_).got_next_ = var_9;
      goto LAB_001d46be;
    }
  }
  else {
    var_8 = (gsym->got_offsets_).got_type_;
    var_9 = var_1;
    while (var_7 != var_8) {
      var_9 = var_9->got_next_;
      if (var_9 == (type_2 *)0x0) goto LAB_001d4615;
      var_8 = var_9->got_type_;
    }
    if (var_9->got_offset_ != 0xffffffff) {
      return;
    }
LAB_001d4615:
    var_8 = var_2(this,(Got_entry)
                               (var_3(var_4(var_5(uStack_4c,0x7ffffffd),uStack_54)) << 0x20
                               ));
    uVar5 = (type_3)var_8;
    var_10 = (gsym->got_offsets_).got_type_;
    if (var_10 != 0xffffffff) {
      while (var_7 != var_10) {
        var_1 = var_1->got_next_;
        if (var_1 == (type_2 *)0x0) goto LAB_001d4696;
        var_10 = var_1->got_type_;
      }
      var_1->got_offset_ = var_8;
      goto LAB_001d46be;
    }
  }
  (gsym->got_offsets_).got_type_ = var_7;
  (gsym->got_offsets_).got_offset_ = (type_1)uVar5;
LAB_001d46be:
                    /* WARNING: Could not recover jumptable at 0x001d46e5. 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_3)r_type,this,uVar5,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)))) 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))))) (return_statement))))

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

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

