
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void set_tls_offsets(Output_segment * this) */

void __thiscall gold::Output_segment::set_tls_offsets(Output_segment *this)

{
  Output_data *pOVar1;
  pointer ppOVar2;
  
  if (this->type_ != 7) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");
  }
  ppOVar2 = this->output_lists_[0].
            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.
            _M_start;
  if (ppOVar2 !=
      this->output_lists_[0].
      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish)
  {
    do {
      pOVar1 = *ppOVar2;
      ppOVar2 = ppOVar2 + 1;
      (*pOVar1->_vptr_Output_data[0x11])
                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));
    } while (this->output_lists_[0].
             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.
             _M_finish != ppOVar2);
  }
  return;
}



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

void __regparm1 FUN_000eb860(undefined4 param_1,int *param_2)

{
  int *piVar1;
  undefined4 *puVar2;
  
  if (param_2[0x65] != 7) {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);
  }
  puVar2 = (undefined4 *)*param_2;
  if (puVar2 != (undefined4 *)param_2[1]) {
    do {
      piVar1 = (int *)*puVar2;
      puVar2 = puVar2 + 1;
      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);
    } while ((undefined4 *)param_2[1] != puVar2);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x253799
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
CMP dword ptr [ESI + 0x194],0x7
JNZ 0x000eb8b0
MOV EBX,dword ptr [ESI]
CMP EBX,dword ptr [ESI + 0x4]
JZ 0x000eb8aa
LEA ESI,[ESI]
MOV EAX,dword ptr [EBX]
SUB ESP,0x4
ADD EBX,0x4
MOV EDX,dword ptr [EAX]
PUSH dword ptr [ESI + 0x160]
PUSH dword ptr [ESI + 0x15c]
PUSH EAX
CALL dword ptr [EDX + 0x44]
ADD ESP,0x10
CMP dword ptr [ESI + 0x4],EBX
JNZ 0x000eb888
ADD ESP,0x4
POP EBX
POP ESI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff1e80c]
PUSH EAX
LEA EAX,[EBX + 0xfff1d94b]
PUSH 0x12bb
PUSH EAX
CALL 0x0008b620
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm1 FUN_000eb860(undefined4 param_1,int *param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm1 FUN_000eb860(undefined4 param_1,int *param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_000eb860(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_2[0x65] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }" if (parenthesized_expression "(param_2[0x65] != 7)" ( (binary_expression "param_2[0x65] != 7" (subscript_expression "param_2[0x65]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }" { comment (expression_statement "FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);" (call_expression "FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1)" identifier (argument_list "("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""set_tls_offsets"" " string_content ") , identifier ))) ;) })) (expression_statement "puVar2 = (undefined4 *)*param_2;" (assignment_expression "puVar2 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)param_2[1])" ( (binary_expression "puVar2 != (undefined4 *)param_2[1]" identifier != (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" { (do_statement "do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);" do (compound_statement "{\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    }" { (expression_statement "piVar1 = (int *)*puVar2;" (assignment_expression "piVar1 = (int *)*puVar2" identifier = (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "(**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);" (call_expression "(**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58])" (parenthesized_expression "(**(code **)(*piVar1 + 0x44))" ( (pointer_expression "**(code **)(*piVar1 + 0x44)" * (pointer_expression "*(code **)(*piVar1 + 0x44)" * (cast_expression "(code **)(*piVar1 + 0x44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x44)" ( (binary_expression "*piVar1 + 0x44" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2[0x57],param_2[0x58])" ( identifier , (subscript_expression "param_2[0x57]" identifier [ number_literal ]) , (subscript_expression "param_2[0x58]" identifier [ number_literal ]) ))) ;) }) while (parenthesized_expression "((undefined4 *)param_2[1] != puVar2)" ( (binary_expression "(undefined4 *)param_2[1] != puVar2" (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void set_tls_offsets(Output_segment * this) */\n\nvoid __thiscall gold::Output_segment::set_tls_offsets(Output_segment *this)\n\n{\n  Output_data *pOVar1;\n  pointer ppOVar2;\n  \n  if (this->type_ != 7) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n            _M_start;\n  if (ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish)\n  {\n    do {\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    } while (this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2);\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Output_segment::set_tls_offsets(Output_segment *this)\n\n{\n  Output_data *pOVar1;\n  pointer ppOVar2;\n  \n  if (this->type_ != 7) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n            _M_start;\n  if (ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish)\n  {\n    do {\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    } while (this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_segment::" identifier : : identifier : :) (function_declarator "set_tls_offsets(Output_segment *this)" identifier (parameter_list "(Output_segment *this)" ( (parameter_declaration "Output_segment *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Output_data *pOVar1;\n  pointer ppOVar2;\n  \n  if (this->type_ != 7) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n            _M_start;\n  if (ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish)\n  {\n    do {\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    } while (this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2);\n  }\n  return;\n}" { (declaration "Output_data *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "pointer ppOVar2;" type_identifier identifier ;) (if_statement "if (this->type_ != 7) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" if (parenthesized_expression "(this->type_ != 7)" ( (binary_expression "this->type_ != 7" (field_expression "this->type_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x12bb,"set_tls_offsets")" identifier (argument_list "("../../gold/output.cc",0x12bb,"set_tls_offsets")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""set_tls_offsets"" " string_content ") ))) ;) })) (expression_statement "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n            _M_start;" (field_expression "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n            _M_start" (field_expression "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl" (binary_expression "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_" (binary_expression "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std::allocator<gold" (binary_expression "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold::Output_data*,_std" (assignment_expression "ppOVar2 = this->output_lists_[0].\n            super__Vector_base<gold" identifier = (binary_expression "this->output_lists_[0].\n            super__Vector_base<gold" (field_expression "this->output_lists_[0].\n            super__Vector_base" (subscript_expression "this->output_lists_[0]" (field_expression "this->output_lists_" identifier -> field_identifier) [ number_literal ]) . field_identifier) < identifier)) (ERROR "::Output_data" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish)\n  {\n    do {\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    } while (this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2);\n  }" if (parenthesized_expression "(ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish)" ( (field_expression "ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl._M_finish" (field_expression "ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl" (binary_expression "ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_" (binary_expression "ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std::allocator<gold" (binary_expression "ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold::Output_data*,_std" (binary_expression "ppOVar2 !=\n      this->output_lists_[0].\n      super__Vector_base<gold" identifier != (binary_expression "this->output_lists_[0].\n      super__Vector_base<gold" (field_expression "this->output_lists_[0].\n      super__Vector_base" (subscript_expression "this->output_lists_[0]" (field_expression "this->output_lists_" identifier -> field_identifier) [ number_literal ]) . field_identifier) < identifier)) (ERROR "::Output_data" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    } while (this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2);\n  }" { (do_statement "do {\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    } while (this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2);" do (compound_statement "{\n      pOVar1 = *ppOVar2;\n      ppOVar2 = ppOVar2 + 1;\n      (*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));\n    }" { (expression_statement "pOVar1 = *ppOVar2;" (assignment_expression "pOVar1 = *ppOVar2" identifier = (pointer_expression "*ppOVar2" * identifier)) ;) (expression_statement "ppOVar2 = ppOVar2 + 1;" (assignment_expression "ppOVar2 = ppOVar2 + 1" identifier = (binary_expression "ppOVar2 + 1" identifier + number_literal)) ;) (expression_statement "(*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4));" (call_expression "(*pOVar1->_vptr_Output_data[0x11])\n                (pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4))" (parenthesized_expression "(*pOVar1->_vptr_Output_data[0x11])" ( (pointer_expression "*pOVar1->_vptr_Output_data[0x11]" * (subscript_expression "pOVar1->_vptr_Output_data[0x11]" (field_expression "pOVar1->_vptr_Output_data" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(pOVar1,(int)this->vaddr_,*(undefined4 *)((int)&this->vaddr_ + 4))" ( identifier , (cast_expression "(int)this->vaddr_" ( (type_descriptor "int" primitive_type) ) (field_expression "this->vaddr_" identifier -> field_identifier)) , (pointer_expression "*(undefined4 *)((int)&this->vaddr_ + 4)" * (cast_expression "(undefined4 *)((int)&this->vaddr_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->vaddr_ + 4)" ( (binary_expression "(int)&this->vaddr_ + 4" (cast_expression "(int)&this->vaddr_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->vaddr_" & (field_expression "this->vaddr_" identifier -> field_identifier))) + number_literal) )))) ))) ;) }) while (parenthesized_expression "(this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2)" ( (binary_expression "this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish != ppOVar2" (field_expression "this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.\n             _M_finish" (field_expression "this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl" (binary_expression "this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_" (binary_expression "this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std::allocator<gold" (binary_expression "this->output_lists_[0].\n             super__Vector_base<gold::Output_data*,_std" (binary_expression "this->output_lists_[0].\n             super__Vector_base<gold" (field_expression "this->output_lists_[0].\n             super__Vector_base" (subscript_expression "this->output_lists_[0]" (field_expression "this->output_lists_" identifier -> field_identifier) [ number_literal ]) . field_identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm1 FUN_000eb860(undefined4 param_1,int *param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}\n\n" (function_definition "void __regparm1 FUN_000eb860(undefined4 param_1,int *param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}" primitive_type (ERROR "__regparm1" identifier) (function_declarator "FUN_000eb860(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }" if (parenthesized_expression "(param_2[0x65] != 7)" ( (binary_expression "param_2[0x65] != 7" (subscript_expression "param_2[0x65]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }" { (expression_statement "FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);" (call_expression "FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1)" identifier (argument_list "("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""set_tls_offsets"" " string_content ") , identifier ))) ;) })) (expression_statement "puVar2 = (undefined4 *)*param_2;" (assignment_expression "puVar2 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)param_2[1])" ( (binary_expression "puVar2 != (undefined4 *)param_2[1]" identifier != (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" { (do_statement "do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);" do (compound_statement "{\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    }" { (expression_statement "piVar1 = (int *)*puVar2;" (assignment_expression "piVar1 = (int *)*puVar2" identifier = (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) (expression_statement "(**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);" (call_expression "(**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58])" (parenthesized_expression "(**(code **)(*piVar1 + 0x44))" ( (pointer_expression "**(code **)(*piVar1 + 0x44)" * (pointer_expression "*(code **)(*piVar1 + 0x44)" * (cast_expression "(code **)(*piVar1 + 0x44)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x44)" ( (binary_expression "*piVar1 + 0x44" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2[0x57],param_2[0x58])" ( identifier , (subscript_expression "param_2[0x57]" identifier [ number_literal ]) , (subscript_expression "param_2[0x58]" identifier [ number_literal ]) ))) ;) }) while (parenthesized_expression "((undefined4 *)param_2[1] != puVar2)" ( (binary_expression "(undefined4 *)param_2[1] != puVar2" (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , 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 { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void __regparm1 FUN_000eb860(undefined4 param_1,int *param_2)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm1" (identifier "__regparm1")) (function_declarator "FUN_000eb860(undefined4 param_1,int *param_2)" (identifier "FUN_000eb860") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  \n  if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_2[0x65] != 7) {\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }" (if "if") (parenthesized_expression "(param_2[0x65] != 7)" (( "(") (binary_expression "param_2[0x65] != 7" (subscript_expression "param_2[0x65]" (identifier "param_2") ([ "[") (number_literal "0x65") (] "]")) (!= "!=") (number_literal "7")) () ")")) (compound_statement "{\n                    \n    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);\n  }" ({ "{") (expression_statement "FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);" (call_expression "FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1)" (identifier "FUN_0008b620") (argument_list "("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x12bb") (, ",") (string_literal ""set_tls_offsets"" (" """) (string_content "set_tls_offsets") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)*param_2;" (assignment_expression "puVar2 = (undefined4 *)*param_2" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)param_2[1])" (( "(") (binary_expression "puVar2 != (undefined4 *)param_2[1]" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)param_2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" ({ "{") (do_statement "do {\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    } while ((undefined4 *)param_2[1] != puVar2);" (do "do") (compound_statement "{\n      piVar1 = (int *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);\n    }" ({ "{") (expression_statement "piVar1 = (int *)*puVar2;" (assignment_expression "piVar1 = (int *)*puVar2" (identifier "piVar1") (= "=") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);" (call_expression "(**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58])" (parenthesized_expression "(**(code **)(*piVar1 + 0x44))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x44)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x44)" (* "*") (cast_expression "(code **)(*piVar1 + 0x44)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x44)" (( "(") (binary_expression "*piVar1 + 0x44" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x44")) () ")"))))) () ")")) (argument_list "(piVar1,param_2[0x57],param_2[0x58])" (( "(") (identifier "piVar1") (, ",") (subscript_expression "param_2[0x57]" (identifier "param_2") ([ "[") (number_literal "0x57") (] "]")) (, ",") (subscript_expression "param_2[0x58]" (identifier "param_2") ([ "[") (number_literal "0x58") (] "]")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)param_2[1] != puVar2)" (( "(") (binary_expression "(undefined4 *)param_2[1] != puVar2" (cast_expression "(undefined4 *)param_2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void set_tls_offsets(Output_segment * this) */

void __thiscall var_2::type_1::function_1(type_1 *this)

{
  type_2 *pOVar1;
  type_3 var_5;
  
  if (this->type_ != 7) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/output.cc",0x12bb,"set_tls_offsets");
  }
  var_5 = this->output_lists_[0].
            super__Vector_base<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>._M_impl.
            _M_start;
  if (var_5 !=
      this->output_lists_[0].
      super__Vector_base<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>._M_impl._M_finish)
  {
    do {
      pOVar1 = *var_5;
      var_5 = var_5 + 1;
      (*pOVar1->_vptr_Output_data[0x11])
                (pOVar1,(int)this->vaddr_,*(type_4 *)((int)&this->vaddr_ + 4));
    } while (this->output_lists_[0].
             super__Vector_base<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>._M_impl.
             _M_finish != var_5);
  }
  return;
}


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

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

void __regparm1 MASKED(undefined4 param_1,int *param_2)

{
  int *piVar1;
  undefined4 *puVar2;
  
  if (param_2[0x65] != 7) {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620("../../gold/output.cc",0x12bb,"set_tls_offsets",param_1);
  }
  puVar2 = (undefined4 *)*param_2;
  if (puVar2 != (undefined4 *)param_2[1]) {
    do {
      piVar1 = (int *)*puVar2;
      puVar2 = puVar2 + 1;
      (**(code **)(*piVar1 + 0x44))(piVar1,param_2[0x57],param_2[0x58]);
    } while ((undefined4 *)param_2[1] != puVar2);
  }
  return;
}

