
/* 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,this->vaddr_);
    } while (this->output_lists_[0].
             super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>._M_impl.
             _M_finish != ppOVar2);
  }
  return;
}



void FUN_003cc3a0(long *param_1)

{
  long *plVar1;
  undefined8 *puVar2;
  
  if ((int)param_1[0x5e] != 7) {
                    /* WARNING: Subroutine does not return */
    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");
  }
  puVar2 = (undefined8 *)*param_1;
  if (puVar2 != (undefined8 *)param_1[1]) {
    do {
      plVar1 = (long *)*puVar2;
      puVar2 = puVar2 + 1;
      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);
    } while ((undefined8 *)param_1[1] != puVar2);
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
CMP dword ptr [RDI + 0x2f0],0x7
JNZ 0x003cc3e4
MOV RBP,RDI
MOV RBX,qword ptr [RDI]
CMP RBX,qword ptr [RDI + 0x8]
JZ 0x003cc3dd
NOP dword ptr [RAX + RAX*0x1]
MOV RDI,qword ptr [RBX]
MOV RSI,qword ptr [RBP + 0x2b8]
ADD RBX,0x8
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x88]
CMP qword ptr [RBP + 0x8],RBX
JNZ 0x003cc3c0
ADD RSP,0x8
POP RBX
POP RBP
RET
LEA RDX,[0x57af70]
MOV ESI,0x12bb
LEA RDI,[0x579596]
CALL 0x00352af0
(translation_unit "void FUN_003cc3a0(long *param_1)\n\n{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_003cc3a0(long *param_1)\n\n{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003cc3a0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if ((int)param_1[0x5e] != 7) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" if (parenthesized_expression "((int)param_1[0x5e] != 7)" ( (binary_expression "(int)param_1[0x5e] != 7" (cast_expression "(int)param_1[0x5e]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x5e]" identifier [ number_literal ])) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" { comment (expression_statement "FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");" (call_expression "FUN_00352af0("../../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 "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined8 *)param_1[1])" ( (binary_expression "puVar2 != (undefined8 *)param_1[1]" identifier != (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }" { (do_statement "do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);" do (compound_statement "{\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    }" { (expression_statement "plVar1 = (long *)*puVar2;" (assignment_expression "plVar1 = (long *)*puVar2" identifier = (cast_expression "(long *)*puVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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 **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);" (call_expression "(**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57])" (parenthesized_expression "(**(code **)(*plVar1 + 0x88))" ( (pointer_expression "**(code **)(*plVar1 + 0x88)" * (pointer_expression "*(code **)(*plVar1 + 0x88)" * (cast_expression "(code **)(*plVar1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x88)" ( (binary_expression "*plVar1 + 0x88" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_1[0x57])" ( identifier , (subscript_expression "param_1[0x57]" identifier [ number_literal ]) ))) ;) }) while (parenthesized_expression "((undefined8 *)param_1[1] != puVar2)" ( (binary_expression "(undefined8 *)param_1[1] != puVar2" (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* 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])(pOVar1,this->vaddr_);\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 (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])(pOVar1,this->vaddr_);\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])(pOVar1,this->vaddr_);\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])(pOVar1,this->vaddr_);\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])(pOVar1,this->vaddr_);\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])(pOVar1,this->vaddr_);\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])(pOVar1,this->vaddr_);\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])(pOVar1,this->vaddr_);" (call_expression "(*pOVar1->_vptr_Output_data[0x11])(pOVar1,this->vaddr_)" (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,this->vaddr_)" ( identifier , (field_expression "this->vaddr_" identifier -> field_identifier) ))) ;) }) 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 FUN_003cc3a0(long *param_1)\n\n{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_003cc3a0(long *param_1)\n\n{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_003cc3a0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" if (parenthesized_expression "((int)param_1[0x5e] != 7)" ( (binary_expression "(int)param_1[0x5e] != 7" (cast_expression "(int)param_1[0x5e]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0x5e]" identifier [ number_literal ])) != number_literal) )) (compound_statement "{\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" { (expression_statement "FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");" (call_expression "FUN_00352af0("../../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 "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" identifier = (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined8 *)param_1[1])" ( (binary_expression "puVar2 != (undefined8 *)param_1[1]" identifier != (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }" { (do_statement "do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);" do (compound_statement "{\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    }" { (expression_statement "plVar1 = (long *)*puVar2;" (assignment_expression "plVar1 = (long *)*puVar2" identifier = (cast_expression "(long *)*puVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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 **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);" (call_expression "(**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57])" (parenthesized_expression "(**(code **)(*plVar1 + 0x88))" ( (pointer_expression "**(code **)(*plVar1 + 0x88)" * (pointer_expression "*(code **)(*plVar1 + 0x88)" * (cast_expression "(code **)(*plVar1 + 0x88)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x88)" ( (binary_expression "*plVar1 + 0x88" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_1[0x57])" ( identifier , (subscript_expression "param_1[0x57]" identifier [ number_literal ]) ))) ;) }) while (parenthesized_expression "((undefined8 *)param_1[1] != puVar2)" ( (binary_expression "(undefined8 *)param_1[1] != puVar2" (cast_expression "(undefined8 *)param_1[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (sized_type_specifier long) (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 ]) ))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_003cc3a0(long *param_1)\n\n{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_003cc3a0(long *param_1)" (identifier "FUN_003cc3a0") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  undefined8 *puVar2;\n  \n  if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }\n  puVar2 = (undefined8 *)*param_1;\n  if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if ((int)param_1[0x5e] != 7) {\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" (if "if") (parenthesized_expression "((int)param_1[0x5e] != 7)" (( "(") (binary_expression "(int)param_1[0x5e] != 7" (cast_expression "(int)param_1[0x5e]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0x5e]" (identifier "param_1") ([ "[") (number_literal "0x5e") (] "]"))) (!= "!=") (number_literal "7")) () ")")) (compound_statement "{\n                    \n    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");\n  }" ({ "{") (expression_statement "FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");" (call_expression "FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets")" (identifier "FUN_00352af0") (argument_list "("../../gold/output.cc",0x12bb,"set_tls_offsets")" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x12bb") (, ",") (string_literal ""set_tls_offsets"" (" """) (string_content "set_tls_offsets") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined8 *)*param_1;" (assignment_expression "puVar2 = (undefined8 *)*param_1" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (puVar2 != (undefined8 *)param_1[1]) {\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined8 *)param_1[1])" (( "(") (binary_expression "puVar2 != (undefined8 *)param_1[1]" (identifier "puVar2") (!= "!=") (cast_expression "(undefined8 *)param_1[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);\n  }" ({ "{") (do_statement "do {\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    } while ((undefined8 *)param_1[1] != puVar2);" (do "do") (compound_statement "{\n      plVar1 = (long *)*puVar2;\n      puVar2 = puVar2 + 1;\n      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);\n    }" ({ "{") (expression_statement "plVar1 = (long *)*puVar2;" (assignment_expression "plVar1 = (long *)*puVar2" (identifier "plVar1") (= "=") (cast_expression "(long *)*puVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (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 **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);" (call_expression "(**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57])" (parenthesized_expression "(**(code **)(*plVar1 + 0x88))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x88)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x88)" (* "*") (cast_expression "(code **)(*plVar1 + 0x88)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x88)" (( "(") (binary_expression "*plVar1 + 0x88" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x88")) () ")"))))) () ")")) (argument_list "(plVar1,param_1[0x57])" (( "(") (identifier "plVar1") (, ",") (subscript_expression "param_1[0x57]" (identifier "param_1") ([ "[") (number_literal "0x57") (] "]")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined8 *)param_1[1] != puVar2)" (( "(") (binary_expression "(undefined8 *)param_1[1] != puVar2" (cast_expression "(undefined8 *)param_1[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* 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,this->vaddr_);
    } 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) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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))))))) (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: (sized_type_specifier) 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)))))) 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))))

void MASKED(long *param_1)

{
  long *plVar1;
  undefined8 *puVar2;
  
  if ((int)param_1[0x5e] != 7) {
                    /* WARNING: Subroutine does not return */
    FUN_00352af0("../../gold/output.cc",0x12bb,"set_tls_offsets");
  }
  puVar2 = (undefined8 *)*param_1;
  if (puVar2 != (undefined8 *)param_1[1]) {
    do {
      plVar1 = (long *)*puVar2;
      puVar2 = puVar2 + 1;
      (**(code **)(*plVar1 + 0x88))(plVar1,param_1[0x57]);
    } while ((undefined8 *)param_1[1] != puVar2);
  }
  return;
}

