
/* DWARF original prototype: Output_section_data * find_merge_section(Object_merge_map * this, uint
   shndx) */

Output_section_data * __thiscall
gold::Object_merge_map::find_merge_section(Object_merge_map *this,uint shndx)

{
  uint uVar1;
  pointer ppVar2;
  pointer ppVar3;
  Output_section_data *pOVar4;
  Object_merge_map *in_stack_fffffff4;
  uint in_stack_fffffff8;
  
  if (shndx == 0xffffffff) {
                    /* WARNING: Subroutine does not return */
    get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8);
  }
  ppVar3 = (this->section_merge_maps_).
           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>
           ._M_impl._M_start;
  ppVar2 = (this->section_merge_maps_).
           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>
           ._M_impl._M_finish;
  if (ppVar3 == ppVar2) {
LAB_0015e636:
    pOVar4 = (Output_section_data *)0x0;
  }
  else {
    uVar1 = ppVar3->first;
    while (shndx != uVar1) {
      ppVar3 = ppVar3 + 1;
      if (ppVar2 == ppVar3) goto LAB_0015e636;
      uVar1 = ppVar3->first;
    }
    pOVar4 = (Output_section_data *)ppVar3->second;
    if (pOVar4 != (Output_section_data *)0x0) {
      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;
    }
  }
  return pOVar4;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 * FUN_0015e600(undefined4 *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined **ppuVar5;
  undefined **extraout_ECX;
  byte *pbVar6;
  byte *pbVar7;
  int unaff_EBX;
  int *piStack_8;
  byte *pbVar8;
  
  if (param_2 == -1) {
    FUN_0015e4c0();
    ppuVar5 = &__DT_PLTGOT;
    iVar1 = *piStack_8;
    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {
      iVar4 = FUN_0015e490();
      ppuVar5 = extraout_ECX;
    }
    else {
      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));
      iVar4 = *(int *)(iVar1 + 0x30);
      if (iVar4 == 0) {
        if (*(int *)(iVar1 + 0x2c) != 0) {
          puVar3 = (undefined4 *)0x811c9dc5;
          pbVar8 = pbVar6;
          do {
            pbVar7 = pbVar8 + 1;
            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);
            pbVar8 = pbVar7;
          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);
          return puVar3;
        }
        return (undefined4 *)0x811c9dc5;
      }
    }
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);
  }
  piVar2 = (int *)*param_1;
  if (piVar2 == (int *)param_1[1]) {
LAB_0015e636:
    puVar3 = (undefined4 *)0x0;
  }
  else {
    iVar1 = *piVar2;
    while (param_2 != iVar1) {
      piVar2 = piVar2 + 2;
      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;
      iVar1 = *piVar2;
    }
    puVar3 = (undefined4 *)piVar2[1];
    if (puVar3 != (undefined4 *)0x0) {
      return (undefined4 *)*puVar3;
    }
  }
  return puVar3;
}


PUSH EBX
SUB ESP,0x8
MOV ECX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESP + 0x10]
CMP ECX,-0x1
JZ 0x0015e64e
MOV EDX,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
CMP EDX,EBX
JZ 0x0015e636
LEA EAX,[EDX + 0x8]
CMP ECX,dword ptr [EDX]
JNZ 0x0015e630
JMP 0x0015e640
ADD EAX,0x8
CMP ECX,dword ptr [EAX + -0x8]
JZ 0x0015e640
MOV EDX,EAX
CMP EBX,EAX
JNZ 0x0015e628
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [EDX + 0x4]
TEST EAX,EAX
JZ 0x0015e638
MOV EAX,dword ptr [EAX]
ADD ESP,0x8
POP EBX
RET
CALL 0x0015e4c0
NOP
LEA ESI,[ESI]
LEA ESI,[ESI]
NOP
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 * FUN_0015e600(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}\n\n" comment (function_definition "undefined4 * FUN_0015e600(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_0015e600(undefined4 *param_1,int param_2)" * (function_declarator "FUN_0015e600(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined **extraout_ECX;" type_identifier (pointer_declarator "**extraout_ECX" * (pointer_declarator "*extraout_ECX" * identifier)) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *piStack_8;" primitive_type (pointer_declarator "*piStack_8" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (if_statement "if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }" { (expression_statement "FUN_0015e4c0();" (call_expression "FUN_0015e4c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "ppuVar5 = &__DT_PLTGOT;" (assignment_expression "ppuVar5 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "iVar1 = *piStack_8;" (assignment_expression "iVar1 = *piStack_8" identifier = (pointer_expression "*piStack_8" * identifier)) ;) (if_statement "if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" if (parenthesized_expression "((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX))" ( (binary_expression "(unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)" (parenthesized_expression "(unaff_EBX < 0)" ( (binary_expression "unaff_EBX < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x60) <= unaff_EBX)" ( (binary_expression "*(int *)(iVar1 + 0x60) <= unaff_EBX" (pointer_expression "*(int *)(iVar1 + 0x60)" * (cast_expression "(int *)(iVar1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x60)" ( (binary_expression "iVar1 + 0x60" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }" { (expression_statement "iVar4 = FUN_0015e490();" (assignment_expression "iVar4 = FUN_0015e490()" identifier = (call_expression "FUN_0015e490()" identifier (argument_list "()" ( )))) ;) (expression_statement "ppuVar5 = extraout_ECX;" (assignment_expression "ppuVar5 = extraout_ECX" identifier = identifier) ;) }) (else_clause "else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" else (compound_statement "{\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" { (expression_statement "pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));" (assignment_expression "pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c))" identifier = (cast_expression "(byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + *(int *)(iVar1 + 0x5c))" ( (binary_expression "unaff_EBX + *(int *)(iVar1 + 0x5c)" identifier + (pointer_expression "*(int *)(iVar1 + 0x5c)" * (cast_expression "(int *)(iVar1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x5c)" ( (binary_expression "iVar1 + 0x5c" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0x30)" identifier = (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }" { (if_statement "if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }" if (parenthesized_expression "(*(int *)(iVar1 + 0x2c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x2c) != 0" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }" { (expression_statement "puVar3 = (undefined4 *)0x811c9dc5;" (assignment_expression "puVar3 = (undefined4 *)0x811c9dc5" identifier = (cast_expression "(undefined4 *)0x811c9dc5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pbVar8 = pbVar6;" (assignment_expression "pbVar8 = pbVar6" identifier = identifier) ;) (do_statement "do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);" do (compound_statement "{\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          }" { (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);" (assignment_expression "puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" identifier = (cast_expression "(undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" ( (binary_expression "((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193" (parenthesized_expression "((uint)puVar3 ^ (uint)*pbVar8)" ( (binary_expression "(uint)puVar3 ^ (uint)*pbVar8" (cast_expression "(uint)puVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ^ (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) )) * number_literal) )))) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7)" ( (binary_expression "pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7" (binary_expression "pbVar6 + *(int *)(iVar1 + 0x2c)" identifier + (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) ))))) != identifier) )) ;) (return_statement "return puVar3;" return identifier ;) })) (return_statement "return (undefined4 *)0x811c9dc5;" return (cast_expression "(undefined4 *)0x811c9dc5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }))) comment (expression_statement "FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);" (call_expression "FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4)" identifier (argument_list "((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4)" ( (binary_expression "(int)ppuVar5 + -0xe1487" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , number_literal , (binary_expression "ppuVar5 + -0x32c5c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)param_1[1])" ( (binary_expression "piVar2 == (int *)param_1[1]" identifier == (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }" { (labeled_statement "LAB_0015e636:\n    puVar3 = (undefined4 *)0x0;" statement_identifier : (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" else (compound_statement "{\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" { (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }" while (parenthesized_expression "(param_2 != iVar1)" ( (binary_expression "param_2 != iVar1" identifier != identifier) )) (compound_statement "{\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }" { (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) (if_statement "if ((int *)param_1[1] == piVar2) goto LAB_0015e636;" if (parenthesized_expression "((int *)param_1[1] == piVar2)" ( (binary_expression "(int *)param_1[1] == piVar2" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == identifier) )) (goto_statement "goto LAB_0015e636;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (expression_statement "puVar3 = (undefined4 *)piVar2[1];" (assignment_expression "puVar3 = (undefined4 *)piVar2[1]" identifier = (cast_expression "(undefined4 *)piVar2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (undefined4 *)*puVar3;\n    }" { (return_statement "return (undefined4 *)*puVar3;" return (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) ;) })) }))) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: Output_section_data * find_merge_section(Object_merge_map * this, uint\n   shndx) */\n\nOutput_section_data * __thiscall\ngold::Object_merge_map::find_merge_section(Object_merge_map *this,uint shndx)\n\n{\n  uint uVar1;\n  pointer ppVar2;\n  pointer ppVar3;\n  Output_section_data *pOVar4;\n  Object_merge_map *in_stack_fffffff4;\n  uint in_stack_fffffff8;\n  \n  if (shndx == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n    get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8);\n  }\n  ppVar3 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_start;\n  ppVar2 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_finish;\n  if (ppVar3 == ppVar2) {\nLAB_0015e636:\n    pOVar4 = (Output_section_data *)0x0;\n  }\n  else {\n    uVar1 = ppVar3->first;\n    while (shndx != uVar1) {\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }\n    pOVar4 = (Output_section_data *)ppVar3->second;\n    if (pOVar4 != (Output_section_data *)0x0) {\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }\n  }\n  return pOVar4;\n}\n\n" comment (ERROR "Output_section_data * __thiscall\ngold::Object_merge_map::find_merge_section(Object_merge_map *this,uint shndx)" (binary_expression "Output_section_data * __thiscall\ngold::Object_merge_map::find_merge_section(Object_merge_map *this" (binary_expression "Output_section_data * __thiscall" identifier * identifier) (ERROR "gold::Object_merge_map::find_merge_section(Object_merge_map" identifier : : identifier : : identifier ( identifier) * identifier) , identifier identifier )) (compound_statement "{\n  uint uVar1;\n  pointer ppVar2;\n  pointer ppVar3;\n  Output_section_data *pOVar4;\n  Object_merge_map *in_stack_fffffff4;\n  uint in_stack_fffffff8;\n  \n  if (shndx == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n    get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8);\n  }\n  ppVar3 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_start;\n  ppVar2 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_finish;\n  if (ppVar3 == ppVar2) {\nLAB_0015e636:\n    pOVar4 = (Output_section_data *)0x0;\n  }\n  else {\n    uVar1 = ppVar3->first;\n    while (shndx != uVar1) {\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }\n    pOVar4 = (Output_section_data *)ppVar3->second;\n    if (pOVar4 != (Output_section_data *)0x0) {\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }\n  }\n  return pOVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "pointer ppVar2;" type_identifier identifier ;) (declaration "pointer ppVar3;" type_identifier identifier ;) (declaration "Output_section_data *pOVar4;" type_identifier (pointer_declarator "*pOVar4" * identifier) ;) (declaration "Object_merge_map *in_stack_fffffff4;" type_identifier (pointer_declarator "*in_stack_fffffff4" * identifier) ;) (declaration "uint in_stack_fffffff8;" type_identifier identifier ;) (if_statement "if (shndx == 0xffffffff) {\n                    /* WARNING: Subroutine does not return */\n    get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8);\n  }" if (parenthesized_expression "(shndx == 0xffffffff)" ( (binary_expression "shndx == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8);\n  }" { comment (expression_statement "get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8);" (call_expression "get_input_merge_map(in_stack_fffffff4,in_stack_fffffff8)" identifier (argument_list "(in_stack_fffffff4,in_stack_fffffff8)" ( identifier , identifier ))) ;) })) (ERROR "ppVar3 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::" (comma_expression "ppVar3 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold" (binary_expression "ppVar3 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int" (assignment_expression "ppVar3 = (this->section_merge_maps_).\n           super__Vector_base<std" identifier = (binary_expression "(this->section_merge_maps_).\n           super__Vector_base<std" (field_expression "(this->section_merge_maps_).\n           super__Vector_base" (parenthesized_expression "(this->section_merge_maps_)" ( (field_expression "this->section_merge_maps_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::pair" : : identifier) < identifier) , identifier) : : identifier : : identifier * > , identifier : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "pair<unsigned_int,_gold" (binary_expression "pair<unsigned_int" identifier < identifier) , identifier) : :) (expression_statement "Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_start;" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_start" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl" (binary_expression "Object_merge_map::Input_merge_map*>_>_" (binary_expression "Object_merge_map::Input_merge_map*>_" identifier (ERROR "::Input_merge_map*" : : identifier *) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (ERROR "ppVar2 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::" (comma_expression "ppVar2 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int,_gold" (binary_expression "ppVar2 = (this->section_merge_maps_).\n           super__Vector_base<std::pair<unsigned_int" (assignment_expression "ppVar2 = (this->section_merge_maps_).\n           super__Vector_base<std" identifier = (binary_expression "(this->section_merge_maps_).\n           super__Vector_base<std" (field_expression "(this->section_merge_maps_).\n           super__Vector_base" (parenthesized_expression "(this->section_merge_maps_)" ( (field_expression "this->section_merge_maps_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::pair" : : identifier) < identifier) , identifier) : : identifier : : identifier * > , identifier : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "pair<unsigned_int,_gold" (binary_expression "pair<unsigned_int" identifier < identifier) , identifier) : :) (expression_statement "Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_finish;" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl._M_finish" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n           ._M_impl" (binary_expression "Object_merge_map::Input_merge_map*>_>_" (binary_expression "Object_merge_map::Input_merge_map*>_" identifier (ERROR "::Input_merge_map*" : : identifier *) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppVar3 == ppVar2) {\nLAB_0015e636:\n    pOVar4 = (Output_section_data *)0x0;\n  }\n  else {\n    uVar1 = ppVar3->first;\n    while (shndx != uVar1) {\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }\n    pOVar4 = (Output_section_data *)ppVar3->second;\n    if (pOVar4 != (Output_section_data *)0x0) {\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }\n  }" if (parenthesized_expression "(ppVar3 == ppVar2)" ( (binary_expression "ppVar3 == ppVar2" identifier == identifier) )) (compound_statement "{\nLAB_0015e636:\n    pOVar4 = (Output_section_data *)0x0;\n  }" { (labeled_statement "LAB_0015e636:\n    pOVar4 = (Output_section_data *)0x0;" statement_identifier : (expression_statement "pOVar4 = (Output_section_data *)0x0;" (assignment_expression "pOVar4 = (Output_section_data *)0x0" identifier = (cast_expression "(Output_section_data *)0x0" ( (type_descriptor "Output_section_data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    uVar1 = ppVar3->first;\n    while (shndx != uVar1) {\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }\n    pOVar4 = (Output_section_data *)ppVar3->second;\n    if (pOVar4 != (Output_section_data *)0x0) {\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }\n  }" else (compound_statement "{\n    uVar1 = ppVar3->first;\n    while (shndx != uVar1) {\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }\n    pOVar4 = (Output_section_data *)ppVar3->second;\n    if (pOVar4 != (Output_section_data *)0x0) {\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }\n  }" { (expression_statement "uVar1 = ppVar3->first;" (assignment_expression "uVar1 = ppVar3->first" identifier = (field_expression "ppVar3->first" identifier -> field_identifier)) ;) (while_statement "while (shndx != uVar1) {\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }" while (parenthesized_expression "(shndx != uVar1)" ( (binary_expression "shndx != uVar1" identifier != identifier) )) (compound_statement "{\n      ppVar3 = ppVar3 + 1;\n      if (ppVar2 == ppVar3) goto LAB_0015e636;\n      uVar1 = ppVar3->first;\n    }" { (expression_statement "ppVar3 = ppVar3 + 1;" (assignment_expression "ppVar3 = ppVar3 + 1" identifier = (binary_expression "ppVar3 + 1" identifier + number_literal)) ;) (if_statement "if (ppVar2 == ppVar3) goto LAB_0015e636;" if (parenthesized_expression "(ppVar2 == ppVar3)" ( (binary_expression "ppVar2 == ppVar3" identifier == identifier) )) (goto_statement "goto LAB_0015e636;" goto statement_identifier ;)) (expression_statement "uVar1 = ppVar3->first;" (assignment_expression "uVar1 = ppVar3->first" identifier = (field_expression "ppVar3->first" identifier -> field_identifier)) ;) })) (expression_statement "pOVar4 = (Output_section_data *)ppVar3->second;" (assignment_expression "pOVar4 = (Output_section_data *)ppVar3->second" identifier = (cast_expression "(Output_section_data *)ppVar3->second" ( (type_descriptor "Output_section_data *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "ppVar3->second" identifier -> field_identifier))) ;) (if_statement "if (pOVar4 != (Output_section_data *)0x0) {\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }" if (parenthesized_expression "(pOVar4 != (Output_section_data *)0x0)" ( (binary_expression "pOVar4 != (Output_section_data *)0x0" identifier != (cast_expression "(Output_section_data *)0x0" ( (type_descriptor "Output_section_data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;\n    }" { (return_statement "return (Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data;" return (cast_expression "(Output_section_data *)(pOVar4->super_Output_data)._vptr_Output_data" ( (type_descriptor "Output_section_data *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pOVar4->super_Output_data)._vptr_Output_data" (parenthesized_expression "(pOVar4->super_Output_data)" ( (field_expression "pOVar4->super_Output_data" identifier -> field_identifier) )) . field_identifier)) ;) })) }))) (return_statement "return pOVar4;" return identifier ;) }))
(translation_unit "undefined4 * FUN_0015e600(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}\n\n" (function_definition "undefined4 * FUN_0015e600(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_0015e600(undefined4 *param_1,int param_2)" * (function_declarator "FUN_0015e600(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined **ppuVar5;" type_identifier (pointer_declarator "**ppuVar5" * (pointer_declarator "*ppuVar5" * identifier)) ;) (declaration "undefined **extraout_ECX;" type_identifier (pointer_declarator "**extraout_ECX" * (pointer_declarator "*extraout_ECX" * identifier)) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "int *piStack_8;" primitive_type (pointer_declarator "*piStack_8" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (if_statement "if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }" { (expression_statement "FUN_0015e4c0();" (call_expression "FUN_0015e4c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "ppuVar5 = &__DT_PLTGOT;" (assignment_expression "ppuVar5 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (expression_statement "iVar1 = *piStack_8;" (assignment_expression "iVar1 = *piStack_8" identifier = (pointer_expression "*piStack_8" * identifier)) ;) (if_statement "if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" if (parenthesized_expression "((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX))" ( (binary_expression "(unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)" (parenthesized_expression "(unaff_EBX < 0)" ( (binary_expression "unaff_EBX < 0" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x60) <= unaff_EBX)" ( (binary_expression "*(int *)(iVar1 + 0x60) <= unaff_EBX" (pointer_expression "*(int *)(iVar1 + 0x60)" * (cast_expression "(int *)(iVar1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x60)" ( (binary_expression "iVar1 + 0x60" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }" { (expression_statement "iVar4 = FUN_0015e490();" (assignment_expression "iVar4 = FUN_0015e490()" identifier = (call_expression "FUN_0015e490()" identifier (argument_list "()" ( )))) ;) (expression_statement "ppuVar5 = extraout_ECX;" (assignment_expression "ppuVar5 = extraout_ECX" identifier = identifier) ;) }) (else_clause "else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" else (compound_statement "{\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" { (expression_statement "pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));" (assignment_expression "pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c))" identifier = (cast_expression "(byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + *(int *)(iVar1 + 0x5c))" ( (binary_expression "unaff_EBX + *(int *)(iVar1 + 0x5c)" identifier + (pointer_expression "*(int *)(iVar1 + 0x5c)" * (cast_expression "(int *)(iVar1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x5c)" ( (binary_expression "iVar1 + 0x5c" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar4 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0x30)" identifier = (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }" { (if_statement "if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }" if (parenthesized_expression "(*(int *)(iVar1 + 0x2c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x2c) != 0" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }" { (expression_statement "puVar3 = (undefined4 *)0x811c9dc5;" (assignment_expression "puVar3 = (undefined4 *)0x811c9dc5" identifier = (cast_expression "(undefined4 *)0x811c9dc5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pbVar8 = pbVar6;" (assignment_expression "pbVar8 = pbVar6" identifier = identifier) ;) (do_statement "do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);" do (compound_statement "{\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          }" { (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);" (assignment_expression "puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" identifier = (cast_expression "(undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" ( (binary_expression "((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193" (parenthesized_expression "((uint)puVar3 ^ (uint)*pbVar8)" ( (binary_expression "(uint)puVar3 ^ (uint)*pbVar8" (cast_expression "(uint)puVar3" ( (type_descriptor "uint" type_identifier) ) identifier) ^ (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) )) * number_literal) )))) ;) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7)" ( (binary_expression "pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7" (binary_expression "pbVar6 + *(int *)(iVar1 + 0x2c)" identifier + (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) ))))) != identifier) )) ;) (return_statement "return puVar3;" return identifier ;) })) (return_statement "return (undefined4 *)0x811c9dc5;" return (cast_expression "(undefined4 *)0x811c9dc5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) }))) (expression_statement "FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);" (call_expression "FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4)" identifier (argument_list "((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4)" ( (binary_expression "(int)ppuVar5 + -0xe1487" (cast_expression "(int)ppuVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) , number_literal , (binary_expression "ppuVar5 + -0x32c5c" identifier + number_literal) , identifier ))) ;) })) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)param_1[1])" ( (binary_expression "piVar2 == (int *)param_1[1]" identifier == (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }" { (labeled_statement "LAB_0015e636:\n    puVar3 = (undefined4 *)0x0;" statement_identifier : (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" else (compound_statement "{\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" { (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (while_statement "while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }" while (parenthesized_expression "(param_2 != iVar1)" ( (binary_expression "param_2 != iVar1" identifier != identifier) )) (compound_statement "{\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }" { (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" identifier = (binary_expression "piVar2 + 2" identifier + number_literal)) ;) (if_statement "if ((int *)param_1[1] == piVar2) goto LAB_0015e636;" if (parenthesized_expression "((int *)param_1[1] == piVar2)" ( (binary_expression "(int *)param_1[1] == piVar2" (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) == identifier) )) (goto_statement "goto LAB_0015e636;" goto statement_identifier ;)) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) (expression_statement "puVar3 = (undefined4 *)piVar2[1];" (assignment_expression "puVar3 = (undefined4 *)piVar2[1]" identifier = (cast_expression "(undefined4 *)piVar2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (undefined4 *)*puVar3;\n    }" { (return_statement "return (undefined4 *)*puVar3;" return (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) ;) })) }))) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) ^ (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) )) * LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != IDENT) )) ;) (return_statement return IDENT ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_0015e600(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_0015e600(undefined4 *param_1,int param_2)" (* "*") (function_declarator "FUN_0015e600(undefined4 *param_1,int param_2)" (identifier "FUN_0015e600") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  undefined **ppuVar5;\n  undefined **extraout_ECX;\n  byte *pbVar6;\n  byte *pbVar7;\n  int unaff_EBX;\n  int *piStack_8;\n  byte *pbVar8;\n  \n  if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }\n  piVar2 = (int *)*param_1;\n  if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }\n  return puVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined **ppuVar5;" (type_identifier "undefined") (pointer_declarator "**ppuVar5" (* "*") (pointer_declarator "*ppuVar5" (* "*") (identifier "ppuVar5"))) (; ";")) (declaration "undefined **extraout_ECX;" (type_identifier "undefined") (pointer_declarator "**extraout_ECX" (* "*") (pointer_declarator "*extraout_ECX" (* "*") (identifier "extraout_ECX"))) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "int *piStack_8;" (primitive_type "int") (pointer_declarator "*piStack_8" (* "*") (identifier "piStack_8")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (if_statement "if (param_2 == -1) {\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }" (if "if") (parenthesized_expression "(param_2 == -1)" (( "(") (binary_expression "param_2 == -1" (identifier "param_2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    FUN_0015e4c0();\n    ppuVar5 = &__DT_PLTGOT;\n    iVar1 = *piStack_8;\n    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }\n                    \n    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);\n  }" ({ "{") (expression_statement "FUN_0015e4c0();" (call_expression "FUN_0015e4c0()" (identifier "FUN_0015e4c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "ppuVar5 = &__DT_PLTGOT;" (assignment_expression "ppuVar5 = &__DT_PLTGOT" (identifier "ppuVar5") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (expression_statement "iVar1 = *piStack_8;" (assignment_expression "iVar1 = *piStack_8" (identifier "iVar1") (= "=") (pointer_expression "*piStack_8" (* "*") (identifier "piStack_8"))) (; ";")) (if_statement "if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }\n    else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" (if "if") (parenthesized_expression "((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX))" (( "(") (binary_expression "(unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)" (parenthesized_expression "(unaff_EBX < 0)" (( "(") (binary_expression "unaff_EBX < 0" (identifier "unaff_EBX") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(iVar1 + 0x60) <= unaff_EBX)" (( "(") (binary_expression "*(int *)(iVar1 + 0x60) <= unaff_EBX" (pointer_expression "*(int *)(iVar1 + 0x60)" (* "*") (cast_expression "(int *)(iVar1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x60)" (( "(") (binary_expression "iVar1 + 0x60" (identifier "iVar1") (+ "+") (number_literal "0x60")) () ")")))) (<= "<=") (identifier "unaff_EBX")) () ")"))) () ")")) (compound_statement "{\n      iVar4 = FUN_0015e490();\n      ppuVar5 = extraout_ECX;\n    }" ({ "{") (expression_statement "iVar4 = FUN_0015e490();" (assignment_expression "iVar4 = FUN_0015e490()" (identifier "iVar4") (= "=") (call_expression "FUN_0015e490()" (identifier "FUN_0015e490") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "ppuVar5 = extraout_ECX;" (assignment_expression "ppuVar5 = extraout_ECX" (identifier "ppuVar5") (= "=") (identifier "extraout_ECX")) (; ";")) (} "}")) (else_clause "else {\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" (else "else") (compound_statement "{\n      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));\n      iVar4 = *(int *)(iVar1 + 0x30);\n      if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }\n    }" ({ "{") (expression_statement "pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));" (assignment_expression "pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c))" (identifier "pbVar6") (= "=") (cast_expression "(byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBX + *(int *)(iVar1 + 0x5c))" (( "(") (binary_expression "unaff_EBX + *(int *)(iVar1 + 0x5c)" (identifier "unaff_EBX") (+ "+") (pointer_expression "*(int *)(iVar1 + 0x5c)" (* "*") (cast_expression "(int *)(iVar1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x5c)" (( "(") (binary_expression "iVar1 + 0x5c" (identifier "iVar1") (+ "+") (number_literal "0x5c")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar4 = *(int *)(iVar1 + 0x30)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }\n        return (undefined4 *)0x811c9dc5;\n      }" ({ "{") (if_statement "if (*(int *)(iVar1 + 0x2c) != 0) {\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x2c) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x2c) != 0" (pointer_expression "*(int *)(iVar1 + 0x2c)" (* "*") (cast_expression "(int *)(iVar1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          puVar3 = (undefined4 *)0x811c9dc5;\n          pbVar8 = pbVar6;\n          do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);\n          return puVar3;\n        }" ({ "{") (expression_statement "puVar3 = (undefined4 *)0x811c9dc5;" (assignment_expression "puVar3 = (undefined4 *)0x811c9dc5" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)0x811c9dc5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x811c9dc5"))) (; ";")) (expression_statement "pbVar8 = pbVar6;" (assignment_expression "pbVar8 = pbVar6" (identifier "pbVar8") (= "=") (identifier "pbVar6")) (; ";")) (do_statement "do {\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);" (do "do") (compound_statement "{\n            pbVar7 = pbVar8 + 1;\n            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);\n            pbVar8 = pbVar7;\n          }" ({ "{") (expression_statement "pbVar7 = pbVar8 + 1;" (assignment_expression "pbVar7 = pbVar8 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);" (assignment_expression "puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193)" (( "(") (binary_expression "((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193" (parenthesized_expression "((uint)puVar3 ^ (uint)*pbVar8)" (( "(") (binary_expression "(uint)puVar3 ^ (uint)*pbVar8" (cast_expression "(uint)puVar3" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar3")) (^ "^") (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar8"))) () ")")) (* "*") (number_literal "0x1000193")) () ")")))) (; ";")) (expression_statement "pbVar8 = pbVar7;" (assignment_expression "pbVar8 = pbVar7" (identifier "pbVar8") (= "=") (identifier "pbVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7)" (( "(") (binary_expression "pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7" (binary_expression "pbVar6 + *(int *)(iVar1 + 0x2c)" (identifier "pbVar6") (+ "+") (pointer_expression "*(int *)(iVar1 + 0x2c)" (* "*") (cast_expression "(int *)(iVar1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")"))))) (!= "!=") (identifier "pbVar7")) () ")")) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (return_statement "return (undefined4 *)0x811c9dc5;" (return "return") (cast_expression "(undefined4 *)0x811c9dc5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x811c9dc5")) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);" (call_expression "FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4)" (identifier "FUN_0005f0b0") (argument_list "((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4)" (( "(") (binary_expression "(int)ppuVar5 + -0xe1487" (cast_expression "(int)ppuVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "ppuVar5")) (+ "+") (number_literal "-0xe1487")) (, ",") (number_literal "0xc0") (, ",") (binary_expression "ppuVar5 + -0x32c5c" (identifier "ppuVar5") (+ "+") (number_literal "-0x32c5c")) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" (identifier "piVar2") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar2 == (int *)param_1[1]) {\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }\n  else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 == (int *)param_1[1])" (( "(") (binary_expression "piVar2 == (int *)param_1[1]" (identifier "piVar2") (== "==") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\nLAB_0015e636:\n    puVar3 = (undefined4 *)0x0;\n  }" ({ "{") (labeled_statement "LAB_0015e636:\n    puVar3 = (undefined4 *)0x0;" (statement_identifier "LAB_0015e636") (: ":") (expression_statement "puVar3 = (undefined4 *)0x0;" (assignment_expression "puVar3 = (undefined4 *)0x0" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (} "}")) (else_clause "else {\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *piVar2;\n    while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }\n    puVar3 = (undefined4 *)piVar2[1];\n    if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (while_statement "while (param_2 != iVar1) {\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }" (while "while") (parenthesized_expression "(param_2 != iVar1)" (( "(") (binary_expression "param_2 != iVar1" (identifier "param_2") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      piVar2 = piVar2 + 2;\n      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;\n      iVar1 = *piVar2;\n    }" ({ "{") (expression_statement "piVar2 = piVar2 + 2;" (assignment_expression "piVar2 = piVar2 + 2" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if ((int *)param_1[1] == piVar2) goto LAB_0015e636;" (if "if") (parenthesized_expression "((int *)param_1[1] == piVar2)" (( "(") (binary_expression "(int *)param_1[1] == piVar2" (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (== "==") (identifier "piVar2")) () ")")) (goto_statement "goto LAB_0015e636;" (goto "goto") (statement_identifier "LAB_0015e636") (; ";"))) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined4 *)piVar2[1];" (assignment_expression "puVar3 = (undefined4 *)piVar2[1]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)piVar2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n      return (undefined4 *)*puVar3;\n    }" (if "if") (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined4 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return (undefined4 *)*puVar3;\n    }" ({ "{") (return_statement "return (undefined4 *)*puVar3;" (return "return") (cast_expression "(undefined4 *)*puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

/* DWARF original prototype: Output_section_data * find_merge_section(Object_merge_map * this, uint
   shndx) */

type_3 * __thiscall
gold::type_4::find_merge_section(type_4 *this,type_1 var_1)

{
  type_1 var_6;
  type_2 var_5;
  type_2 var_4;
  type_3 *var_7;
  type_4 *in_stack_fffffff4;
  type_1 in_stack_fffffff8;
  
  if (var_1 == 0xffffffff) {
                    /* WARNING: Subroutine does not return */
    var_2(in_stack_fffffff4,in_stack_fffffff8);
  }
  var_4 = (this->section_merge_maps_).
           super__Vector_base<std::pair<unsigned_int,_gold::type_4::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::type_4::Input_merge_map*>var_3>var_3>
           ._M_impl._M_start;
  var_5 = (this->section_merge_maps_).
           super__Vector_base<std::pair<unsigned_int,_gold::type_4::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::type_4::Input_merge_map*>var_3>var_3>
           ._M_impl._M_finish;
  if (var_4 == var_5) {
LAB_0015e636:
    var_7 = (type_3 *)0x0;
  }
  else {
    var_6 = var_4->first;
    while (var_1 != var_6) {
      var_4 = var_4 + 1;
      if (var_5 == var_4) goto LAB_0015e636;
      var_6 = var_4->first;
    }
    var_7 = (type_3 *)var_4->second;
    if (var_7 != (type_3 *)0x0) {
      return (type_3 *)(var_7->super_Output_data)._vptr_Output_data;
    }
  }
  return var_7;
}


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

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 * MASKED(undefined4 *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  int iVar4;
  undefined **ppuVar5;
  undefined **extraout_ECX;
  byte *pbVar6;
  byte *pbVar7;
  int unaff_EBX;
  int *piStack_8;
  byte *pbVar8;
  
  if (param_2 == -1) {
    FUN_0015e4c0();
    ppuVar5 = &__DT_PLTGOT;
    iVar1 = *piStack_8;
    if ((unaff_EBX < 0) || (*(int *)(iVar1 + 0x60) <= unaff_EBX)) {
      iVar4 = FUN_0015e490();
      ppuVar5 = extraout_ECX;
    }
    else {
      pbVar6 = (byte *)(unaff_EBX + *(int *)(iVar1 + 0x5c));
      iVar4 = *(int *)(iVar1 + 0x30);
      if (iVar4 == 0) {
        if (*(int *)(iVar1 + 0x2c) != 0) {
          puVar3 = (undefined4 *)0x811c9dc5;
          pbVar8 = pbVar6;
          do {
            pbVar7 = pbVar8 + 1;
            puVar3 = (undefined4 *)(((uint)puVar3 ^ (uint)*pbVar8) * 0x1000193);
            pbVar8 = pbVar7;
          } while (pbVar6 + *(int *)(iVar1 + 0x2c) != pbVar7);
          return puVar3;
        }
        return (undefined4 *)0x811c9dc5;
      }
    }
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0((int)ppuVar5 + -0xe1487,0xc0,ppuVar5 + -0x32c5c,iVar4);
  }
  piVar2 = (int *)*param_1;
  if (piVar2 == (int *)param_1[1]) {
LAB_0015e636:
    puVar3 = (undefined4 *)0x0;
  }
  else {
    iVar1 = *piVar2;
    while (param_2 != iVar1) {
      piVar2 = piVar2 + 2;
      if ((int *)param_1[1] == piVar2) goto LAB_0015e636;
      iVar1 = *piVar2;
    }
    puVar3 = (undefined4 *)piVar2[1];
    if (puVar3 != (undefined4 *)0x0) {
      return (undefined4 *)*puVar3;
    }
  }
  return puVar3;
}

