
/* DWARF original prototype: void add_merge_mapping(Relobj * this, Output_section_data *
   output_data, uint shndx, section_offset_type offset, section_size_type length,
   section_offset_type output_offset) */

void __thiscall
gold::Relobj::add_merge_mapping
          (Relobj *this,Output_section_data *output_data,uint shndx,section_offset_type offset,
          section_size_type length,section_offset_type output_offset)

{
  Object_merge_map *this_00;
  
  if (this->object_merge_map_ != (Object_merge_map *)0x0) {
    Object_merge_map::add_mapping
              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);
    return;
  }
  this_00 = (Object_merge_map *)operator_new(0x18);
  (this_00->section_merge_maps_).
  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>
  ._M_impl._M_start = (pointer)0x0;
  this->object_merge_map_ = this_00;
  (this_00->section_merge_maps_).
  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>
  ._M_impl._M_finish = (pointer)0x0;
  (this_00->section_merge_maps_).
  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>
  ._M_impl._M_end_of_storage = (pointer)0x0;
  Object_merge_map::add_mapping(this_00,output_data,shndx,offset,length,output_offset);
  return;
}



void FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6)

{
  undefined8 *puVar1;
  
  if (*(long *)(param_1 + 0x70) != 0) {
    FUN_002ba3c0();
    return;
  }
  puVar1 = (undefined8 *)FUN_002d9490(0x18);
  *puVar1 = 0;
  *(undefined8 **)(param_1 + 0x70) = puVar1;
  puVar1[1] = 0;
  puVar1[2] = 0;
  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);
  return;
}


PUSH RBX
MOV RBX,RDI
SUB RSP,0x30
MOV RDI,qword ptr [RDI + 0x70]
TEST RDI,RDI
JZ 0x001bd3b0
ADD RSP,0x30
POP RBX
JMP 0x002ba3c0
MOV EDI,0x18
MOV qword ptr [RSP + 0x28],R9
MOV qword ptr [RSP + 0x20],R8
MOV qword ptr [RSP + 0x18],RCX
MOV dword ptr [RSP + 0x14],EDX
MOV qword ptr [RSP + 0x8],RSI
CALL 0x002d9490
MOV R9,qword ptr [RSP + 0x28]
MOV R8,qword ptr [RSP + 0x20]
MOV qword ptr [RAX],0x0
MOV RCX,qword ptr [RSP + 0x18]
MOV RDI,RAX
MOV EDX,dword ptr [RSP + 0x14]
MOV RSI,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x70],RAX
MOV qword ptr [RAX + 0x8],0x0
MOV qword ptr [RAX + 0x10],0x0
ADD RSP,0x30
POP RBX
JMP 0x002ba3c0
(translation_unit "void FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}\n\n" (function_definition "void FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" primitive_type (function_declarator "FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" ( (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_002ba3c0();\n    return;\n  }" { (expression_statement "FUN_002ba3c0();" (call_expression "FUN_002ba3c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = (undefined8 *)FUN_002d9490(0x18);" (assignment_expression "puVar1 = (undefined8 *)FUN_002d9490(0x18)" identifier = (cast_expression "(undefined8 *)FUN_002d9490(0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d9490(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined8 **)(param_1 + 0x70) = puVar1;" (assignment_expression "*(undefined8 **)(param_1 + 0x70) = puVar1" (pointer_expression "*(undefined8 **)(param_1 + 0x70)" * (cast_expression "(undefined8 **)(param_1 + 0x70)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);" (call_expression "FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(puVar1,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_merge_mapping(Relobj * this, Output_section_data *\n   output_data, uint shndx, section_offset_type offset, section_size_type length,\n   section_offset_type output_offset) */\n\nvoid __thiscall\ngold::Relobj::add_merge_mapping\n          (Relobj *this,Output_section_data *output_data,uint shndx,section_offset_type offset,\n          section_size_type length,section_offset_type output_offset)\n\n{\n  Object_merge_map *this_00;\n  \n  if (this->object_merge_map_ != (Object_merge_map *)0x0) {\n    Object_merge_map::add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);\n    return;\n  }\n  this_00 = (Object_merge_map *)operator_new(0x18);\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start = (pointer)0x0;\n  this->object_merge_map_ = this_00;\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish = (pointer)0x0;\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;\n  Object_merge_map::add_mapping(this_00,output_data,shndx,offset,length,output_offset);\n  return;\n}\n\n" comment (function_definition "void __thiscall\ngold::Relobj::add_merge_mapping\n          (Relobj *this,Output_section_data *output_data,uint shndx,section_offset_type offset,\n          section_size_type length,section_offset_type output_offset)\n\n{\n  Object_merge_map *this_00;\n  \n  if (this->object_merge_map_ != (Object_merge_map *)0x0) {\n    Object_merge_map::add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);\n    return;\n  }\n  this_00 = (Object_merge_map *)operator_new(0x18);\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start = (pointer)0x0;\n  this->object_merge_map_ = this_00;\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish = (pointer)0x0;\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;\n  Object_merge_map::add_mapping(this_00,output_data,shndx,offset,length,output_offset);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Relobj::" identifier : : identifier : :) (function_declarator "add_merge_mapping\n          (Relobj *this,Output_section_data *output_data,uint shndx,section_offset_type offset,\n          section_size_type length,section_offset_type output_offset)" identifier (parameter_list "(Relobj *this,Output_section_data *output_data,uint shndx,section_offset_type offset,\n          section_size_type length,section_offset_type output_offset)" ( (parameter_declaration "Relobj *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_section_data *output_data" type_identifier (pointer_declarator "*output_data" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) , (parameter_declaration "section_offset_type offset" type_identifier identifier) , (parameter_declaration "section_size_type length" type_identifier identifier) , (parameter_declaration "section_offset_type output_offset" type_identifier identifier) ))) (compound_statement "{\n  Object_merge_map *this_00;\n  \n  if (this->object_merge_map_ != (Object_merge_map *)0x0) {\n    Object_merge_map::add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);\n    return;\n  }\n  this_00 = (Object_merge_map *)operator_new(0x18);\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start = (pointer)0x0;\n  this->object_merge_map_ = this_00;\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish = (pointer)0x0;\n  (this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;\n  Object_merge_map::add_mapping(this_00,output_data,shndx,offset,length,output_offset);\n  return;\n}" { (declaration "Object_merge_map *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (if_statement "if (this->object_merge_map_ != (Object_merge_map *)0x0) {\n    Object_merge_map::add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);\n    return;\n  }" if (parenthesized_expression "(this->object_merge_map_ != (Object_merge_map *)0x0)" ( (binary_expression "this->object_merge_map_ != (Object_merge_map *)0x0" (field_expression "this->object_merge_map_" identifier -> field_identifier) != (cast_expression "(Object_merge_map *)0x0" ( (type_descriptor "Object_merge_map *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    Object_merge_map::add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);\n    return;\n  }" { (labeled_statement "Object_merge_map::add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);" statement_identifier : (ERROR ":" :) (expression_statement "add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);" (call_expression "add_mapping\n              (this->object_merge_map_,output_data,shndx,offset,length,output_offset)" identifier (argument_list "(this->object_merge_map_,output_data,shndx,offset,length,output_offset)" ( (field_expression "this->object_merge_map_" identifier -> field_identifier) , identifier , identifier , identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (expression_statement "this_00 = (Object_merge_map *)operator_new(0x18);" (assignment_expression "this_00 = (Object_merge_map *)operator_new(0x18)" identifier = (cast_expression "(Object_merge_map *)operator_new(0x18)" ( (type_descriptor "Object_merge_map *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (ERROR "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::" (comma_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold" (binary_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int" (binary_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std" (field_expression "(this_00->section_merge_maps_).\n  super__Vector_base" (parenthesized_expression "(this_00->section_merge_maps_)" ( (field_expression "this_00->section_merge_maps_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) , identifier) : :) (labeled_statement "Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start = (pointer)0x0;" statement_identifier (ERROR "::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold:" : : (comma_expression "Input_merge_map*>,_std" identifier (ERROR "*>" * >) , identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "pair<unsigned_int,_gold" (binary_expression "pair<unsigned_int" identifier < identifier) , identifier) :) : (expression_statement "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start = (pointer)0x0;" (assignment_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start = (pointer)0x0" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_start" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl" (binary_expression "Object_merge_map::Input_merge_map*>_>_" (binary_expression "Object_merge_map::Input_merge_map*>_" identifier (ERROR "::Input_merge_map*" : : identifier *) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;)) (expression_statement "this->object_merge_map_ = this_00;" (assignment_expression "this->object_merge_map_ = this_00" (field_expression "this->object_merge_map_" identifier -> field_identifier) = identifier) ;) (ERROR "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::" (comma_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold" (binary_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int" (binary_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std" (field_expression "(this_00->section_merge_maps_).\n  super__Vector_base" (parenthesized_expression "(this_00->section_merge_maps_)" ( (field_expression "this_00->section_merge_maps_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) , identifier) : :) (labeled_statement "Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish = (pointer)0x0;" statement_identifier (ERROR "::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold:" : : (comma_expression "Input_merge_map*>,_std" identifier (ERROR "*>" * >) , identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "pair<unsigned_int,_gold" (binary_expression "pair<unsigned_int" identifier < identifier) , identifier) :) : (expression_statement "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish = (pointer)0x0;" (assignment_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish = (pointer)0x0" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_finish" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl" (binary_expression "Object_merge_map::Input_merge_map*>_>_" (binary_expression "Object_merge_map::Input_merge_map*>_" identifier (ERROR "::Input_merge_map*" : : identifier *) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;)) (ERROR "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold::" (comma_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int,_gold" (binary_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std::pair<unsigned_int" (binary_expression "(this_00->section_merge_maps_).\n  super__Vector_base<std" (field_expression "(this_00->section_merge_maps_).\n  super__Vector_base" (parenthesized_expression "(this_00->section_merge_maps_)" ( (field_expression "this_00->section_merge_maps_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::pair" : : identifier) < identifier) , identifier) : :) (labeled_statement "Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;" statement_identifier (ERROR "::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold:" : : (comma_expression "Input_merge_map*>,_std" identifier (ERROR "*>" * >) , identifier) : : (binary_expression "allocator<std" identifier < identifier) : : (comma_expression "pair<unsigned_int,_gold" (binary_expression "pair<unsigned_int" identifier < identifier) , identifier) :) : (expression_statement "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0;" (assignment_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage = (pointer)0x0" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl._M_end_of_storage" (field_expression "Object_merge_map::Input_merge_map*>_>_>\n  ._M_impl" (binary_expression "Object_merge_map::Input_merge_map*>_>_" (binary_expression "Object_merge_map::Input_merge_map*>_" identifier (ERROR "::Input_merge_map*" : : identifier *) > identifier) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (cast_expression "(pointer)0x0" ( (type_descriptor "pointer" type_identifier) ) number_literal)) ;)) (labeled_statement "Object_merge_map::add_mapping(this_00,output_data,shndx,offset,length,output_offset);" statement_identifier : (ERROR ":" :) (expression_statement "add_mapping(this_00,output_data,shndx,offset,length,output_offset);" (call_expression "add_mapping(this_00,output_data,shndx,offset,length,output_offset)" identifier (argument_list "(this_00,output_data,shndx,offset,length,output_offset)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}\n\n" (function_definition "void FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" primitive_type (function_declarator "FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" ( (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_002ba3c0();\n    return;\n  }" { (expression_statement "FUN_002ba3c0();" (call_expression "FUN_002ba3c0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "puVar1 = (undefined8 *)FUN_002d9490(0x18);" (assignment_expression "puVar1 = (undefined8 *)FUN_002d9490(0x18)" identifier = (cast_expression "(undefined8 *)FUN_002d9490(0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002d9490(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined8 **)(param_1 + 0x70) = puVar1;" (assignment_expression "*(undefined8 **)(param_1 + 0x70) = puVar1" (pointer_expression "*(undefined8 **)(param_1 + 0x70)" * (cast_expression "(undefined8 **)(param_1 + 0x70)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);" (call_expression "FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6)" identifier (argument_list "(puVar1,param_2,param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)\n\n{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001bd390(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" (identifier "FUN_001bd390") (parameter_list "(long param_1,undefined8 param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }\n  puVar1 = (undefined8 *)FUN_002d9490(0x18);\n  *puVar1 = 0;\n  *(undefined8 **)(param_1 + 0x70) = puVar1;\n  puVar1[1] = 0;\n  puVar1[2] = 0;\n  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n    FUN_002ba3c0();\n    return;\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" (* "*") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_002ba3c0();\n    return;\n  }" ({ "{") (expression_statement "FUN_002ba3c0();" (call_expression "FUN_002ba3c0()" (identifier "FUN_002ba3c0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = (undefined8 *)FUN_002d9490(0x18);" (assignment_expression "puVar1 = (undefined8 *)FUN_002d9490(0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)FUN_002d9490(0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002d9490(0x18)" (identifier "FUN_002d9490") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 **)(param_1 + 0x70) = puVar1;" (assignment_expression "*(undefined8 **)(param_1 + 0x70) = puVar1" (pointer_expression "*(undefined8 **)(param_1 + 0x70)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x70)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);" (call_expression "FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6)" (identifier "FUN_002ba3c0") (argument_list "(puVar1,param_2,param_3,param_4,param_5,param_6)" (( "(") (identifier "puVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_merge_mapping(Relobj * this, Output_section_data *
   output_data, uint shndx, section_offset_type offset, section_size_type length,
   section_offset_type output_offset) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,type_2 *output_data,type_3 shndx,type_4 offset,
          type_5 length,type_4 output_offset)

{
  type_6 *this_00;
  
  if (this->object_merge_map_ != (type_6 *)0x0) {
    Object_merge_map::var_1
              (this->object_merge_map_,output_data,shndx,offset,length,output_offset);
    return;
  }
  this_00 = (type_6 *)var_2(0x18);
  (this_00->section_merge_maps_).
  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::type_6::Input_merge_map*>var_3>var_3>
  ._M_impl._M_start = (type_7)0x0;
  this->object_merge_map_ = this_00;
  (this_00->section_merge_maps_).
  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::type_6::Input_merge_map*>var_3>var_3>
  ._M_impl._M_finish = (type_7)0x0;
  (this_00->section_merge_maps_).
  super__Vector_base<std::pair<unsigned_int,_gold::Object_merge_map::Input_merge_map*>,_std::allocator<std::pair<unsigned_int,_gold::type_6::Input_merge_map*>var_3>var_3>
  ._M_impl._M_end_of_storage = (type_7)0x0;
  Object_merge_map::var_1(this_00,output_data,shndx,offset,length,output_offset);
  return;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (return_statement))))

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

{
  undefined8 *puVar1;
  
  if (*(long *)(param_1 + 0x70) != 0) {
    FUN_002ba3c0();
    return;
  }
  puVar1 = (undefined8 *)FUN_002d9490(0x18);
  *puVar1 = 0;
  *(undefined8 **)(param_1 + 0x70) = puVar1;
  puVar1[1] = 0;
  puVar1[2] = 0;
  FUN_002ba3c0(puVar1,param_2,param_3,param_4,param_5,param_6);
  return;
}

