
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t do_output_section_offset(Sized_relobj<64,_false> * this, uint
   shndx) */

uint64_t __thiscall
gold::Sized_relobj<64,_false>::do_output_section_offset(Sized_relobj<64,_false> *this,uint shndx)

{
  pointer puVar1;
  
  puVar1 = (this->section_offsets_).
           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>.
           _M_impl._M_start;
  if (shndx < (uint)((int)(this->section_offsets_).
                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>
                          ._M_impl._M_finish - (int)puVar1 >> 3)) {
    return CONCAT44(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx]);
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");
}



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

undefined8 FUN_00037fc0(int param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = *(int *)(param_1 + 0x84);
  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;
  if (param_2 < uVar2) {
    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);
}


PUSH EBX
CALL 0x00032730
ADD EBX,0x2ca03a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [EAX + 0x84]
MOV EAX,dword ptr [EAX + 0x88]
SUB EAX,EDX
SAR EAX,0x3
CMP ECX,EAX
JNC 0x00037ff8
MOV EAX,dword ptr [EDX + ECX*0x8]
MOV EDX,dword ptr [EDX + ECX*0x8 + 0x4]
ADD ESP,0x8
POP EBX
RET
PUSH EAX
LEA EAX,[EBX + 0xfff19074]
PUSH EAX
LEA EAX,[EBX + 0xfff1801a]
PUSH 0x7f7
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 FUN_00037fc0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}\n\n" comment (function_definition "undefined8 FUN_00037fc0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}" type_identifier (function_declarator "FUN_00037fc0(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;" (assignment_expression "uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3" identifier = (binary_expression "*(int *)(param_1 + 0x88) - iVar1 >> 3" (binary_expression "*(int *)(param_1 + 0x88) - iVar1" (pointer_expression "*(int *)(param_1 + 0x88)" * (cast_expression "(int *)(param_1 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) )))) - identifier) >> number_literal)) ;) (if_statement "if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }" { (return_statement "return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));" return (call_expression "CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8))" identifier (argument_list "(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8))" ( (pointer_expression "*(undefined4 *)(iVar1 + 4 + param_2 * 8)" * (cast_expression "(undefined4 *)(iVar1 + 4 + param_2 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4 + param_2 * 8)" ( (binary_expression "iVar1 + 4 + param_2 * 8" (binary_expression "iVar1 + 4" identifier + number_literal) + (binary_expression "param_2 * 8" identifier * number_literal)) )))) , (pointer_expression "*(undefined4 *)(iVar1 + param_2 * 8)" * (cast_expression "(undefined4 *)(iVar1 + param_2 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_2 * 8)" ( (binary_expression "iVar1 + param_2 * 8" identifier + (binary_expression "param_2 * 8" identifier * number_literal)) )))) ))) ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);" (call_expression "FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2)" identifier (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2)" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""get_output_section_offset"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: uint64_t do_output_section_offset(Sized_relobj<64,_false> * this, uint\n   shndx) */\n\nuint64_t __thiscall\ngold::Sized_relobj<64,_false>::do_output_section_offset(Sized_relobj<64,_false> *this,uint shndx)\n\n{\n  pointer puVar1;\n  \n  puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>.\n           _M_impl._M_start;\n  if (shndx < (uint)((int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3)) {\n    return CONCAT44(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx]);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");\n}\n\n" comment comment (declaration "uint64_t __thiscall\ngold::Sized_relobj<64,_false>::do_output_section_offset(Sized_relobj<64,_false> *this,uint shndx)\n\n{\n  pointer puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::do_output_section_offset(Sized_relobj<64,_false> *this,uint shndx)\n\n{\n  pointer" identifier > : : (function_declarator "do_output_section_offset(Sized_relobj<64,_false> *this,uint shndx)" identifier (parameter_list "(Sized_relobj<64,_false> *this,uint shndx)" ( (parameter_declaration "Sized_relobj" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) ))) { identifier) identifier ;) (expression_statement "puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>.\n           _M_impl._M_start;" (field_expression "puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>.\n           _M_impl._M_start" (field_expression "puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>.\n           _M_impl" (binary_expression "puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_" (binary_expression "puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int" (assignment_expression "puVar1 = (this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int" identifier = (binary_expression "(this->section_offsets_).\n           super__Vector_base<long_long_unsigned_int" (field_expression "(this->section_offsets_).\n           super__Vector_base" (parenthesized_expression "(this->section_offsets_)" ( (field_expression "this->section_offsets_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR ",_std::allocator" , identifier : : identifier) < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (shndx < (uint)((int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3)) {\n    return CONCAT44(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx]);\n  }" if (parenthesized_expression "(shndx < (uint)((int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3))" ( (binary_expression "shndx < (uint)((int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3)" identifier < (call_expression "(uint)((int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int,_std::allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3)" ( (binary_expression "(int)(this->section_offsets_).\n                          super__Vector_base<long_long_unsigned_int" (cast_expression "(int)(this->section_offsets_).\n                          super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->section_offsets_).\n                          super__Vector_base" (parenthesized_expression "(this->section_offsets_)" ( (field_expression "this->section_offsets_" identifier -> field_identifier) )) . field_identifier)) < identifier) , (ERROR "_std::" identifier : :) (binary_expression "allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1 >> 3" (binary_expression "allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish - (int)puVar1" (field_expression "allocator<long_long_unsigned_int>_>\n                          ._M_impl._M_finish" (field_expression "allocator<long_long_unsigned_int>_>\n                          ._M_impl" (binary_expression "allocator<long_long_unsigned_int>_" (binary_expression "allocator<long_long_unsigned_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    return CONCAT44(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx]);\n  }" { (return_statement "return CONCAT44(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx]);" return (call_expression "CONCAT44(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx])" identifier (argument_list "(*(undefined4 *)((int)puVar1 + shndx * 8 + 4),(int)puVar1[shndx])" ( (pointer_expression "*(undefined4 *)((int)puVar1 + shndx * 8 + 4)" * (cast_expression "(undefined4 *)((int)puVar1 + shndx * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + shndx * 8 + 4)" ( (binary_expression "(int)puVar1 + shndx * 8 + 4" (binary_expression "(int)puVar1 + shndx * 8" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "shndx * 8" identifier * number_literal)) + number_literal) )))) , (cast_expression "(int)puVar1[shndx]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar1[shndx]" identifier [ identifier ])) ))) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");" (call_expression "do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset")" identifier (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""get_output_section_offset"" " string_content ") ))) ;) (ERROR "}" }))
(translation_unit "undefined8 FUN_00037fc0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}\n\n" (function_definition "undefined8 FUN_00037fc0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}" type_identifier (function_declarator "FUN_00037fc0(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;" (assignment_expression "uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3" identifier = (binary_expression "*(int *)(param_1 + 0x88) - iVar1 >> 3" (binary_expression "*(int *)(param_1 + 0x88) - iVar1" (pointer_expression "*(int *)(param_1 + 0x88)" * (cast_expression "(int *)(param_1 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x88)" ( (binary_expression "param_1 + 0x88" identifier + number_literal) )))) - identifier) >> number_literal)) ;) (if_statement "if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }" if (parenthesized_expression "(param_2 < uVar2)" ( (binary_expression "param_2 < uVar2" identifier < identifier) )) (compound_statement "{\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }" { (return_statement "return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));" return (call_expression "CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8))" identifier (argument_list "(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8))" ( (pointer_expression "*(undefined4 *)(iVar1 + 4 + param_2 * 8)" * (cast_expression "(undefined4 *)(iVar1 + 4 + param_2 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4 + param_2 * 8)" ( (binary_expression "iVar1 + 4 + param_2 * 8" (binary_expression "iVar1 + 4" identifier + number_literal) + (binary_expression "param_2 * 8" identifier * number_literal)) )))) , (pointer_expression "*(undefined4 *)(iVar1 + param_2 * 8)" * (cast_expression "(undefined4 *)(iVar1 + param_2 * 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_2 * 8)" ( (binary_expression "iVar1 + param_2 * 8" identifier + (binary_expression "param_2 * 8" identifier * number_literal)) )))) ))) ;) })) (expression_statement "FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);" (call_expression "FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2)" identifier (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2)" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""get_output_section_offset"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "undefined8 FUN_00037fc0(int param_1,uint param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}" (type_identifier "undefined8") (function_declarator "FUN_00037fc0(int param_1,uint param_2)" (identifier "FUN_00037fc0") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x84);\n  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;\n  if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }\n                    \n  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x84)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;" (assignment_expression "uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3" (identifier "uVar2") (= "=") (binary_expression "*(int *)(param_1 + 0x88) - iVar1 >> 3" (binary_expression "*(int *)(param_1 + 0x88) - iVar1" (pointer_expression "*(int *)(param_1 + 0x88)" (* "*") (cast_expression "(int *)(param_1 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x88)" (( "(") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")")))) (- "-") (identifier "iVar1")) (>> ">>") (number_literal "3"))) (; ";")) (if_statement "if (param_2 < uVar2) {\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }" (if "if") (parenthesized_expression "(param_2 < uVar2)" (( "(") (binary_expression "param_2 < uVar2" (identifier "param_2") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));\n  }" ({ "{") (return_statement "return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));" (return "return") (call_expression "CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8))" (identifier "CONCAT44") (argument_list "(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 4 + param_2 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4 + param_2 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4 + param_2 * 8)" (( "(") (binary_expression "iVar1 + 4 + param_2 * 8" (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) (+ "+") (binary_expression "param_2 * 8" (identifier "param_2") (* "*") (number_literal "8"))) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + param_2 * 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + param_2 * 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + param_2 * 8)" (( "(") (binary_expression "iVar1 + param_2 * 8" (identifier "iVar1") (+ "+") (binary_expression "param_2 * 8" (identifier "param_2") (* "*") (number_literal "8"))) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);" (call_expression "FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2)" (( "(") (string_literal ""../../gold/object.h"" (" """) (string_content "../../gold/object.h") (" """)) (, ",") (number_literal "0x7f7") (, ",") (string_literal ""get_output_section_offset"" (" """) (string_content "get_output_section_offset") (" """)) (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t do_output_section_offset(Sized_relobj<64,_false> * this, uint
   shndx) */

uint64_t __thiscall
gold::Sized_relobj<64,_false>::do_output_section_offset(Sized_relobj<64,_false> *this,uint var_3)

{
  pointer puVar1;
  
  puVar1 = (this->section_offsets_).
           super__Vector_base<var_1,_std::var_4<var_1>var_2>.
           _M_impl._M_start;
  if (var_3 < (uint)((int)(this->section_offsets_).
                          super__Vector_base<var_1,_std::var_4<var_1>var_2>
                          ._M_impl._M_finish - (int)puVar1 >> 3)) {
    return var_5(*(type_1 *)((int)puVar1 + var_3 * 8 + 4),(int)puVar1[var_3]);
  }
                    /* WARNING: Subroutine does not return */
  var_6("../../gold/object.h",0x7f7,"get_output_section_offset");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

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

undefined8 MASKED(int param_1,uint param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = *(int *)(param_1 + 0x84);
  uVar2 = *(int *)(param_1 + 0x88) - iVar1 >> 3;
  if (param_2 < uVar2) {
    return CONCAT44(*(undefined4 *)(iVar1 + 4 + param_2 * 8),*(undefined4 *)(iVar1 + param_2 * 8));
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/object.h",0x7f7,"get_output_section_offset",uVar2);
}

