
/* DWARF original prototype: void
   ~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>
   * this, int __in_chrg) */

void __thiscall
std::
unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>
::~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>
                 *this,int __in_chrg)

{
  _Hash_node_base *p_Var1;
  __bucket_type *pp_Var2;
  _Hash_node_base *p_Var3;
  
  p_Var3 = (this->_M_h)._M_before_begin._M_nxt;
  while (p_Var3 != (_Hash_node_base *)0x0) {
    p_Var1 = p_Var3->_M_nxt;
    operator_delete(p_Var3);
    p_Var3 = p_Var1;
  }
  memset((this->_M_h)._M_buckets,0,(this->_M_h)._M_bucket_count * 8);
  pp_Var2 = (this->_M_h)._M_buckets;
  (this->_M_h)._M_element_count = 0;
  (this->_M_h)._M_before_begin._M_nxt = (_Hash_node_base *)0x0;
  if (pp_Var2 != &(this->_M_h)._M_single_bucket) {
    operator_delete(pp_Var2);
    return;
  }
  return;
}



void FUN_00387440(undefined8 *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)param_1[2];
  while (puVar1 != (undefined8 *)0x0) {
    puVar1 = (undefined8 *)*puVar1;
    FUN_0049e330();
  }
  memset((void *)*param_1,0,param_1[1] * 8);
  param_1[3] = 0;
  param_1[2] = 0;
  if ((undefined8 *)*param_1 != param_1 + 6) {
    FUN_0049e330();
    return;
  }
  return;
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RDI,qword ptr [RDI + 0x10]
TEST RDI,RDI
JZ 0x00387468
NOP word ptr [RAX + RAX*0x1]
MOV RBP,qword ptr [RDI]
CALL 0x0049e330
MOV RDI,RBP
TEST RBP,RBP
JNZ 0x00387458
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBX]
XOR ESI,ESI
ADD RBX,0x30
LEA RDX,[RAX*0x8]
CALL 0x00177100
MOV RDI,qword ptr [RBX + -0x30]
MOV qword ptr [RBX + -0x18],0x0
MOV qword ptr [RBX + -0x20],0x0
CMP RDI,RBX
JZ 0x003874b0
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0049e330
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_00387440(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00387440(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00387440(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)param_1[2];" (assignment_expression "puVar1 = (undefined8 *)param_1[2]" identifier = (cast_expression "(undefined8 *)param_1[2]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (while_statement "while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }" while (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }" { (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "FUN_0049e330();" (call_expression "FUN_0049e330()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memset((void *)*param_1,0,param_1[1] * 8);" (call_expression "memset((void *)*param_1,0,param_1[1] * 8)" identifier (argument_list "((void *)*param_1,0,param_1[1] * 8)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , number_literal , (binary_expression "param_1[1] * 8" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal) ))) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }" if (parenthesized_expression "((undefined8 *)*param_1 != param_1 + 6)" ( (binary_expression "(undefined8 *)*param_1 != param_1 + 6" (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (binary_expression "param_1 + 6" identifier + number_literal)) )) (compound_statement "{\n    FUN_0049e330();\n    return;\n  }" { (expression_statement "FUN_0049e330();" (call_expression "FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void\n   ~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n   * this, int __in_chrg) */\n\nvoid __thiscall\nstd::\nunordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n::~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n                 *this,int __in_chrg)\n\n{\n  _Hash_node_base *p_Var1;\n  __bucket_type *pp_Var2;\n  _Hash_node_base *p_Var3;\n  \n  p_Var3 = (this->_M_h)._M_before_begin._M_nxt;\n  while (p_Var3 != (_Hash_node_base *)0x0) {\n    p_Var1 = p_Var3->_M_nxt;\n    operator_delete(p_Var3);\n    p_Var3 = p_Var1;\n  }\n  memset((this->_M_h)._M_buckets,0,(this->_M_h)._M_bucket_count * 8);\n  pp_Var2 = (this->_M_h)._M_buckets;\n  (this->_M_h)._M_element_count = 0;\n  (this->_M_h)._M_before_begin._M_nxt = (_Hash_node_base *)0x0;\n  if (pp_Var2 != &(this->_M_h)._M_single_bucket) {\n    operator_delete(pp_Var2);\n    return;\n  }\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::\nunordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n::~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n                 *this,int __in_chrg)\n\n{\n  _Hash_node_base *p_Var1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::\nunordered_set<std::pair<gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">" >) , (ERROR "_gold::" identifier : :) identifier , (ERROR "_std::equal_to<std::pair<gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">_>" > identifier >) , (ERROR "_std::allocator<std::pair<gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , (ERROR "_unsigned_int>_>_>\n::~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n                 *this,int __in_chrg)\n\n{\n  _Hash_node_base" identifier > identifier > identifier > : : ~ (function_declarator "unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n                 *this,int __in_chrg)" identifier (parameter_list "(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>\n                 *this,int __in_chrg)" ( (parameter_declaration "unordered_set<std::pair<gold::Relobj*" type_identifier (ERROR "<std::pair<gold::Relobj" < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_gold::Section_id_hash" type_identifier (ERROR "::" : :) identifier) , (parameter_declaration "_std::equal_to<std::pair<gold::Relobj*" type_identifier (ERROR "::equal_to<std::pair<gold::Relobj" : : identifier < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int>_" type_identifier (ERROR ">" >) identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<std::pair<gold::Relobj*" type_identifier (ERROR "::allocator<std::pair<gold::Relobj" : : identifier < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int>_>_>\n                 *this" type_identifier (ERROR ">_>_>" > identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "int __in_chrg" primitive_type identifier) ))) { identifier) (pointer_declarator "*p_Var1" * identifier) ;) (declaration "__bucket_type *pp_Var2;" type_identifier (pointer_declarator "*pp_Var2" * identifier) ;) (declaration "_Hash_node_base *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (expression_statement "p_Var3 = (this->_M_h)._M_before_begin._M_nxt;" (assignment_expression "p_Var3 = (this->_M_h)._M_before_begin._M_nxt" identifier = (field_expression "(this->_M_h)._M_before_begin._M_nxt" (field_expression "(this->_M_h)._M_before_begin" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (while_statement "while (p_Var3 != (_Hash_node_base *)0x0) {\n    p_Var1 = p_Var3->_M_nxt;\n    operator_delete(p_Var3);\n    p_Var3 = p_Var1;\n  }" while (parenthesized_expression "(p_Var3 != (_Hash_node_base *)0x0)" ( (binary_expression "p_Var3 != (_Hash_node_base *)0x0" identifier != (cast_expression "(_Hash_node_base *)0x0" ( (type_descriptor "_Hash_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var1 = p_Var3->_M_nxt;\n    operator_delete(p_Var3);\n    p_Var3 = p_Var1;\n  }" { (expression_statement "p_Var1 = p_Var3->_M_nxt;" (assignment_expression "p_Var1 = p_Var3->_M_nxt" identifier = (field_expression "p_Var3->_M_nxt" identifier -> field_identifier)) ;) (expression_statement "operator_delete(p_Var3);" (call_expression "operator_delete(p_Var3)" identifier (argument_list "(p_Var3)" ( identifier ))) ;) (expression_statement "p_Var3 = p_Var1;" (assignment_expression "p_Var3 = p_Var1" identifier = identifier) ;) })) (expression_statement "memset((this->_M_h)._M_buckets,0,(this->_M_h)._M_bucket_count * 8);" (call_expression "memset((this->_M_h)._M_buckets,0,(this->_M_h)._M_bucket_count * 8)" identifier (argument_list "((this->_M_h)._M_buckets,0,(this->_M_h)._M_bucket_count * 8)" ( (field_expression "(this->_M_h)._M_buckets" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier) , number_literal , (binary_expression "(this->_M_h)._M_bucket_count * 8" (field_expression "(this->_M_h)._M_bucket_count" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier) * number_literal) ))) ;) (expression_statement "pp_Var2 = (this->_M_h)._M_buckets;" (assignment_expression "pp_Var2 = (this->_M_h)._M_buckets" identifier = (field_expression "(this->_M_h)._M_buckets" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "(this->_M_h)._M_element_count = 0;" (assignment_expression "(this->_M_h)._M_element_count = 0" (field_expression "(this->_M_h)._M_element_count" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "(this->_M_h)._M_before_begin._M_nxt = (_Hash_node_base *)0x0;" (assignment_expression "(this->_M_h)._M_before_begin._M_nxt = (_Hash_node_base *)0x0" (field_expression "(this->_M_h)._M_before_begin._M_nxt" (field_expression "(this->_M_h)._M_before_begin" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(_Hash_node_base *)0x0" ( (type_descriptor "_Hash_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pp_Var2 != &(this->_M_h)._M_single_bucket) {\n    operator_delete(pp_Var2);\n    return;\n  }" if (parenthesized_expression "(pp_Var2 != &(this->_M_h)._M_single_bucket)" ( (binary_expression "pp_Var2 != &(this->_M_h)._M_single_bucket" identifier != (pointer_expression "&(this->_M_h)._M_single_bucket" & (field_expression "(this->_M_h)._M_single_bucket" (parenthesized_expression "(this->_M_h)" ( (field_expression "this->_M_h" identifier -> field_identifier) )) . field_identifier))) )) (compound_statement "{\n    operator_delete(pp_Var2);\n    return;\n  }" { (expression_statement "operator_delete(pp_Var2);" (call_expression "operator_delete(pp_Var2)" identifier (argument_list "(pp_Var2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_00387440(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00387440(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00387440(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)param_1[2];" (assignment_expression "puVar1 = (undefined8 *)param_1[2]" identifier = (cast_expression "(undefined8 *)param_1[2]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (while_statement "while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }" while (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }" { (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (expression_statement "FUN_0049e330();" (call_expression "FUN_0049e330()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "memset((void *)*param_1,0,param_1[1] * 8);" (call_expression "memset((void *)*param_1,0,param_1[1] * 8)" identifier (argument_list "((void *)*param_1,0,param_1[1] * 8)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , number_literal , (binary_expression "param_1[1] * 8" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal) ))) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }" if (parenthesized_expression "((undefined8 *)*param_1 != param_1 + 6)" ( (binary_expression "(undefined8 *)*param_1 != param_1 + 6" (cast_expression "(undefined8 *)*param_1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (binary_expression "param_1 + 6" identifier + number_literal)) )) (compound_statement "{\n    FUN_0049e330();\n    return;\n  }" { (expression_statement "FUN_0049e330();" (call_expression "FUN_0049e330()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , LIT , (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00387440(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00387440(undefined8 *param_1)" (identifier "FUN_00387440") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)param_1[2];\n  while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }\n  memset((void *)*param_1,0,param_1[1] * 8);\n  param_1[3] = 0;\n  param_1[2] = 0;\n  if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined8 *)param_1[2];" (assignment_expression "puVar1 = (undefined8 *)param_1[2]" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)param_1[2]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (while_statement "while (puVar1 != (undefined8 *)0x0) {\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }" (while "while") (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined8 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1 = (undefined8 *)*puVar1;\n    FUN_0049e330();\n  }" ({ "{") (expression_statement "puVar1 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*puVar1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (expression_statement "FUN_0049e330();" (call_expression "FUN_0049e330()" (identifier "FUN_0049e330") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "memset((void *)*param_1,0,param_1[1] * 8);" (call_expression "memset((void *)*param_1,0,param_1[1] * 8)" (identifier "memset") (argument_list "((void *)*param_1,0,param_1[1] * 8)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (number_literal "0") (, ",") (binary_expression "param_1[1] * 8" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "8")) () ")"))) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((undefined8 *)*param_1 != param_1 + 6) {\n    FUN_0049e330();\n    return;\n  }" (if "if") (parenthesized_expression "((undefined8 *)*param_1 != param_1 + 6)" (( "(") (binary_expression "(undefined8 *)*param_1 != param_1 + 6" (cast_expression "(undefined8 *)*param_1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (!= "!=") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6"))) () ")")) (compound_statement "{\n    FUN_0049e330();\n    return;\n  }" ({ "{") (expression_statement "FUN_0049e330();" (call_expression "FUN_0049e330()" (identifier "FUN_0049e330") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void
   ~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>
   * this, int __in_chrg) */

void __thiscall
std::
unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>
::~unordered_set(unordered_set<std::pair<gold::Relobj*,_unsigned_int>,_gold::Section_id_hash,_std::equal_to<std::pair<gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<gold::Relobj*,_unsigned_int>_>_>
                 *this,int __in_chrg)

{
  type_2 *p_Var1;
  type_1 *var_4;
  type_2 *var_1;
  
  var_1 = (this->_M_h)._M_before_begin._M_nxt;
  while (var_1 != (type_2 *)0x0) {
    p_Var1 = var_1->_M_nxt;
    var_2(var_1);
    var_1 = p_Var1;
  }
  var_3((this->_M_h)._M_buckets,0,(this->_M_h)._M_bucket_count * 8);
  var_4 = (this->_M_h)._M_buckets;
  (this->_M_h)._M_element_count = 0;
  (this->_M_h)._M_before_begin._M_nxt = (type_2 *)0x0;
  if (var_4 != &(this->_M_h)._M_single_bucket) {
    var_2(var_4);
    return;
  }
  return;
}


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

void MASKED(undefined8 *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)param_1[2];
  while (puVar1 != (undefined8 *)0x0) {
    puVar1 = (undefined8 *)*puVar1;
    FUN_0049e330();
  }
  memset((void *)*param_1,0,param_1[1] * 8);
  param_1[3] = 0;
  param_1[2] = 0;
  if ((undefined8 *)*param_1 != param_1 + 6) {
    FUN_0049e330();
    return;
  }
  return;
}

