
/* DWARF original prototype: uint do_local_got_offset(Sized_relobj<64,_true> * this, uint symndx,
   uint got_type, uint64_t addend) */

uint __thiscall
gold::Sized_relobj<64,_true>::do_local_got_offset
          (Sized_relobj<64,_true> *this,uint symndx,uint got_type,uint64_t addend)

{
  uint *puVar1;
  const_iterator cVar2;
  Local_got_entry_key key;
  
  key.symndx_ = symndx;
  key.addend_ = addend;
  cVar2 = std::
          _Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>
          ::find((_Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>
                  *)&this->local_got_offsets_,&key);
  if (cVar2.
      super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>
      ._M_cur == (__node_type *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/object.h",0x83c,"do_local_got_offset");
  }
  puVar1 = *(uint **)((long)cVar2.
                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>
                            ._M_cur + 0x18);
  do {
    if (puVar1 == (uint *)0x0) {
LAB_001b6443:
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");
    }
    if (got_type == *puVar1) {
      if (puVar1[1] != 0xffffffff) {
        return puVar1[1];
      }
      goto LAB_001b6443;
    }
    puVar1 = *(uint **)(puVar1 + 2);
  } while( true );
}



void FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)

{
  int *piVar1;
  long lVar2;
  undefined4 local_18 [2];
  undefined8 local_10;
  
  local_18[0] = param_2;
  local_10 = param_4;
  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);
  if (lVar2 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");
  }
  piVar1 = *(int **)(lVar2 + 0x18);
  do {
    if (piVar1 == (int *)0x0) {
LAB_001b6443:
                    /* WARNING: Subroutine does not return */
      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");
    }
    if (param_3 == *piVar1) {
      if (piVar1[1] != -1) {
        return;
      }
      goto LAB_001b6443;
    }
    piVar1 = *(int **)(piVar1 + 2);
  } while( true );
}


PUSH RBX
ADD RDI,0xa8
MOV EBX,EDX
SUB RSP,0x10
MOV dword ptr [RSP],ESI
MOV RSI,RSP
MOV qword ptr [RSP + 0x8],RCX
CALL 0x001b60e0
TEST RAX,RAX
JZ 0x001b642b
MOV RAX,qword ptr [RAX + 0x18]
TEST RAX,RAX
JNZ 0x001b6419
JMP 0x001b6443
MOV RAX,qword ptr [RAX + 0x8]
TEST RAX,RAX
JZ 0x001b6443
CMP EBX,dword ptr [RAX]
JNZ 0x001b6410
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,-0x1
JZ 0x001b6443
ADD RSP,0x10
POP RBX
RET
LEA RDX,[0x38ad00]
MOV ESI,0x83c
LEA RDI,[0x3853ac]
CALL 0x0018dcf0
LEA RDX,[0x38ad00]
MOV ESI,0x83e
LEA RDI,[0x3853ac]
CALL 0x0018dcf0
(translation_unit "void FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)\n\n{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}\n\n" (function_definition "void FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)\n\n{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}" primitive_type (function_declarator "FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)" identifier (parameter_list "(long param_1,undefined4 param_2,int param_3,undefined8 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_10;" type_identifier identifier ;) (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_10 = param_4;" (assignment_expression "local_10 = param_4" identifier = identifier) ;) (expression_statement "lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);" (assignment_expression "lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18)" identifier = (call_expression "FUN_001b60e0(param_1 + 0xa8,local_18)" identifier (argument_list "(param_1 + 0xa8,local_18)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) , identifier )))) ;) (if_statement "if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" { comment (expression_statement "FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");" (call_expression "FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset")" identifier (argument_list "("../../gold/object.h",0x83c,"do_local_got_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""do_local_got_offset"" " string_content ") ))) ;) })) (expression_statement "piVar1 = *(int **)(lVar2 + 0x18);" (assignment_expression "piVar1 = *(int **)(lVar2 + 0x18)" identifier = (pointer_expression "*(int **)(lVar2 + 0x18)" * (cast_expression "(int **)(lVar2 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) (do_statement "do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );" do (compound_statement "{\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  }" { (if_statement "if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" { (labeled_statement "LAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");" statement_identifier : comment (expression_statement "FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");" (call_expression "FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset")" identifier (argument_list "("../../gold/object.h",0x83e,"do_local_got_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""do_local_got_offset"" " string_content ") ))) ;)) })) (if_statement "if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }" if (parenthesized_expression "(param_3 == *piVar1)" ( (binary_expression "param_3 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }" { (if_statement "if (piVar1[1] != -1) {\n        return;\n      }" if (parenthesized_expression "(piVar1[1] != -1)" ( (binary_expression "piVar1[1] != -1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_001b6443;" goto statement_identifier ;) })) (expression_statement "piVar1 = *(int **)(piVar1 + 2);" (assignment_expression "piVar1 = *(int **)(piVar1 + 2)" identifier = (pointer_expression "*(int **)(piVar1 + 2)" * (cast_expression "(int **)(piVar1 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* DWARF original prototype: uint do_local_got_offset(Sized_relobj<64,_true> * this, uint symndx,\n   uint got_type, uint64_t addend) */\n\nuint __thiscall\ngold::Sized_relobj<64,_true>::do_local_got_offset\n          (Sized_relobj<64,_true> *this,uint symndx,uint got_type,uint64_t addend)\n\n{\n  uint *puVar1;\n  const_iterator cVar2;\n  Local_got_entry_key key;\n  \n  key.symndx_ = symndx;\n  key.addend_ = addend;\n  cVar2 = std::\n          _Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>\n          ::find((_Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>\n                  *)&this->local_got_offsets_,&key);\n  if (cVar2.\n      super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n      ._M_cur == (__node_type *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  puVar1 = *(uint **)((long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ._M_cur + 0x18);\n  do {\n    if (puVar1 == (uint *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (got_type == *puVar1) {\n      if (puVar1[1] != 0xffffffff) {\n        return puVar1[1];\n      }\n      goto LAB_001b6443;\n    }\n    puVar1 = *(uint **)(puVar1 + 2);\n  } while( true );\n}\n\n" comment (declaration "uint __thiscall\ngold::Sized_relobj<64,_true>::do_local_got_offset\n          (Sized_relobj<64,_true> *this,uint symndx,uint got_type,uint64_t addend)\n\n{\n  uint *puVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::do_local_got_offset\n          (Sized_relobj<64,_true> *this,uint symndx,uint got_type,uint64_t addend)\n\n{\n  uint" identifier > : : (function_declarator "do_local_got_offset\n          (Sized_relobj<64,_true> *this,uint symndx,uint got_type,uint64_t addend)" identifier (parameter_list "(Sized_relobj<64,_true> *this,uint symndx,uint got_type,uint64_t addend)" ( (parameter_declaration "Sized_relobj" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint symndx" type_identifier identifier) , (parameter_declaration "uint got_type" type_identifier identifier) , (parameter_declaration "uint64_t addend" primitive_type identifier) ))) { identifier) (pointer_declarator "*puVar1" * identifier) ;) (declaration "const_iterator cVar2;" type_identifier identifier ;) (declaration "Local_got_entry_key key;" type_identifier identifier ;) (expression_statement "key.symndx_ = symndx;" (assignment_expression "key.symndx_ = symndx" (field_expression "key.symndx_" identifier . field_identifier) = identifier) ;) (expression_statement "key.addend_ = addend;" (assignment_expression "key.addend_ = addend" (field_expression "key.addend_" identifier . field_identifier) = identifier) ;) (ERROR "cVar2 = std::\n          _Hashtable<gold::" (assignment_expression "cVar2 = std" identifier = identifier) : : (binary_expression "_Hashtable<gold" identifier < identifier) : :) (declaration "Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>\n          ::find((_Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>\n                  *)" type_identifier (ERROR ",_std::pair<const_gold::" , identifier : : identifier < identifier : :) identifier , (ERROR "_gold::" identifier : :) identifier (ERROR "*>" * >) , (ERROR "_std::allocator<std::pair<const_gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier , (ERROR "_gold::Got_offset_list*>" identifier : : identifier * >) identifier (ERROR ">" >) , (ERROR "_std::__detail::" identifier : : identifier : :) identifier , (ERROR "_gold::Local_got_entry_key::" identifier : : identifier : :) identifier , (ERROR "_gold::Local_got_entry_key::" identifier : : identifier : :) identifier , (ERROR "_std::__detail::" identifier : : identifier : :) identifier , (ERROR "_std::__detail::" identifier : : identifier : :) identifier , (ERROR "_std::__detail::" identifier : : identifier : :) identifier , (ERROR "_std::__detail::" identifier : : identifier : :) identifier (ERROR "<true" < true) , identifier , (ERROR "_true>_>\n          ::" identifier > identifier > : :) (function_declarator "find((_Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>\n                  *)" identifier (ERROR "(" () (parameter_list "(_Hashtable<gold::Local_got_entry_key,_std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_std::allocator<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>_>,_std::__detail::_Select1st,_gold::Local_got_entry_key::equal_to,_gold::Local_got_entry_key::hash,_std::__detail::_Mod_range_hashing,_std::__detail::_Default_ranged_hash,_std::__detail::_Prime_rehash_policy,_std::__detail::_Hashtable_traits<true,_false,_true>_>\n                  *)" ( (parameter_declaration "_Hashtable<gold::Local_got_entry_key" type_identifier (ERROR "<gold::" < identifier : :) identifier) , (parameter_declaration "_std::pair<const_gold::Local_got_entry_key" type_identifier (ERROR "::pair<const_gold::" : : identifier < identifier : :) identifier) , (parameter_declaration "_gold::Got_offset_list" type_identifier (ERROR "::" : :) identifier) (ERROR "*>" * >) , (parameter_declaration "_std::allocator<std::pair<const_gold::Local_got_entry_key" type_identifier (ERROR "::allocator<std::pair<const_gold::" : : identifier < identifier : : identifier < identifier : :) identifier) , (parameter_declaration "_gold::Got_offset_list*>_" type_identifier (ERROR "::Got_offset_list*>" : : identifier * >) identifier) (ERROR ">" >) , (parameter_declaration "_std::__detail::_Select1st" type_identifier (ERROR "::__detail::" : : identifier : :) identifier) , (parameter_declaration "_gold::Local_got_entry_key::equal_to" type_identifier (ERROR "::Local_got_entry_key::" : : identifier : :) identifier) , (parameter_declaration "_gold::Local_got_entry_key::hash" type_identifier (ERROR "::Local_got_entry_key::" : : identifier : :) identifier) , (parameter_declaration "_std::__detail::_Mod_range_hashing" type_identifier (ERROR "::__detail::" : : identifier : :) identifier) , (parameter_declaration "_std::__detail::_Default_ranged_hash" type_identifier (ERROR "::__detail::" : : identifier : :) identifier) , (parameter_declaration "_std::__detail::_Prime_rehash_policy" type_identifier (ERROR "::__detail::" : : identifier : :) identifier) , (parameter_declaration "_std::__detail::_Hashtable_traits" type_identifier (ERROR "::__detail::" : : identifier : :) identifier) (ERROR "<true" < true) , (parameter_declaration "_false" type_identifier) , (parameter_declaration "_true>_>\n                  *" type_identifier (ERROR ">_>" > identifier >) (abstract_pointer_declarator "*" *)) ))) ;) (ERROR "&this->local_got_offsets_,&key)" (binary_expression "&this->local_got_offsets_,&key" (pointer_expression "&this->local_got_offsets_" & (field_expression "this->local_got_offsets_" identifier -> field_identifier)) (ERROR "," ,) & identifier) )) (expression_statement ";" ;) (if_statement "if (cVar2.\n      super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n      ._M_cur == (__node_type *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" if (parenthesized_expression "(cVar2.\n      super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n      ._M_cur == (__node_type *)0x0)" ( (ERROR "cVar2.\n      super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n      ." (comma_expression "cVar2.\n      super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold" (binary_expression "cVar2.\n      super__Node_iterator_base<std::pair<const_gold" (binary_expression "cVar2.\n      super__Node_iterator_base<std" (field_expression "cVar2.\n      super__Node_iterator_base" identifier . field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) (ERROR "::Local_got_entry_key" : : identifier) , identifier) : : identifier * > , identifier > .) (binary_expression "_M_cur == (__node_type *)0x0" identifier == (cast_expression "(__node_type *)0x0" ( (type_descriptor "__node_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/object.h",0x83c,"do_local_got_offset");" (call_expression "do_gold_unreachable("../../gold/object.h",0x83c,"do_local_got_offset")" identifier (argument_list "("../../gold/object.h",0x83c,"do_local_got_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""do_local_got_offset"" " string_content ") ))) ;) })) (expression_statement "puVar1 = *(uint **)((long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ._M_cur + 0x18);" (assignment_expression "puVar1 = *(uint **)((long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ._M_cur + 0x18)" identifier = (pointer_expression "*(uint **)((long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ._M_cur + 0x18)" * (cast_expression "(uint **)((long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ._M_cur + 0x18)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ._M_cur + 0x18)" ( (ERROR "(long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold::Got_offset_list*>,_true>\n                            ." (comma_expression "(long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold::Local_got_entry_key,_gold" (binary_expression "(long)cVar2.\n                            super__Node_iterator_base<std::pair<const_gold" (binary_expression "(long)cVar2.\n                            super__Node_iterator_base<std" (cast_expression "(long)cVar2.\n                            super__Node_iterator_base" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "cVar2.\n                            super__Node_iterator_base" identifier . field_identifier)) < identifier) (ERROR "::pair" : : identifier) < identifier) (ERROR "::Local_got_entry_key" : : identifier) , identifier) : : identifier * > , identifier > .) (binary_expression "_M_cur + 0x18" identifier + number_literal) ))))) ;) (do_statement "do {\n    if (puVar1 == (uint *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (got_type == *puVar1) {\n      if (puVar1[1] != 0xffffffff) {\n        return puVar1[1];\n      }\n      goto LAB_001b6443;\n    }\n    puVar1 = *(uint **)(puVar1 + 2);\n  } while( true );" do (compound_statement "{\n    if (puVar1 == (uint *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (got_type == *puVar1) {\n      if (puVar1[1] != 0xffffffff) {\n        return puVar1[1];\n      }\n      goto LAB_001b6443;\n    }\n    puVar1 = *(uint **)(puVar1 + 2);\n  }" { (if_statement "if (puVar1 == (uint *)0x0) {\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" if (parenthesized_expression "(puVar1 == (uint *)0x0)" ( (binary_expression "puVar1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" { (labeled_statement "LAB_001b6443:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");" statement_identifier : comment (expression_statement "do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset");" (call_expression "do_gold_unreachable("../../gold/object.h",0x83e,"do_local_got_offset")" identifier (argument_list "("../../gold/object.h",0x83e,"do_local_got_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""do_local_got_offset"" " string_content ") ))) ;)) })) (if_statement "if (got_type == *puVar1) {\n      if (puVar1[1] != 0xffffffff) {\n        return puVar1[1];\n      }\n      goto LAB_001b6443;\n    }" if (parenthesized_expression "(got_type == *puVar1)" ( (binary_expression "got_type == *puVar1" identifier == (pointer_expression "*puVar1" * identifier)) )) (compound_statement "{\n      if (puVar1[1] != 0xffffffff) {\n        return puVar1[1];\n      }\n      goto LAB_001b6443;\n    }" { (if_statement "if (puVar1[1] != 0xffffffff) {\n        return puVar1[1];\n      }" if (parenthesized_expression "(puVar1[1] != 0xffffffff)" ( (binary_expression "puVar1[1] != 0xffffffff" (subscript_expression "puVar1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return puVar1[1];\n      }" { (return_statement "return puVar1[1];" return (subscript_expression "puVar1[1]" identifier [ number_literal ]) ;) })) (goto_statement "goto LAB_001b6443;" goto statement_identifier ;) })) (expression_statement "puVar1 = *(uint **)(puVar1 + 2);" (assignment_expression "puVar1 = *(uint **)(puVar1 + 2)" identifier = (pointer_expression "*(uint **)(puVar1 + 2)" * (cast_expression "(uint **)(puVar1 + 2)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (ERROR "}" }))
(translation_unit "void FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)\n\n{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}\n\n" (function_definition "void FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)\n\n{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}" primitive_type (function_declarator "FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)" identifier (parameter_list "(long param_1,undefined4 param_2,int param_3,undefined8 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (declaration "undefined8 local_10;" type_identifier identifier ;) (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_10 = param_4;" (assignment_expression "local_10 = param_4" identifier = identifier) ;) (expression_statement "lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);" (assignment_expression "lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18)" identifier = (call_expression "FUN_001b60e0(param_1 + 0xa8,local_18)" identifier (argument_list "(param_1 + 0xa8,local_18)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) , identifier )))) ;) (if_statement "if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" { (expression_statement "FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");" (call_expression "FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset")" identifier (argument_list "("../../gold/object.h",0x83c,"do_local_got_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""do_local_got_offset"" " string_content ") ))) ;) })) (expression_statement "piVar1 = *(int **)(lVar2 + 0x18);" (assignment_expression "piVar1 = *(int **)(lVar2 + 0x18)" identifier = (pointer_expression "*(int **)(lVar2 + 0x18)" * (cast_expression "(int **)(lVar2 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) (do_statement "do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );" do (compound_statement "{\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  }" { (if_statement "if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" { (labeled_statement "LAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");" statement_identifier : (expression_statement "FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");" (call_expression "FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset")" identifier (argument_list "("../../gold/object.h",0x83e,"do_local_got_offset")" ( (string_literal ""../../gold/object.h"" " string_content ") , number_literal , (string_literal ""do_local_got_offset"" " string_content ") ))) ;)) })) (if_statement "if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }" if (parenthesized_expression "(param_3 == *piVar1)" ( (binary_expression "param_3 == *piVar1" identifier == (pointer_expression "*piVar1" * identifier)) )) (compound_statement "{\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }" { (if_statement "if (piVar1[1] != -1) {\n        return;\n      }" if (parenthesized_expression "(piVar1[1] != -1)" ( (binary_expression "piVar1[1] != -1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_001b6443;" goto statement_identifier ;) })) (expression_statement "piVar1 = *(int **)(piVar1 + 2);" (assignment_expression "piVar1 = *(int **)(piVar1 + 2)" identifier = (pointer_expression "*(int **)(piVar1 + 2)" * (cast_expression "(int **)(piVar1 + 2)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)\n\n{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_001b63e0(long param_1,undefined4 param_2,int param_3,undefined8 param_4)" (identifier "FUN_001b63e0") (parameter_list "(long param_1,undefined4 param_2,int param_3,undefined8 param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  long lVar2;\n  undefined4 local_18 [2];\n  undefined8 local_10;\n  \n  local_18[0] = param_2;\n  local_10 = param_4;\n  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);\n  if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }\n  piVar1 = *(int **)(lVar2 + 0x18);\n  do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined4 local_18 [2];" (type_identifier "undefined4") (array_declarator "local_18 [2]" (identifier "local_18") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined8 local_10;" (type_identifier "undefined8") (identifier "local_10") (; ";")) (expression_statement "local_18[0] = param_2;" (assignment_expression "local_18[0] = param_2" (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "local_10 = param_4;" (assignment_expression "local_10 = param_4" (identifier "local_10") (= "=") (identifier "param_4")) (; ";")) (expression_statement "lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);" (assignment_expression "lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18)" (identifier "lVar2") (= "=") (call_expression "FUN_001b60e0(param_1 + 0xa8,local_18)" (identifier "FUN_001b60e0") (argument_list "(param_1 + 0xa8,local_18)" (( "(") (binary_expression "param_1 + 0xa8" (identifier "param_1") (+ "+") (number_literal "0xa8")) (, ",") (identifier "local_18") () ")")))) (; ";")) (if_statement "if (lVar2 == 0) {\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");\n  }" ({ "{") (expression_statement "FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");" (call_expression "FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset")" (identifier "FUN_0018dcf0") (argument_list "("../../gold/object.h",0x83c,"do_local_got_offset")" (( "(") (string_literal ""../../gold/object.h"" (" """) (string_content "../../gold/object.h") (" """)) (, ",") (number_literal "0x83c") (, ",") (string_literal ""do_local_got_offset"" (" """) (string_content "do_local_got_offset") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = *(int **)(lVar2 + 0x18);" (assignment_expression "piVar1 = *(int **)(lVar2 + 0x18)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(lVar2 + 0x18)" (* "*") (cast_expression "(int **)(lVar2 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x18)" (( "(") (binary_expression "lVar2 + 0x18" (identifier "lVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (do_statement "do {\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  } while( true );" (do "do") (compound_statement "{\n    if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }\n    if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }\n    piVar1 = *(int **)(piVar1 + 2);\n  }" ({ "{") (if_statement "if (piVar1 == (int *)0x0) {\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");\n    }" ({ "{") (labeled_statement "LAB_001b6443:\n                    \n      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");" (statement_identifier "LAB_001b6443") (: ":") (expression_statement "FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");" (call_expression "FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset")" (identifier "FUN_0018dcf0") (argument_list "("../../gold/object.h",0x83e,"do_local_got_offset")" (( "(") (string_literal ""../../gold/object.h"" (" """) (string_content "../../gold/object.h") (" """)) (, ",") (number_literal "0x83e") (, ",") (string_literal ""do_local_got_offset"" (" """) (string_content "do_local_got_offset") (" """)) () ")"))) (; ";"))) (} "}"))) (if_statement "if (param_3 == *piVar1) {\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }" (if "if") (parenthesized_expression "(param_3 == *piVar1)" (( "(") (binary_expression "param_3 == *piVar1" (identifier "param_3") (== "==") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) () ")")) (compound_statement "{\n      if (piVar1[1] != -1) {\n        return;\n      }\n      goto LAB_001b6443;\n    }" ({ "{") (if_statement "if (piVar1[1] != -1) {\n        return;\n      }" (if "if") (parenthesized_expression "(piVar1[1] != -1)" (( "(") (binary_expression "piVar1[1] != -1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_001b6443;" (goto "goto") (statement_identifier "LAB_001b6443") (; ";")) (} "}"))) (expression_statement "piVar1 = *(int **)(piVar1 + 2);" (assignment_expression "piVar1 = *(int **)(piVar1 + 2)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(piVar1 + 2)" (* "*") (cast_expression "(int **)(piVar1 + 2)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* DWARF original prototype: uint do_local_got_offset(Sized_relobj<64,_true> * this, uint symndx,
   uint got_type, uint64_t addend) */

type_1 __thiscall
gold::Sized_relobj<64,type_8>::do_local_got_offset
          (Sized_relobj<64,type_8> *this,type_1 symndx,type_1 var_4,uint64_t addend)

{
  type_1 *var_3;
  type_2 cVar2;
  type_3 key;
  
  key.symndx_ = symndx;
  key.addend_ = addend;
  cVar2 = std::
          type_4<gold::type_3,type_5::pair<const_gold::type_3,type_6::Got_offset_list*>,type_5::allocator<std::pair<const_gold::type_3,type_6::Got_offset_list*>_>,type_5::__detail::_Select1st,type_6::type_3::equal_to,type_6::type_3::hash,type_5::__detail::_Mod_range_hashing,type_5::__detail::_Default_ranged_hash,type_5::__detail::_Prime_rehash_policy,type_5::__detail::_Hashtable_traits<true,type_7,type_8>_>
          ::function_1((type_4<gold::type_3,type_5::pair<const_gold::type_3,type_6::Got_offset_list*>,type_5::allocator<std::pair<const_gold::type_3,type_6::Got_offset_list*>_>,type_5::__detail::_Select1st,type_6::type_3::equal_to,type_6::type_3::hash,type_5::__detail::_Mod_range_hashing,type_5::__detail::_Default_ranged_hash,type_5::__detail::_Prime_rehash_policy,type_5::__detail::_Hashtable_traits<true,type_7,type_8>_>
                  *)&this->local_got_offsets_,&key);
  if (cVar2.
      super__Node_iterator_base<std::pair<const_gold::type_3,type_6::Got_offset_list*>,type_8>
      .var_1 == (type_9 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/object.h",0x83c,"do_local_got_offset");
  }
  var_3 = *(type_1 **)((long)cVar2.
                            super__Node_iterator_base<std::pair<const_gold::type_3,type_6::Got_offset_list*>,type_8>
                            .var_1 + 0x18);
  do {
    if (var_3 == (type_1 *)0x0) {
LAB_001b6443:
                    /* WARNING: Subroutine does not return */
      var_2("../../gold/object.h",0x83e,"do_local_got_offset");
    }
    if (var_4 == *var_3) {
      if (var_3[1] != 0xffffffff) {
        return var_3[1];
      }
      goto LAB_001b6443;
    }
    var_3 = *(type_1 **)(var_3 + 2);
  } while( true );
}


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

void MASKED(long param_1,undefined4 param_2,int param_3,undefined8 param_4)

{
  int *piVar1;
  long lVar2;
  undefined4 local_18 [2];
  undefined8 local_10;
  
  local_18[0] = param_2;
  local_10 = param_4;
  lVar2 = FUN_001b60e0(param_1 + 0xa8,local_18);
  if (lVar2 == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0018dcf0("../../gold/object.h",0x83c,"do_local_got_offset");
  }
  piVar1 = *(int **)(lVar2 + 0x18);
  do {
    if (piVar1 == (int *)0x0) {
LAB_001b6443:
                    /* WARNING: Subroutine does not return */
      FUN_0018dcf0("../../gold/object.h",0x83e,"do_local_got_offset");
    }
    if (param_3 == *piVar1) {
      if (piVar1[1] != -1) {
        return;
      }
      goto LAB_001b6443;
    }
    piVar1 = *(int **)(piVar1 + 2);
  } while( true );
}

