
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void copy_from_posdep_options(General_options * this,
   Position_dependent_options * posdep) */

void __thiscall
gold::General_options::copy_from_posdep_options
          (General_options *this,Position_dependent_options *posdep)

{
  char *pcVar1;
  
  (this->as_needed_).value = posdep->as_needed_;
  (this->Bdynamic_).value = posdep->Bdynamic_;
  if (posdep->format_enum_ == OBJECT_FORMAT_ELF) {
    pcVar1 = "elf";
  }
  else {
    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");
    }
    pcVar1 = "binary";
  }
  (this->format_).value = pcVar1;
  (this->whole_archive_).value = posdep->whole_archive_;
  this->incremental_disposition_ = posdep->incremental_disposition_;
  return;
}



void FUN_001ded80(long param_1,undefined1 *param_2)

{
  char *pcVar1;
  
  *(undefined1 *)(param_1 + 0x4c9) = *param_2;
  *(undefined1 *)(param_1 + 0x889) = param_2[1];
  if (*(int *)(param_2 + 4) == 0) {
    pcVar1 = "elf";
  }
  else {
    if (*(int *)(param_2 + 4) != 1) {
                    /* WARNING: Subroutine does not return */
      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");
    }
    pcVar1 = "binary";
  }
  *(char **)(param_1 + 0x608) = pcVar1;
  *(undefined1 *)(param_1 + 0x7801) = param_2[8];
  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);
  return;
}


MOVZX EAX,byte ptr [RSI]
MOV byte ptr [RDI + 0x4c9],AL
MOVZX EAX,byte ptr [RSI + 0x1]
MOV byte ptr [RDI + 0x889],AL
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x001dedc8
CMP EAX,0x1
JNZ 0x001dedd1
LEA RAX,[0x3456f5]
MOV qword ptr [RDI + 0x608],RAX
MOVZX EAX,byte ptr [RSI + 0x8]
MOV byte ptr [RDI + 0x7801],AL
MOV EAX,dword ptr [RSI + 0xc]
MOV dword ptr [RDI + 0x91f0],EAX
RET
LEA RAX,[0x3456f1]
JMP 0x001deda6
PUSH RAX
LEA RDX,[0x349a90]
MOV ESI,0x2bc
LEA RDI,[0x345683]
CALL 0x00199900
(translation_unit "void FUN_001ded80(long param_1,undefined1 *param_2)\n\n{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}\n\n" (function_definition "void FUN_001ded80(long param_1,undefined1 *param_2)\n\n{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}" primitive_type (function_declarator "FUN_001ded80(long param_1,undefined1 *param_2)" identifier (parameter_list "(long param_1,undefined1 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x4c9) = *param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c9) = *param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x4c9)" * (cast_expression "(undefined1 *)(param_1 + 0x4c9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c9)" ( (binary_expression "param_1 + 0x4c9" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined1 *)(param_1 + 0x889) = param_2[1];" (assignment_expression "*(undefined1 *)(param_1 + 0x889) = param_2[1]" (pointer_expression "*(undefined1 *)(param_1 + 0x889)" * (cast_expression "(undefined1 *)(param_1 + 0x889)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x889)" ( (binary_expression "param_1 + 0x889" identifier + number_literal) )))) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 0)" ( (binary_expression "*(int *)(param_2 + 4) == 0" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar1 = "elf";\n  }" { (expression_statement "pcVar1 = "elf";" (assignment_expression "pcVar1 = "elf"" identifier = (string_literal ""elf"" " string_content ")) ;) }) (else_clause "else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" else (compound_statement "{\n    if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" { (if_statement "if (*(int *)(param_2 + 4) != 1) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }" if (parenthesized_expression "(*(int *)(param_2 + 4) != 1)" ( (binary_expression "*(int *)(param_2 + 4) != 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }" { comment (expression_statement "FUN_00199900("../../gold/options.cc",700,"object_format_to_string");" (call_expression "FUN_00199900("../../gold/options.cc",700,"object_format_to_string")" identifier (argument_list "("../../gold/options.cc",700,"object_format_to_string")" ( (string_literal ""../../gold/options.cc"" " string_content ") , number_literal , (string_literal ""object_format_to_string"" " string_content ") ))) ;) })) (expression_statement "pcVar1 = "binary";" (assignment_expression "pcVar1 = "binary"" identifier = (string_literal ""binary"" " string_content ")) ;) }))) (expression_statement "*(char **)(param_1 + 0x608) = pcVar1;" (assignment_expression "*(char **)(param_1 + 0x608) = pcVar1" (pointer_expression "*(char **)(param_1 + 0x608)" * (cast_expression "(char **)(param_1 + 0x608)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x608)" ( (binary_expression "param_1 + 0x608" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x7801) = param_2[8];" (assignment_expression "*(undefined1 *)(param_1 + 0x7801) = param_2[8]" (pointer_expression "*(undefined1 *)(param_1 + 0x7801)" * (cast_expression "(undefined1 *)(param_1 + 0x7801)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7801)" ( (binary_expression "param_1 + 0x7801" identifier + number_literal) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0x91f0)" * (cast_expression "(undefined4 *)(param_1 + 0x91f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x91f0)" ( (binary_expression "param_1 + 0x91f0" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void copy_from_posdep_options(General_options * this,\n   Position_dependent_options * posdep) */\n\nvoid __thiscall\ngold::General_options::copy_from_posdep_options\n          (General_options *this,Position_dependent_options *posdep)\n\n{\n  char *pcVar1;\n  \n  (this->as_needed_).value = posdep->as_needed_;\n  (this->Bdynamic_).value = posdep->Bdynamic_;\n  if (posdep->format_enum_ == OBJECT_FORMAT_ELF) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  (this->format_).value = pcVar1;\n  (this->whole_archive_).value = posdep->whole_archive_;\n  this->incremental_disposition_ = posdep->incremental_disposition_;\n  return;\n}\n\n" comment comment (function_definition "void __thiscall\ngold::General_options::copy_from_posdep_options\n          (General_options *this,Position_dependent_options *posdep)\n\n{\n  char *pcVar1;\n  \n  (this->as_needed_).value = posdep->as_needed_;\n  (this->Bdynamic_).value = posdep->Bdynamic_;\n  if (posdep->format_enum_ == OBJECT_FORMAT_ELF) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  (this->format_).value = pcVar1;\n  (this->whole_archive_).value = posdep->whole_archive_;\n  this->incremental_disposition_ = posdep->incremental_disposition_;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::General_options::" identifier : : identifier : :) (function_declarator "copy_from_posdep_options\n          (General_options *this,Position_dependent_options *posdep)" identifier (parameter_list "(General_options *this,Position_dependent_options *posdep)" ( (parameter_declaration "General_options *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Position_dependent_options *posdep" type_identifier (pointer_declarator "*posdep" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  (this->as_needed_).value = posdep->as_needed_;\n  (this->Bdynamic_).value = posdep->Bdynamic_;\n  if (posdep->format_enum_ == OBJECT_FORMAT_ELF) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  (this->format_).value = pcVar1;\n  (this->whole_archive_).value = posdep->whole_archive_;\n  this->incremental_disposition_ = posdep->incremental_disposition_;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "(this->as_needed_).value = posdep->as_needed_;" (assignment_expression "(this->as_needed_).value = posdep->as_needed_" (field_expression "(this->as_needed_).value" (parenthesized_expression "(this->as_needed_)" ( (field_expression "this->as_needed_" identifier -> field_identifier) )) . field_identifier) = (field_expression "posdep->as_needed_" identifier -> field_identifier)) ;) (expression_statement "(this->Bdynamic_).value = posdep->Bdynamic_;" (assignment_expression "(this->Bdynamic_).value = posdep->Bdynamic_" (field_expression "(this->Bdynamic_).value" (parenthesized_expression "(this->Bdynamic_)" ( (field_expression "this->Bdynamic_" identifier -> field_identifier) )) . field_identifier) = (field_expression "posdep->Bdynamic_" identifier -> field_identifier)) ;) (if_statement "if (posdep->format_enum_ == OBJECT_FORMAT_ELF) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" if (parenthesized_expression "(posdep->format_enum_ == OBJECT_FORMAT_ELF)" ( (binary_expression "posdep->format_enum_ == OBJECT_FORMAT_ELF" (field_expression "posdep->format_enum_" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    pcVar1 = "elf";\n  }" { (expression_statement "pcVar1 = "elf";" (assignment_expression "pcVar1 = "elf"" identifier = (string_literal ""elf"" " string_content ")) ;) }) (else_clause "else {\n    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" else (compound_statement "{\n    if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" { (if_statement "if (posdep->format_enum_ != OBJECT_FORMAT_BINARY) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }" if (parenthesized_expression "(posdep->format_enum_ != OBJECT_FORMAT_BINARY)" ( (binary_expression "posdep->format_enum_ != OBJECT_FORMAT_BINARY" (field_expression "posdep->format_enum_" identifier -> field_identifier) != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");\n    }" { comment (expression_statement "do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string");" (call_expression "do_gold_unreachable("../../gold/options.cc",700,"object_format_to_string")" identifier (argument_list "("../../gold/options.cc",700,"object_format_to_string")" ( (string_literal ""../../gold/options.cc"" " string_content ") , number_literal , (string_literal ""object_format_to_string"" " string_content ") ))) ;) })) (expression_statement "pcVar1 = "binary";" (assignment_expression "pcVar1 = "binary"" identifier = (string_literal ""binary"" " string_content ")) ;) }))) (expression_statement "(this->format_).value = pcVar1;" (assignment_expression "(this->format_).value = pcVar1" (field_expression "(this->format_).value" (parenthesized_expression "(this->format_)" ( (field_expression "this->format_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->whole_archive_).value = posdep->whole_archive_;" (assignment_expression "(this->whole_archive_).value = posdep->whole_archive_" (field_expression "(this->whole_archive_).value" (parenthesized_expression "(this->whole_archive_)" ( (field_expression "this->whole_archive_" identifier -> field_identifier) )) . field_identifier) = (field_expression "posdep->whole_archive_" identifier -> field_identifier)) ;) (expression_statement "this->incremental_disposition_ = posdep->incremental_disposition_;" (assignment_expression "this->incremental_disposition_ = posdep->incremental_disposition_" (field_expression "this->incremental_disposition_" identifier -> field_identifier) = (field_expression "posdep->incremental_disposition_" identifier -> field_identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001ded80(long param_1,undefined1 *param_2)\n\n{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}\n\n" (function_definition "void FUN_001ded80(long param_1,undefined1 *param_2)\n\n{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}" primitive_type (function_declarator "FUN_001ded80(long param_1,undefined1 *param_2)" identifier (parameter_list "(long param_1,undefined1 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x4c9) = *param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c9) = *param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x4c9)" * (cast_expression "(undefined1 *)(param_1 + 0x4c9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c9)" ( (binary_expression "param_1 + 0x4c9" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*(undefined1 *)(param_1 + 0x889) = param_2[1];" (assignment_expression "*(undefined1 *)(param_1 + 0x889) = param_2[1]" (pointer_expression "*(undefined1 *)(param_1 + 0x889)" * (cast_expression "(undefined1 *)(param_1 + 0x889)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x889)" ( (binary_expression "param_1 + 0x889" identifier + number_literal) )))) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (if_statement "if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 0)" ( (binary_expression "*(int *)(param_2 + 4) == 0" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar1 = "elf";\n  }" { (expression_statement "pcVar1 = "elf";" (assignment_expression "pcVar1 = "elf"" identifier = (string_literal ""elf"" " string_content ")) ;) }) (else_clause "else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" else (compound_statement "{\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" { (if_statement "if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }" if (parenthesized_expression "(*(int *)(param_2 + 4) != 1)" ( (binary_expression "*(int *)(param_2 + 4) != 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }" { (expression_statement "FUN_00199900("../../gold/options.cc",700,"object_format_to_string");" (call_expression "FUN_00199900("../../gold/options.cc",700,"object_format_to_string")" identifier (argument_list "("../../gold/options.cc",700,"object_format_to_string")" ( (string_literal ""../../gold/options.cc"" " string_content ") , number_literal , (string_literal ""object_format_to_string"" " string_content ") ))) ;) })) (expression_statement "pcVar1 = "binary";" (assignment_expression "pcVar1 = "binary"" identifier = (string_literal ""binary"" " string_content ")) ;) }))) (expression_statement "*(char **)(param_1 + 0x608) = pcVar1;" (assignment_expression "*(char **)(param_1 + 0x608) = pcVar1" (pointer_expression "*(char **)(param_1 + 0x608)" * (cast_expression "(char **)(param_1 + 0x608)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x608)" ( (binary_expression "param_1 + 0x608" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x7801) = param_2[8];" (assignment_expression "*(undefined1 *)(param_1 + 0x7801) = param_2[8]" (pointer_expression "*(undefined1 *)(param_1 + 0x7801)" * (cast_expression "(undefined1 *)(param_1 + 0x7801)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7801)" ( (binary_expression "param_1 + 0x7801" identifier + number_literal) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0x91f0)" * (cast_expression "(undefined4 *)(param_1 + 0x91f0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x91f0)" ( (binary_expression "param_1 + 0x91f0" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return ;) })))
(function_definition "void FUN_001ded80(long param_1,undefined1 *param_2)\n\n{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001ded80(long param_1,undefined1 *param_2)" (identifier "FUN_001ded80") (parameter_list "(long param_1,undefined1 *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *pcVar1;\n  \n  *(undefined1 *)(param_1 + 0x4c9) = *param_2;\n  *(undefined1 *)(param_1 + 0x889) = param_2[1];\n  if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }\n  *(char **)(param_1 + 0x608) = pcVar1;\n  *(undefined1 *)(param_1 + 0x7801) = param_2[8];\n  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x4c9) = *param_2;" (assignment_expression "*(undefined1 *)(param_1 + 0x4c9) = *param_2" (pointer_expression "*(undefined1 *)(param_1 + 0x4c9)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x4c9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c9)" (( "(") (binary_expression "param_1 + 0x4c9" (identifier "param_1") (+ "+") (number_literal "0x4c9")) () ")")))) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x889) = param_2[1];" (assignment_expression "*(undefined1 *)(param_1 + 0x889) = param_2[1]" (pointer_expression "*(undefined1 *)(param_1 + 0x889)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x889)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x889)" (( "(") (binary_expression "param_1 + 0x889" (identifier "param_1") (+ "+") (number_literal "0x889")) () ")")))) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*(int *)(param_2 + 4) == 0) {\n    pcVar1 = "elf";\n  }\n  else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 4) == 0" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar1 = "elf";\n  }" ({ "{") (expression_statement "pcVar1 = "elf";" (assignment_expression "pcVar1 = "elf"" (identifier "pcVar1") (= "=") (string_literal ""elf"" (" """) (string_content "elf") (" """))) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" (else "else") (compound_statement "{\n    if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }\n    pcVar1 = "binary";\n  }" ({ "{") (if_statement "if (*(int *)(param_2 + 4) != 1) {\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) != 1)" (( "(") (binary_expression "*(int *)(param_2 + 4) != 1" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n                    \n      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");\n    }" ({ "{") (expression_statement "FUN_00199900("../../gold/options.cc",700,"object_format_to_string");" (call_expression "FUN_00199900("../../gold/options.cc",700,"object_format_to_string")" (identifier "FUN_00199900") (argument_list "("../../gold/options.cc",700,"object_format_to_string")" (( "(") (string_literal ""../../gold/options.cc"" (" """) (string_content "../../gold/options.cc") (" """)) (, ",") (number_literal "700") (, ",") (string_literal ""object_format_to_string"" (" """) (string_content "object_format_to_string") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar1 = "binary";" (assignment_expression "pcVar1 = "binary"" (identifier "pcVar1") (= "=") (string_literal ""binary"" (" """) (string_content "binary") (" """))) (; ";")) (} "}")))) (expression_statement "*(char **)(param_1 + 0x608) = pcVar1;" (assignment_expression "*(char **)(param_1 + 0x608) = pcVar1" (pointer_expression "*(char **)(param_1 + 0x608)" (* "*") (cast_expression "(char **)(param_1 + 0x608)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x608)" (( "(") (binary_expression "param_1 + 0x608" (identifier "param_1") (+ "+") (number_literal "0x608")) () ")")))) (= "=") (identifier "pcVar1")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x7801) = param_2[8];" (assignment_expression "*(undefined1 *)(param_1 + 0x7801) = param_2[8]" (pointer_expression "*(undefined1 *)(param_1 + 0x7801)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x7801)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7801)" (( "(") (binary_expression "param_1 + 0x7801" (identifier "param_1") (+ "+") (number_literal "0x7801")) () ")")))) (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0x91f0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x91f0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x91f0)" (( "(") (binary_expression "param_1 + 0x91f0" (identifier "param_1") (+ "+") (number_literal "0x91f0")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void copy_from_posdep_options(General_options * this,
   Position_dependent_options * posdep) */

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

{
  char *pcVar1;
  
  (this->as_needed_).value = posdep->as_needed_;
  (this->Bdynamic_).value = posdep->Bdynamic_;
  if (posdep->format_enum_ == var_1) {
    pcVar1 = "elf";
  }
  else {
    if (posdep->format_enum_ != var_2) {
                    /* WARNING: Subroutine does not return */
      var_3("../../gold/options.cc",700,"object_format_to_string");
    }
    pcVar1 = "binary";
  }
  (this->format_).value = pcVar1;
  (this->whole_archive_).value = posdep->whole_archive_;
  this->incremental_disposition_ = posdep->incremental_disposition_;
  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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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 (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))

void MASKED(long param_1,undefined1 *param_2)

{
  char *pcVar1;
  
  *(undefined1 *)(param_1 + 0x4c9) = *param_2;
  *(undefined1 *)(param_1 + 0x889) = param_2[1];
  if (*(int *)(param_2 + 4) == 0) {
    pcVar1 = "elf";
  }
  else {
    if (*(int *)(param_2 + 4) != 1) {
                    /* WARNING: Subroutine does not return */
      FUN_00199900("../../gold/options.cc",700,"object_format_to_string");
    }
    pcVar1 = "binary";
  }
  *(char **)(param_1 + 0x608) = pcVar1;
  *(undefined1 *)(param_1 + 0x7801) = param_2[8];
  *(undefined4 *)(param_1 + 0x91f0) = *(undefined4 *)(param_2 + 0xc);
  return;
}

