
/* DWARF original prototype: void add_cu_set(Dwp_output_file * this, Unit_set * cu_set) */

void __thiscall gold::Dwp_output_file::add_cu_set(Dwp_output_file *this,Unit_set *cu_set)

{
  uint64_t signature;
  char *pcVar1;
  bool bVar2;
  char *format;
  uint slot;
  
  signature = cu_set->signature;
  bVar2 = Dwp_index::find_or_add(&this->cu_index_,signature,&slot);
  if (!bVar2) {
    Dwp_index::enter_set(&this->cu_index_,slot,cu_set);
    return;
  }
  pcVar1 = this->name_;
  format = (char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");
  gold_warning(format,pcVar1,signature);
  return;
}



void FUN_00153090(undefined8 *param_1,undefined8 *param_2)

{
  undefined8 uVar1;
  undefined8 uVar2;
  char cVar3;
  undefined8 uVar4;
  undefined4 local_2c [3];
  
  uVar1 = *param_2;
  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);
  if (cVar3 == '\0') {
    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);
    return;
  }
  uVar2 = *param_1;
  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");
  FUN_001783d0(uVar4,uVar2,uVar1);
  return;
}


PUSH R13
MOV R13,RSI
PUSH R12
LEA R12,[RDI + 0x198]
PUSH RBP
MOV RBP,RDI
MOV RDI,R12
PUSH RBX
SUB RSP,0x18
MOV RBX,qword ptr [RSI]
LEA RDX,[RSP + 0xc]
MOV RSI,RBX
CALL 0x00151b80
TEST AL,AL
JNZ 0x001530e0
MOV ESI,dword ptr [RSP + 0xc]
MOV RDX,R13
MOV RDI,R12
CALL 0x00152f80
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV RBP,qword ptr [RBP]
LEA RDI,[0x36b310]
CALL 0x00147320
MOV RDX,RBX
MOV RSI,RBP
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001783d0
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
(translation_unit "void FUN_00153090(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_00153090(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00153090(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined4 local_2c [3];" type_identifier (array_declarator "local_2c [3]" identifier [ number_literal ]) ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);" (assignment_expression "cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c)" identifier = (call_expression "FUN_00151b80(param_1 + 0x33,uVar1,local_2c)" identifier (argument_list "(param_1 + 0x33,uVar1,local_2c)" ( (binary_expression "param_1 + 0x33" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }" { (expression_statement "FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);" (call_expression "FUN_00152f80(param_1 + 0x33,local_2c[0],param_2)" identifier (argument_list "(param_1 + 0x33,local_2c[0],param_2)" ( (binary_expression "param_1 + 0x33" identifier + number_literal) , (subscript_expression "local_2c[0]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");" (assignment_expression "uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" identifier = (call_expression "gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" identifier (argument_list "("%s: duplicate entry for CU (dwo_id 0x%llx)")" ( (string_literal ""%s: duplicate entry for CU (dwo_id 0x%llx)"" " string_content ") )))) ;) (expression_statement "FUN_001783d0(uVar4,uVar2,uVar1);" (call_expression "FUN_001783d0(uVar4,uVar2,uVar1)" identifier (argument_list "(uVar4,uVar2,uVar1)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_cu_set(Dwp_output_file * this, Unit_set * cu_set) */\n\nvoid __thiscall gold::Dwp_output_file::add_cu_set(Dwp_output_file *this,Unit_set *cu_set)\n\n{\n  uint64_t signature;\n  char *pcVar1;\n  bool bVar2;\n  char *format;\n  uint slot;\n  \n  signature = cu_set->signature;\n  bVar2 = Dwp_index::find_or_add(&this->cu_index_,signature,&slot);\n  if (!bVar2) {\n    Dwp_index::enter_set(&this->cu_index_,slot,cu_set);\n    return;\n  }\n  pcVar1 = this->name_;\n  format = (char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  gold_warning(format,pcVar1,signature);\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Dwp_output_file::add_cu_set(Dwp_output_file *this,Unit_set *cu_set)\n\n{\n  uint64_t signature;\n  char *pcVar1;\n  bool bVar2;\n  char *format;\n  uint slot;\n  \n  signature = cu_set->signature;\n  bVar2 = Dwp_index::find_or_add(&this->cu_index_,signature,&slot);\n  if (!bVar2) {\n    Dwp_index::enter_set(&this->cu_index_,slot,cu_set);\n    return;\n  }\n  pcVar1 = this->name_;\n  format = (char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  gold_warning(format,pcVar1,signature);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwp_output_file::" identifier : : identifier : :) (function_declarator "add_cu_set(Dwp_output_file *this,Unit_set *cu_set)" identifier (parameter_list "(Dwp_output_file *this,Unit_set *cu_set)" ( (parameter_declaration "Dwp_output_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Unit_set *cu_set" type_identifier (pointer_declarator "*cu_set" * identifier)) ))) (compound_statement "{\n  uint64_t signature;\n  char *pcVar1;\n  bool bVar2;\n  char *format;\n  uint slot;\n  \n  signature = cu_set->signature;\n  bVar2 = Dwp_index::find_or_add(&this->cu_index_,signature,&slot);\n  if (!bVar2) {\n    Dwp_index::enter_set(&this->cu_index_,slot,cu_set);\n    return;\n  }\n  pcVar1 = this->name_;\n  format = (char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  gold_warning(format,pcVar1,signature);\n  return;\n}" { (declaration "uint64_t signature;" primitive_type identifier ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "uint slot;" type_identifier identifier ;) (expression_statement "signature = cu_set->signature;" (assignment_expression "signature = cu_set->signature" identifier = (field_expression "cu_set->signature" identifier -> field_identifier)) ;) (ERROR "bVar2 = Dwp_index::" (assignment_expression "bVar2 = Dwp_index" identifier = identifier) : :) (expression_statement "find_or_add(&this->cu_index_,signature,&slot);" (call_expression "find_or_add(&this->cu_index_,signature,&slot)" identifier (argument_list "(&this->cu_index_,signature,&slot)" ( (pointer_expression "&this->cu_index_" & (field_expression "this->cu_index_" identifier -> field_identifier)) , identifier , (pointer_expression "&slot" & identifier) ))) ;) (if_statement "if (!bVar2) {\n    Dwp_index::enter_set(&this->cu_index_,slot,cu_set);\n    return;\n  }" if (parenthesized_expression "(!bVar2)" ( (unary_expression "!bVar2" ! identifier) )) (compound_statement "{\n    Dwp_index::enter_set(&this->cu_index_,slot,cu_set);\n    return;\n  }" { (labeled_statement "Dwp_index::enter_set(&this->cu_index_,slot,cu_set);" statement_identifier : (ERROR ":" :) (expression_statement "enter_set(&this->cu_index_,slot,cu_set);" (call_expression "enter_set(&this->cu_index_,slot,cu_set)" identifier (argument_list "(&this->cu_index_,slot,cu_set)" ( (pointer_expression "&this->cu_index_" & (field_expression "this->cu_index_" identifier -> field_identifier)) , identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (expression_statement "pcVar1 = this->name_;" (assignment_expression "pcVar1 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");" (assignment_expression "format = (char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" identifier = (cast_expression "(char *)gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" identifier (argument_list "("%s: duplicate entry for CU (dwo_id 0x%llx)")" ( (string_literal ""%s: duplicate entry for CU (dwo_id 0x%llx)"" " string_content ") ))))) ;) (expression_statement "gold_warning(format,pcVar1,signature);" (call_expression "gold_warning(format,pcVar1,signature)" identifier (argument_list "(format,pcVar1,signature)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00153090(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_00153090(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00153090(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined4 local_2c [3];" type_identifier (array_declarator "local_2c [3]" identifier [ number_literal ]) ;) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);" (assignment_expression "cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c)" identifier = (call_expression "FUN_00151b80(param_1 + 0x33,uVar1,local_2c)" identifier (argument_list "(param_1 + 0x33,uVar1,local_2c)" ( (binary_expression "param_1 + 0x33" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }" { (expression_statement "FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);" (call_expression "FUN_00152f80(param_1 + 0x33,local_2c[0],param_2)" identifier (argument_list "(param_1 + 0x33,local_2c[0],param_2)" ( (binary_expression "param_1 + 0x33" identifier + number_literal) , (subscript_expression "local_2c[0]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");" (assignment_expression "uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" identifier = (call_expression "gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" identifier (argument_list "("%s: duplicate entry for CU (dwo_id 0x%llx)")" ( (string_literal ""%s: duplicate entry for CU (dwo_id 0x%llx)"" " string_content ") )))) ;) (expression_statement "FUN_001783d0(uVar4,uVar2,uVar1);" (call_expression "FUN_001783d0(uVar4,uVar2,uVar1)" identifier (argument_list "(uVar4,uVar2,uVar1)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00153090(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00153090(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_00153090") (parameter_list "(undefined8 *param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  undefined8 uVar2;\n  char cVar3;\n  undefined8 uVar4;\n  undefined4 local_2c [3];\n  \n  uVar1 = *param_2;\n  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);\n  if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }\n  uVar2 = *param_1;\n  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");\n  FUN_001783d0(uVar4,uVar2,uVar1);\n  return;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "undefined4 local_2c [3];" (type_identifier "undefined4") (array_declarator "local_2c [3]" (identifier "local_2c") ([ "[") (number_literal "3") (] "]")) (; ";")) (expression_statement "uVar1 = *param_2;" (assignment_expression "uVar1 = *param_2" (identifier "uVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);" (assignment_expression "cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c)" (identifier "cVar3") (= "=") (call_expression "FUN_00151b80(param_1 + 0x33,uVar1,local_2c)" (identifier "FUN_00151b80") (argument_list "(param_1 + 0x33,uVar1,local_2c)" (( "(") (binary_expression "param_1 + 0x33" (identifier "param_1") (+ "+") (number_literal "0x33")) (, ",") (identifier "uVar1") (, ",") (identifier "local_2c") () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') {\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);\n    return;\n  }" ({ "{") (expression_statement "FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);" (call_expression "FUN_00152f80(param_1 + 0x33,local_2c[0],param_2)" (identifier "FUN_00152f80") (argument_list "(param_1 + 0x33,local_2c[0],param_2)" (( "(") (binary_expression "param_1 + 0x33" (identifier "param_1") (+ "+") (number_literal "0x33")) (, ",") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");" (assignment_expression "uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" (identifier "uVar4") (= "=") (call_expression "gettext("%s: duplicate entry for CU (dwo_id 0x%llx)")" (identifier "gettext") (argument_list "("%s: duplicate entry for CU (dwo_id 0x%llx)")" (( "(") (string_literal ""%s: duplicate entry for CU (dwo_id 0x%llx)"" (" """) (string_content "%s: duplicate entry for CU (dwo_id 0x%llx)") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001783d0(uVar4,uVar2,uVar1);" (call_expression "FUN_001783d0(uVar4,uVar2,uVar1)" (identifier "FUN_001783d0") (argument_list "(uVar4,uVar2,uVar1)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_cu_set(Dwp_output_file * this, Unit_set * cu_set) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *cu_set)

{
  uint64_t signature;
  char *pcVar1;
  bool bVar2;
  char *format;
  type_3 slot;
  
  signature = cu_set->signature;
  bVar2 = Dwp_index::var_1(&this->cu_index_,signature,&slot);
  if (!bVar2) {
    Dwp_index::var_2(&this->cu_index_,slot,cu_set);
    return;
  }
  pcVar1 = this->name_;
  format = (char *)var_3("%s: duplicate entry for CU (dwo_id 0x%llx)");
  var_4(format,pcVar1,signature);
  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))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

void MASKED(undefined8 *param_1,undefined8 *param_2)

{
  undefined8 uVar1;
  undefined8 uVar2;
  char cVar3;
  undefined8 uVar4;
  undefined4 local_2c [3];
  
  uVar1 = *param_2;
  cVar3 = FUN_00151b80(param_1 + 0x33,uVar1,local_2c);
  if (cVar3 == '\0') {
    FUN_00152f80(param_1 + 0x33,local_2c[0],param_2);
    return;
  }
  uVar2 = *param_1;
  uVar4 = gettext("%s: duplicate entry for CU (dwo_id 0x%llx)");
  FUN_001783d0(uVar4,uVar2,uVar1);
  return;
}

