
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint set_section_indexes(Layout * this, uint shndx) */

uint __thiscall gold::Layout::set_section_indexes(Layout *this,uint shndx)

{
  Output_section *pOVar1;
  _func_int_varargs *p_Var2;
  pointer ppOVar3;
  
  ppOVar3 = (this->unattached_section_list_).
            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
            _M_impl._M_start;
  if (ppOVar3 !=
      (this->unattached_section_list_).
      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.
      _M_finish) {
    do {
      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {
        ppOVar3 = ppOVar3 + 1;
        if ((this->unattached_section_list_).
            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
            _M_impl._M_finish == ppOVar3) {
          return shndx;
        }
      }
      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];
      if (p_Var2 == Output_section::do_set_out_shndx) {
        pOVar1->out_shndx_ = shndx;
      }
      else {
        (*p_Var2)(pOVar1,shndx);
      }
      shndx = shndx + 1;
      ppOVar3 = ppOVar3 + 1;
    } while ((this->unattached_section_list_).
             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
             _M_impl._M_finish != ppOVar3);
  }
  return shndx;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int FUN_00098b30(int param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  
  piVar2 = *(int **)(param_1 + 0x13c);
  if (piVar2 != *(int **)(param_1 + 0x140)) {
    do {
      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {
        piVar2 = piVar2 + 1;
        if (*(int **)(param_1 + 0x140) == piVar2) {
          return param_2;
        }
      }
      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {
        piVar1[0x18] = param_2;
      }
      else {
        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);
      }
      param_2 = param_2 + 1;
      piVar2 = piVar2 + 1;
    } while (*(int **)(param_1 + 0x140) != piVar2);
  }
  return param_2;
}


CALL 0x000559e6
ADD EAX,0x2f64cb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x24]
MOV EBX,dword ptr [EDI + 0x13c]
CMP EBX,dword ptr [EDI + 0x140]
JZ 0x00098b8d
LEA EBP,[EAX + 0xffd15c30]
JMP 0x00098b6b
ADD EBX,0x4
CMP dword ptr [EDI + 0x140],EBX
JZ 0x00098b8d
MOV EDX,dword ptr [EBX]
CMP dword ptr [EDX + 0x60],-0x1
JNZ 0x00098b60
MOV EAX,dword ptr [EDX]
MOV EAX,dword ptr [EAX + 0x30]
CMP EAX,EBP
JNZ 0x00098ba0
MOV dword ptr [EDX + 0x60],ESI
ADD ESI,0x1
ADD EBX,0x4
CMP dword ptr [EDI + 0x140],EBX
JNZ 0x00098b6b
ADD ESP,0xc
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH ESI
PUSH EDX
CALL EAX
ADD ESP,0x10
JMP 0x00098b7f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint FUN_00098b30(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}\n\n" comment (function_definition "int FUN_00098b30(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_00098b30(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x13c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x13c)" identifier = (pointer_expression "*(int **)(param_1 + 0x13c)" * (cast_expression "(int **)(param_1 + 0x13c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x13c)" ( (binary_expression "param_1 + 0x13c" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }" if (parenthesized_expression "(piVar2 != *(int **)(param_1 + 0x140))" ( (binary_expression "piVar2 != *(int **)(param_1 + 0x140)" identifier != (pointer_expression "*(int **)(param_1 + 0x140)" * (cast_expression "(int **)(param_1 + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }" { (do_statement "do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);" do (compound_statement "{\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    }" { (while_statement "while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }" while (parenthesized_expression "(piVar1 = (int *)*piVar2, piVar1[0x18] != -1)" ( (comma_expression "piVar1 = (int *)*piVar2, piVar1[0x18] != -1" (assignment_expression "piVar1 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) , (binary_expression "piVar1[0x18] != -1" (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }" if (parenthesized_expression "(*(int **)(param_1 + 0x140) == piVar2)" ( (binary_expression "*(int **)(param_1 + 0x140) == piVar2" (pointer_expression "*(int **)(param_1 + 0x140)" * (cast_expression "(int **)(param_1 + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) })) (if_statement "if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x30) == FUN_000a4c30)" ( (binary_expression "*(code **)(*piVar1 + 0x30) == FUN_000a4c30" (pointer_expression "*(code **)(*piVar1 + 0x30)" * (cast_expression "(code **)(*piVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x30)" ( (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n        piVar1[0x18] = param_2;\n      }" { (expression_statement "piVar1[0x18] = param_2;" (assignment_expression "piVar1[0x18] = param_2" (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" else (compound_statement "{\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" { (expression_statement "(**(code **)(*piVar1 + 0x30))(piVar1,param_2);" (call_expression "(**(code **)(*piVar1 + 0x30))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x30))" ( (pointer_expression "**(code **)(*piVar1 + 0x30)" * (pointer_expression "*(code **)(*piVar1 + 0x30)" * (cast_expression "(code **)(*piVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x30)" ( (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x140) != piVar2)" ( (binary_expression "*(int **)(param_1 + 0x140) != piVar2" (pointer_expression "*(int **)(param_1 + 0x140)" * (cast_expression "(int **)(param_1 + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: uint set_section_indexes(Layout * this, uint shndx) */\n\nuint __thiscall gold::Layout::set_section_indexes(Layout *this,uint shndx)\n\n{\n  Output_section *pOVar1;\n  _func_int_varargs *p_Var2;\n  pointer ppOVar3;\n  \n  ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    } while ((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3);\n  }\n  return shndx;\n}\n\n" comment comment comment (function_definition "uint __thiscall gold::Layout::set_section_indexes(Layout *this,uint shndx)\n\n{\n  Output_section *pOVar1;\n  _func_int_varargs *p_Var2;\n  pointer ppOVar3;\n  \n  ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    } while ((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3);\n  }\n  return shndx;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "set_section_indexes(Layout *this,uint shndx)" identifier (parameter_list "(Layout *this,uint shndx)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) ))) (compound_statement "{\n  Output_section *pOVar1;\n  _func_int_varargs *p_Var2;\n  pointer ppOVar3;\n  \n  ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    } while ((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3);\n  }\n  return shndx;\n}" { (declaration "Output_section *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "_func_int_varargs *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "pointer ppOVar3;" type_identifier identifier ;) (expression_statement "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start" (field_expression "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl" (binary_expression "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std" (assignment_expression "ppOVar3 = (this->unattached_section_list_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->unattached_section_list_).\n            super__Vector_base<gold" (field_expression "(this->unattached_section_list_).\n            super__Vector_base" (parenthesized_expression "(this->unattached_section_list_)" ( (field_expression "this->unattached_section_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    } while ((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3);\n  }" if (parenthesized_expression "(ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish)" ( (field_expression "ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish" (field_expression "ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl" (binary_expression "ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold::Output_section*,_std" (binary_expression "ppOVar3 !=\n      (this->unattached_section_list_).\n      super__Vector_base<gold" identifier != (binary_expression "(this->unattached_section_list_).\n      super__Vector_base<gold" (field_expression "(this->unattached_section_list_).\n      super__Vector_base" (parenthesized_expression "(this->unattached_section_list_)" ( (field_expression "this->unattached_section_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    } while ((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3);\n  }" { (do_statement "do {\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    } while ((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3);" do (compound_statement "{\n      while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }\n      p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];\n      if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }\n      shndx = shndx + 1;\n      ppOVar3 = ppOVar3 + 1;\n    }" { (while_statement "while (pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff) {\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }" while (parenthesized_expression "(pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff)" ( (comma_expression "pOVar1 = *ppOVar3, pOVar1->out_shndx_ != 0xffffffff" (assignment_expression "pOVar1 = *ppOVar3" identifier = (pointer_expression "*ppOVar3" * identifier)) , (binary_expression "pOVar1->out_shndx_ != 0xffffffff" (field_expression "pOVar1->out_shndx_" identifier -> field_identifier) != number_literal)) )) (compound_statement "{\n        ppOVar3 = ppOVar3 + 1;\n        if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }\n      }" { (expression_statement "ppOVar3 = ppOVar3 + 1;" (assignment_expression "ppOVar3 = ppOVar3 + 1" identifier = (binary_expression "ppOVar3 + 1" identifier + number_literal)) ;) (if_statement "if ((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3) {\n          return shndx;\n        }" if (parenthesized_expression "((this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3)" ( (binary_expression "(this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish == ppOVar3" (field_expression "(this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_finish" (field_expression "(this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl" (binary_expression "(this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "(this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "(this->unattached_section_list_).\n            super__Vector_base<gold::Output_section*,_std" (binary_expression "(this->unattached_section_list_).\n            super__Vector_base<gold" (field_expression "(this->unattached_section_list_).\n            super__Vector_base" (parenthesized_expression "(this->unattached_section_list_)" ( (field_expression "this->unattached_section_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) == identifier) )) (compound_statement "{\n          return shndx;\n        }" { (return_statement "return shndx;" return identifier ;) })) })) (expression_statement "p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];" (assignment_expression "p_Var2 = (pOVar1->super_Output_data)._vptr_Output_data[0xc]" identifier = (subscript_expression "(pOVar1->super_Output_data)._vptr_Output_data[0xc]" (field_expression "(pOVar1->super_Output_data)._vptr_Output_data" (parenthesized_expression "(pOVar1->super_Output_data)" ( (field_expression "pOVar1->super_Output_data" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (if_statement "if (p_Var2 == Output_section::do_set_out_shndx) {\n        pOVar1->out_shndx_ = shndx;\n      }\n      else {\n        (*p_Var2)(pOVar1,shndx);\n      }" if (parenthesized_expression "(p_Var2 == Output_section::do_set_out_shndx)" ( (binary_expression "p_Var2 == Output_section" identifier == identifier) (ERROR "::do_set_out_shndx" : : identifier) )) (compound_statement "{\n        pOVar1->out_shndx_ = shndx;\n      }" { (expression_statement "pOVar1->out_shndx_ = shndx;" (assignment_expression "pOVar1->out_shndx_ = shndx" (field_expression "pOVar1->out_shndx_" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        (*p_Var2)(pOVar1,shndx);\n      }" else (compound_statement "{\n        (*p_Var2)(pOVar1,shndx);\n      }" { (expression_statement "(*p_Var2)(pOVar1,shndx);" (call_expression "(*p_Var2)(pOVar1,shndx)" (parenthesized_expression "(*p_Var2)" ( (pointer_expression "*p_Var2" * identifier) )) (argument_list "(pOVar1,shndx)" ( identifier , identifier ))) ;) }))) (expression_statement "shndx = shndx + 1;" (assignment_expression "shndx = shndx + 1" identifier = (binary_expression "shndx + 1" identifier + number_literal)) ;) (expression_statement "ppOVar3 = ppOVar3 + 1;" (assignment_expression "ppOVar3 = ppOVar3 + 1" identifier = (binary_expression "ppOVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3)" ( (binary_expression "(this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar3" (field_expression "(this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish" (field_expression "(this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl" (binary_expression "(this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "(this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "(this->unattached_section_list_).\n             super__Vector_base<gold::Output_section*,_std" (binary_expression "(this->unattached_section_list_).\n             super__Vector_base<gold" (field_expression "(this->unattached_section_list_).\n             super__Vector_base" (parenthesized_expression "(this->unattached_section_list_)" ( (field_expression "this->unattached_section_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (return_statement "return shndx;" return identifier ;) })))
(translation_unit "int FUN_00098b30(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}\n\n" (function_definition "int FUN_00098b30(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}" primitive_type (function_declarator "FUN_00098b30(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x13c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x13c)" identifier = (pointer_expression "*(int **)(param_1 + 0x13c)" * (cast_expression "(int **)(param_1 + 0x13c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x13c)" ( (binary_expression "param_1 + 0x13c" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }" if (parenthesized_expression "(piVar2 != *(int **)(param_1 + 0x140))" ( (binary_expression "piVar2 != *(int **)(param_1 + 0x140)" identifier != (pointer_expression "*(int **)(param_1 + 0x140)" * (cast_expression "(int **)(param_1 + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }" { (do_statement "do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);" do (compound_statement "{\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    }" { (while_statement "while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }" while (parenthesized_expression "(piVar1 = (int *)*piVar2, piVar1[0x18] != -1)" ( (comma_expression "piVar1 = (int *)*piVar2, piVar1[0x18] != -1" (assignment_expression "piVar1 = (int *)*piVar2" identifier = (cast_expression "(int *)*piVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) , (binary_expression "piVar1[0x18] != -1" (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }" { (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (if_statement "if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }" if (parenthesized_expression "(*(int **)(param_1 + 0x140) == piVar2)" ( (binary_expression "*(int **)(param_1 + 0x140) == piVar2" (pointer_expression "*(int **)(param_1 + 0x140)" * (cast_expression "(int **)(param_1 + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n          return param_2;\n        }" { (return_statement "return param_2;" return identifier ;) })) })) (if_statement "if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x30) == FUN_000a4c30)" ( (binary_expression "*(code **)(*piVar1 + 0x30) == FUN_000a4c30" (pointer_expression "*(code **)(*piVar1 + 0x30)" * (cast_expression "(code **)(*piVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x30)" ( (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n        piVar1[0x18] = param_2;\n      }" { (expression_statement "piVar1[0x18] = param_2;" (assignment_expression "piVar1[0x18] = param_2" (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" else (compound_statement "{\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" { (expression_statement "(**(code **)(*piVar1 + 0x30))(piVar1,param_2);" (call_expression "(**(code **)(*piVar1 + 0x30))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x30))" ( (pointer_expression "**(code **)(*piVar1 + 0x30)" * (pointer_expression "*(code **)(*piVar1 + 0x30)" * (cast_expression "(code **)(*piVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x30)" ( (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(int **)(param_1 + 0x140) != piVar2)" ( (binary_expression "*(int **)(param_1 + 0x140) != piVar2" (pointer_expression "*(int **)(param_1 + 0x140)" * (cast_expression "(int **)(param_1 + 0x140)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x140)" ( (binary_expression "param_1 + 0x140" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00098b30(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}" (primitive_type "int") (function_declarator "FUN_00098b30(int param_1,int param_2)" (identifier "FUN_00098b30") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  \n  piVar2 = *(int **)(param_1 + 0x13c);\n  if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }\n  return param_2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x13c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x13c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x13c)" (* "*") (cast_expression "(int **)(param_1 + 0x13c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x13c)" (( "(") (binary_expression "param_1 + 0x13c" (identifier "param_1") (+ "+") (number_literal "0x13c")) () ")"))))) (; ";")) (if_statement "if (piVar2 != *(int **)(param_1 + 0x140)) {\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }" (if "if") (parenthesized_expression "(piVar2 != *(int **)(param_1 + 0x140))" (( "(") (binary_expression "piVar2 != *(int **)(param_1 + 0x140)" (identifier "piVar2") (!= "!=") (pointer_expression "*(int **)(param_1 + 0x140)" (* "*") (cast_expression "(int **)(param_1 + 0x140)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);\n  }" ({ "{") (do_statement "do {\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    } while (*(int **)(param_1 + 0x140) != piVar2);" (do "do") (compound_statement "{\n      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }\n      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }\n      param_2 = param_2 + 1;\n      piVar2 = piVar2 + 1;\n    }" ({ "{") (while_statement "while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }" (while "while") (parenthesized_expression "(piVar1 = (int *)*piVar2, piVar1[0x18] != -1)" (( "(") (comma_expression "piVar1 = (int *)*piVar2, piVar1[0x18] != -1" (assignment_expression "piVar1 = (int *)*piVar2" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (, ",") (binary_expression "piVar1[0x18] != -1" (subscript_expression "piVar1[0x18]" (identifier "piVar1") ([ "[") (number_literal "0x18") (] "]")) (!= "!=") (number_literal "-1"))) () ")")) (compound_statement "{\n        piVar2 = piVar2 + 1;\n        if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }\n      }" ({ "{") (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(int **)(param_1 + 0x140) == piVar2) {\n          return param_2;\n        }" (if "if") (parenthesized_expression "(*(int **)(param_1 + 0x140) == piVar2)" (( "(") (binary_expression "*(int **)(param_1 + 0x140) == piVar2" (pointer_expression "*(int **)(param_1 + 0x140)" (* "*") (cast_expression "(int **)(param_1 + 0x140)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")")))) (== "==") (identifier "piVar2")) () ")")) (compound_statement "{\n          return param_2;\n        }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}"))) (if_statement "if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {\n        piVar1[0x18] = param_2;\n      }\n      else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" (if "if") (parenthesized_expression "(*(code **)(*piVar1 + 0x30) == FUN_000a4c30)" (( "(") (binary_expression "*(code **)(*piVar1 + 0x30) == FUN_000a4c30" (pointer_expression "*(code **)(*piVar1 + 0x30)" (* "*") (cast_expression "(code **)(*piVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x30)" (( "(") (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x30")) () ")")))) (== "==") (identifier "FUN_000a4c30")) () ")")) (compound_statement "{\n        piVar1[0x18] = param_2;\n      }" ({ "{") (expression_statement "piVar1[0x18] = param_2;" (assignment_expression "piVar1[0x18] = param_2" (subscript_expression "piVar1[0x18]" (identifier "piVar1") ([ "[") (number_literal "0x18") (] "]")) (= "=") (identifier "param_2")) (; ";")) (} "}")) (else_clause "else {\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" (else "else") (compound_statement "{\n        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);\n      }" ({ "{") (expression_statement "(**(code **)(*piVar1 + 0x30))(piVar1,param_2);" (call_expression "(**(code **)(*piVar1 + 0x30))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x30))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x30)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x30)" (* "*") (cast_expression "(code **)(*piVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x30)" (( "(") (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(piVar1,param_2)" (( "(") (identifier "piVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = piVar2 + 1;" (assignment_expression "piVar2 = piVar2 + 1" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int **)(param_1 + 0x140) != piVar2)" (( "(") (binary_expression "*(int **)(param_1 + 0x140) != piVar2" (pointer_expression "*(int **)(param_1 + 0x140)" (* "*") (cast_expression "(int **)(param_1 + 0x140)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x140)" (( "(") (binary_expression "param_1 + 0x140" (identifier "param_1") (+ "+") (number_literal "0x140")) () ")")))) (!= "!=") (identifier "piVar2")) () ")")) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint set_section_indexes(Layout * this, uint shndx) */

type_1 __thiscall var_1::type_2::function_1(type_2 *this,type_1 var_6)

{
  type_3 *pOVar1;
  type_4 *var_5;
  type_5 var_4;
  
  var_4 = (this->unattached_section_list_).
            super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->unattached_section_list_).
      super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>._M_impl.
      _M_finish) {
    do {
      while (pOVar1 = *var_4, pOVar1->out_shndx_ != 0xffffffff) {
        var_4 = var_4 + 1;
        if ((this->unattached_section_list_).
            super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
            _M_impl._M_finish == var_4) {
          return var_6;
        }
      }
      var_5 = (pOVar1->super_Output_data)._vptr_Output_data[0xc];
      if (var_5 == type_3::do_set_out_shndx) {
        pOVar1->out_shndx_ = var_6;
      }
      else {
        (*var_5)(pOVar1,var_6);
      }
      var_6 = var_6 + 1;
      var_4 = var_4 + 1;
    } while ((this->unattached_section_list_).
             super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
             _M_impl._M_finish != var_4);
  }
  return var_6;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(int param_1,int param_2)

{
  int *piVar1;
  int *piVar2;
  
  piVar2 = *(int **)(param_1 + 0x13c);
  if (piVar2 != *(int **)(param_1 + 0x140)) {
    do {
      while (piVar1 = (int *)*piVar2, piVar1[0x18] != -1) {
        piVar2 = piVar2 + 1;
        if (*(int **)(param_1 + 0x140) == piVar2) {
          return param_2;
        }
      }
      if (*(code **)(*piVar1 + 0x30) == FUN_000a4c30) {
        piVar1[0x18] = param_2;
      }
      else {
        (**(code **)(*piVar1 + 0x30))(piVar1,param_2);
      }
      param_2 = param_2 + 1;
      piVar2 = piVar2 + 1;
    } while (*(int **)(param_1 + 0x140) != piVar2);
  }
  return param_2;
}

