
/* 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)

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



ulong FUN_00156340(long param_1,uint param_2)

{
  uint uVar1;
  ulong uVar2;
  
  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {
    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);
    uVar2 = (ulong)uVar1;
    if (uVar1 == 0xffffffff) {
      uVar2 = 0xffffffffffffffff;
    }
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");
}


MOV RDX,qword ptr [RDI + 0xe0]
MOV RAX,qword ptr [RDI + 0xe8]
MOV ESI,ESI
SUB RAX,RDX
SAR RAX,0x2
CMP RSI,RAX
JNC 0x0015636e
MOV EAX,dword ptr [RDX + RSI*0x4]
MOV RDX,-0x1
CMP EAX,-0x1
CMOVZ RAX,RDX
RET
PUSH RAX
LEA RDX,[0x36c150]
MOV ESI,0x7f7
LEA RDI,[0x36b016]
CALL 0x0017c650
(translation_unit "ulong FUN_00156340(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}\n\n" (function_definition "ulong FUN_00156340(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}" type_identifier (function_declarator "FUN_00156340(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (if_statement "if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2))" ( (binary_expression "(ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier) < (call_expression "(ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" ( (binary_expression "*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2" (binary_expression "*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0)" (pointer_expression "*(long *)(param_1 + 0xe8)" * (cast_expression "(long *)(param_1 + 0xe8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0xe0)" * (cast_expression "(long *)(param_1 + 0xe0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) ))))) >> number_literal) )))) )) (compound_statement "{\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);" (assignment_expression "uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" identifier = (pointer_expression "*(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" * (cast_expression "(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" ( (binary_expression "*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4" (pointer_expression "*(long *)(param_1 + 0xe0)" * (cast_expression "(long *)(param_1 + 0xe0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) + (binary_expression "(ulong)param_2 * 4" (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffffffffffff;\n    }" { (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");" (call_expression "FUN_0017c650("../../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 ") ))) ;) })))
(translation_unit "/* 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  uint uVar1;\n  pointer puVar2;\n  uint64_t uVar3;\n  \n  puVar2 = (this->section_offsets_).super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>.\n           _M_impl._M_start;\n  if ((ulong)shndx <\n      (ulong)((long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)) {\n    uVar1 = puVar2[shndx];\n    uVar3 = (uint64_t)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar3 = 0xffffffffffffffff;\n    }\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/object.h",0x7f7,"get_output_section_offset");\n}\n\n" comment (declaration "uint64_t __thiscall\ngold::Sized_relobj<32,_false>::do_output_section_offset(Sized_relobj<32,_false> *this,uint shndx)\n\n{\n  uint uVar1;" 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  uint" 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 "pointer puVar2;" type_identifier identifier ;) (declaration "uint64_t uVar3;" primitive_type identifier ;) (ERROR "puVar2 = (this->section_offsets_).super__Vector_base<unsigned_int," (assignment_expression "puVar2 = (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 ((ulong)shndx <\n      (ulong)((long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)) {\n    uVar1 = puVar2[shndx];\n    uVar3 = (uint64_t)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar3 = 0xffffffffffffffff;\n    }\n    return uVar3;\n  }" if (parenthesized_expression "((ulong)shndx <\n      (ulong)((long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2))" ( (binary_expression "(ulong)shndx <\n      (ulong)((long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)" (cast_expression "(ulong)shndx" ( (type_descriptor "ulong" type_identifier) ) identifier) < (call_expression "(ulong)((long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int,_std::allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2 >> 2)" ( (binary_expression "(long)(this->section_offsets_).\n                    super__Vector_base<unsigned_int" (cast_expression "(long)(this->section_offsets_).\n                    super__Vector_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (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.\n                    _M_finish - (long)puVar2 >> 2" (binary_expression "allocator<unsigned_int>_>._M_impl.\n                    _M_finish - (long)puVar2" (field_expression "allocator<unsigned_int>_>._M_impl.\n                    _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 "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal) )))) )) (compound_statement "{\n    uVar1 = puVar2[shndx];\n    uVar3 = (uint64_t)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar3 = 0xffffffffffffffff;\n    }\n    return uVar3;\n  }" { (expression_statement "uVar1 = puVar2[shndx];" (assignment_expression "uVar1 = puVar2[shndx]" identifier = (subscript_expression "puVar2[shndx]" identifier [ identifier ])) ;) (expression_statement "uVar3 = (uint64_t)uVar1;" (assignment_expression "uVar3 = (uint64_t)uVar1" identifier = (cast_expression "(uint64_t)uVar1" ( (type_descriptor "uint64_t" primitive_type) ) identifier)) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      uVar3 = 0xffffffffffffffff;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0xffffffffffffffff;\n    }" { (expression_statement "uVar3 = 0xffffffffffffffff;" (assignment_expression "uVar3 = 0xffffffffffffffff" identifier = number_literal) ;) })) (return_statement "return uVar3;" return 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 "ulong FUN_00156340(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    \n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}\n\n" (function_definition "ulong FUN_00156340(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    \n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}" type_identifier (function_declarator "FUN_00156340(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    \n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (if_statement "if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }" if (parenthesized_expression "((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2))" ( (binary_expression "(ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier) < (call_expression "(ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" ( (binary_expression "*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2" (binary_expression "*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0)" (pointer_expression "*(long *)(param_1 + 0xe8)" * (cast_expression "(long *)(param_1 + 0xe8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0xe0)" * (cast_expression "(long *)(param_1 + 0xe0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) ))))) >> number_literal) )))) )) (compound_statement "{\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }" { (expression_statement "uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);" (assignment_expression "uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" identifier = (pointer_expression "*(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" * (cast_expression "(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" ( (binary_expression "*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4" (pointer_expression "*(long *)(param_1 + 0xe0)" * (cast_expression "(long *)(param_1 + 0xe0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) + (binary_expression "(ulong)param_2 * 4" (cast_expression "(ulong)param_2" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ))))) ;) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffffffffffff;\n    }" { (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");" (call_expression "FUN_0017c650("../../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 ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT) )))) )) (compound_statement { (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "ulong FUN_00156340(long param_1,uint param_2)\n\n{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    \n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}" (type_identifier "ulong") (function_declarator "FUN_00156340(long param_1,uint param_2)" (identifier "FUN_00156340") (parameter_list "(long param_1,uint param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  ulong uVar2;\n  \n  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }\n                    \n  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (if_statement "if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }" (if "if") (parenthesized_expression "((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2))" (( "(") (binary_expression "(ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (cast_expression "(ulong)param_2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_2")) (< "<") (call_expression "(ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)" (( "(") (binary_expression "*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2" (binary_expression "*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0)" (pointer_expression "*(long *)(param_1 + 0xe8)" (* "*") (cast_expression "(long *)(param_1 + 0xe8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe8)" (( "(") (binary_expression "param_1 + 0xe8" (identifier "param_1") (+ "+") (number_literal "0xe8")) () ")")))) (- "-") (pointer_expression "*(long *)(param_1 + 0xe0)" (* "*") (cast_expression "(long *)(param_1 + 0xe0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")"))))) (>> ">>") (number_literal "2")) () ")")))) () ")")) (compound_statement "{\n    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);\n    uVar2 = (ulong)uVar1;\n    if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);" (assignment_expression "uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" (* "*") (cast_expression "(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4)" (( "(") (binary_expression "*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4" (pointer_expression "*(long *)(param_1 + 0xe0)" (* "*") (cast_expression "(long *)(param_1 + 0xe0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")")))) (+ "+") (binary_expression "(ulong)param_2 * 4" (cast_expression "(ulong)param_2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_2")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" (identifier "uVar2") (= "=") (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1"))) (; ";")) (if_statement "if (uVar1 == 0xffffffff) {\n      uVar2 = 0xffffffffffffffff;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n      uVar2 = 0xffffffffffffffff;\n    }" ({ "{") (expression_statement "uVar2 = 0xffffffffffffffff;" (assignment_expression "uVar2 = 0xffffffffffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");" (call_expression "FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset")" (identifier "FUN_0017c650") (argument_list "("../../gold/object.h",0x7f7,"get_output_section_offset")" (( "(") (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") (" """)) () ")"))) (; ";")) (} "}")))

/* 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)

{
  uint var_4;
  type_1 puVar2;
  uint64_t uVar3;
  
  puVar2 = (this->section_offsets_).super__Vector_base<var_2,_std::var_1<var_2>var_3>.
           _M_impl._M_start;
  if ((type_2)shndx <
      (type_2)((long)(this->section_offsets_).
                    super__Vector_base<var_2,_std::var_1<var_2>var_3>._M_impl.
                    _M_finish - (long)puVar2 >> 2)) {
    var_4 = puVar2[shndx];
    uVar3 = (uint64_t)var_4;
    if (var_4 == 0xffffffff) {
      uVar3 = 0xffffffffffffffff;
    }
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_5("../../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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) consequence: (compound_statement (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

ulong MASKED(long param_1,uint param_2)

{
  uint uVar1;
  ulong uVar2;
  
  if ((ulong)param_2 < (ulong)(*(long *)(param_1 + 0xe8) - *(long *)(param_1 + 0xe0) >> 2)) {
    uVar1 = *(uint *)(*(long *)(param_1 + 0xe0) + (ulong)param_2 * 4);
    uVar2 = (ulong)uVar1;
    if (uVar1 == 0xffffffff) {
      uVar2 = 0xffffffffffffffff;
    }
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0017c650("../../gold/object.h",0x7f7,"get_output_section_offset");
}

