
/* 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<32,_false> * this, uint
   shndx) */

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

{
  pointer puVar1;
  uint uVar2;
  
  puVar1 = (this->section_offsets_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.
           _M_impl._M_start;
  if ((uint)((int)(this->section_offsets_).
                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish
             - (int)puVar1 >> 2) <= shndx) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");
  }
  uVar2 = puVar1[shndx];
  if (uVar2 != 0xffffffff) {
    return (uint64_t)uVar2;
  }
  return 0xffffffffffffffff;
}



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

ulonglong FUN_0003bdb0(int param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;
  if (uVar1 <= param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);
  }
  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);
  if (uVar1 != 0xffffffff) {
    return (ulonglong)uVar1;
  }
  return 0xffffffffffffffff;
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x35324a
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,0x2
CMP ECX,EAX
JNC 0x0003bdff
MOV EAX,dword ptr [EDX + ECX*0x4]
CMP EAX,-0x1
JZ 0x0003bdf0
ADD ESP,0x8
XOR EDX,EDX
POP EBX
RET
ADD ESP,0x8
MOV EAX,0xffffffff
MOV EDX,0xffffffff
POP EBX
RET
PUSH EAX
LEA EAX,[EBX + 0xffef1fa4]
PUSH EAX
LEA EAX,[EBX + 0xffef101a]
PUSH 0x7f7
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nulonglong FUN_0003bdb0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}\n\n" comment (function_definition "ulonglong FUN_0003bdb0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}" type_identifier (function_declarator "FUN_0003bdb0(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  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;" (assignment_expression "uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2" identifier = (binary_expression "*(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2" (binary_expression "*(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84)" (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) )))) - (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) ))))) >> number_literal)) ;) (if_statement "if (uVar1 <= param_2) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }" if (parenthesized_expression "(uVar1 <= param_2)" ( (binary_expression "uVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }" { comment (expression_statement "FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);" (call_expression "FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1)" identifier (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1)" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""get_output_section_offset"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);" (assignment_expression "uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" identifier = (pointer_expression "*(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x84) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x84) + param_2 * 4" (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) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }" if (parenthesized_expression "(uVar1 != 0xffffffff)" ( (binary_expression "uVar1 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    return (ulonglong)uVar1;\n  }" { (return_statement "return (ulonglong)uVar1;" return (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })) (return_statement "return 0xffffffffffffffff;" return number_literal ;) })))
(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<32,_false> * this, uint\n   shndx) */\n\nuint64_t __thiscall\ngold::Sized_relobj<32,_false>::do_output_section_offset(Sized_relobj<32,_false> *this,uint shndx)\n\n{\n  pointer puVar1;\n  uint uVar2;\n  \n  puVar1 = (this->section_offsets_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.\n           _M_impl._M_start;\n  if ((uint)((int)(this->section_offsets_).\n                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2) <= shndx) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");\n  }\n  uVar2 = puVar1[shndx];\n  if (uVar2 != 0xffffffff) {\n    return (uint64_t)uVar2;\n  }\n  return 0xffffffffffffffff;\n}\n\n" comment comment (declaration "uint64_t __thiscall\ngold::Sized_relobj<32,_false>::do_output_section_offset(Sized_relobj<32,_false> *this,uint shndx)\n\n{\n  pointer puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_false>::do_output_section_offset(Sized_relobj<32,_false> *this,uint shndx)\n\n{\n  pointer" identifier > : : (function_declarator "do_output_section_offset(Sized_relobj<32,_false> *this,uint shndx)" identifier (parameter_list "(Sized_relobj<32,_false> *this,uint shndx)" ( (parameter_declaration "Sized_relobj" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) ))) { identifier) identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (ERROR "puVar1 = (this->section_offsets_).super__Vector_base<unsigned_int," (assignment_expression "puVar1 = (this->section_offsets_).super__Vector_base<unsigned_int" identifier = (binary_expression "(this->section_offsets_).super__Vector_base<unsigned_int" (field_expression "(this->section_offsets_).super__Vector_base" (parenthesized_expression "(this->section_offsets_)" ( (field_expression "this->section_offsets_" identifier -> field_identifier) )) . field_identifier) < identifier)) ,) (labeled_statement "_std::allocator<unsigned_int>_>.\n           _M_impl._M_start;" statement_identifier : (ERROR ":" :) (expression_statement "allocator<unsigned_int>_>.\n           _M_impl._M_start;" (field_expression "allocator<unsigned_int>_>.\n           _M_impl._M_start" (field_expression "allocator<unsigned_int>_>.\n           _M_impl" (binary_expression "allocator<unsigned_int>_" (binary_expression "allocator<unsigned_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;)) (if_statement "if ((uint)((int)(this->section_offsets_).\n                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2) <= shndx) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");\n  }" if (parenthesized_expression "((uint)((int)(this->section_offsets_).\n                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2) <= shndx)" ( (binary_expression "(uint)((int)(this->section_offsets_).\n                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2) <= shndx" (call_expression "(uint)((int)(this->section_offsets_).\n                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)(this->section_offsets_).\n                  super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2)" ( (binary_expression "(int)(this->section_offsets_).\n                  super__Vector_base<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<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1 >> 2" (binary_expression "allocator<unsigned_int>_>._M_impl._M_finish\n             - (int)puVar1" (field_expression "allocator<unsigned_int>_>._M_impl._M_finish" (field_expression "allocator<unsigned_int>_>._M_impl" (binary_expression "allocator<unsigned_int>_" (binary_expression "allocator<unsigned_int" identifier < identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) ))) <= identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");\n  }" { 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 ") ))) ;) })) (expression_statement "uVar2 = puVar1[shndx];" (assignment_expression "uVar2 = puVar1[shndx]" identifier = (subscript_expression "puVar1[shndx]" identifier [ identifier ])) ;) (if_statement "if (uVar2 != 0xffffffff) {\n    return (uint64_t)uVar2;\n  }" if (parenthesized_expression "(uVar2 != 0xffffffff)" ( (binary_expression "uVar2 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    return (uint64_t)uVar2;\n  }" { (return_statement "return (uint64_t)uVar2;" return (cast_expression "(uint64_t)uVar2" ( (type_descriptor "uint64_t" primitive_type) ) identifier) ;) })) (return_statement "return 0xffffffffffffffff;" return number_literal ;) (ERROR "}" }))
(translation_unit "ulonglong FUN_0003bdb0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}\n\n" (function_definition "ulonglong FUN_0003bdb0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}" type_identifier (function_declarator "FUN_0003bdb0(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  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;" (assignment_expression "uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2" identifier = (binary_expression "*(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2" (binary_expression "*(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84)" (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) )))) - (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) ))))) >> number_literal)) ;) (if_statement "if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }" if (parenthesized_expression "(uVar1 <= param_2)" ( (binary_expression "uVar1 <= param_2" identifier <= identifier) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }" { (expression_statement "FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);" (call_expression "FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1)" identifier (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1)" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""get_output_section_offset"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);" (assignment_expression "uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" identifier = (pointer_expression "*(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" * (cast_expression "(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x84) + param_2 * 4)" ( (binary_expression "*(int *)(param_1 + 0x84) + param_2 * 4" (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) )))) + (binary_expression "param_2 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }" if (parenthesized_expression "(uVar1 != 0xffffffff)" ( (binary_expression "uVar1 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n    return (ulonglong)uVar1;\n  }" { (return_statement "return (ulonglong)uVar1;" return (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })) (return_statement "return 0xffffffffffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE) ) IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "ulonglong FUN_0003bdb0(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}" (type_identifier "ulonglong") (function_declarator "FUN_0003bdb0(int param_1,uint param_2)" (identifier "FUN_0003bdb0") (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  uint uVar1;\n  \n  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;\n  if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }\n  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);\n  if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }\n  return 0xffffffffffffffff;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;" (assignment_expression "uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2" (identifier "uVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2" (binary_expression "*(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84)" (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")) () ")")))) (- "-") (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")) () ")"))))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (uVar1 <= param_2) {\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }" (if "if") (parenthesized_expression "(uVar1 <= param_2)" (( "(") (binary_expression "uVar1 <= param_2" (identifier "uVar1") (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);" (call_expression "FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1)" (identifier "FUN_00069d00") (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1)" (( "(") (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 "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);" (assignment_expression "uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" (* "*") (cast_expression "(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x84) + param_2 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x84) + param_2 * 4" (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")) () ")")))) (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar1 != 0xffffffff) {\n    return (ulonglong)uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 != 0xffffffff)" (( "(") (binary_expression "uVar1 != 0xffffffff" (identifier "uVar1") (!= "!=") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    return (ulonglong)uVar1;\n  }" ({ "{") (return_statement "return (ulonglong)uVar1;" (return "return") (cast_expression "(ulonglong)uVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar1")) (; ";")) (} "}"))) (return_statement "return 0xffffffffffffffff;" (return "return") (number_literal "0xffffffffffffffff") (; ";")) (} "}")))

/* 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<32,_false> * this, uint
   shndx) */

uint64_t __thiscall
gold::Sized_relobj<32,_false>::do_output_section_offset(Sized_relobj<32,_false> *this,type_1 var_4)

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


(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: (type_identifier) declarator: (identifier)) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (return_statement (number_literal)))))

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

ulonglong MASKED(int param_1,uint param_2)

{
  uint uVar1;
  
  uVar1 = *(int *)(param_1 + 0x88) - *(int *)(param_1 + 0x84) >> 2;
  if (uVar1 <= param_2) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/object.h",0x7f7,"get_output_section_offset",uVar1);
  }
  uVar1 = *(uint *)(*(int *)(param_1 + 0x84) + param_2 * 4);
  if (uVar1 != 0xffffffff) {
    return (ulonglong)uVar1;
  }
  return 0xffffffffffffffff;
}

