
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write_ehdr(Dwp_output_file * this) */

void __thiscall gold::Dwp_output_file::write_ehdr(Dwp_output_file *this)

{
  if (this->size_ == 0x20) {
    if (this->big_endian_ != 0) {
      sized_write_ehdr<32,_true>(this);
      return;
    }
    sized_write_ehdr<32,_false>(this);
    return;
  }
  if (this->size_ == 0x40) {
    if (this->big_endian_ != 0) {
      sized_write_ehdr<64,_true>(this);
      return;
    }
    sized_write_ehdr<64,_false>(this);
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/dwp.cc",0x82f,"write_ehdr");
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_000366d0(int param_1)

{
  if (*(int *)(param_1 + 8) == 0x20) {
    if (*(int *)(param_1 + 0xc) != 0) {
      FUN_0004a870();
      return;
    }
    FUN_0004a9b0();
    return;
  }
  if (*(int *)(param_1 + 8) == 0x40) {
    if (*(int *)(param_1 + 0xc) != 0) {
      FUN_0004aad0();
      return;
    }
    FUN_0004ac20();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x35892a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0x8]
CMP EDX,0x20
JZ 0x00036710
CMP EDX,0x40
JNZ 0x00036729
MOV EDX,dword ptr [EAX + 0xc]
TEST EDX,EDX
JZ 0x00036700
ADD ESP,0x8
POP EBX
JMP 0x0004aad0
ADD ESP,0x8
POP EBX
JMP 0x0004ac20
MOV ECX,dword ptr [EAX + 0xc]
TEST ECX,ECX
JZ 0x00036720
ADD ESP,0x8
POP EBX
JMP 0x0004a870
ADD ESP,0x8
POP EBX
JMP 0x0004a9b0
PUSH EAX
LEA EAX,[EBX + 0xffef1ae0]
PUSH EAX
LEA EAX,[EBX + 0xffef1008]
PUSH 0x82f
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000366d0(int param_1)\n\n{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}\n\n" comment (function_definition "void FUN_000366d0(int param_1)\n\n{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}" primitive_type (function_declarator "FUN_000366d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}" { (if_statement "if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0x20)" ( (binary_expression "*(int *)(param_1 + 8) == 0x20" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0004a870();\n      return;\n    }" { (expression_statement "FUN_0004a870();" (call_expression "FUN_0004a870()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0004a9b0();" (call_expression "FUN_0004a9b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0x40)" ( (binary_expression "*(int *)(param_1 + 8) == 0x40" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0004aad0();\n      return;\n    }" { (expression_statement "FUN_0004aad0();" (call_expression "FUN_0004aad0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0004ac20();" (call_expression "FUN_0004ac20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);" (call_expression "FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1)" identifier (argument_list "("../../gold/dwp.cc",0x82f,"write_ehdr",param_1)" ( (string_literal ""../../gold/dwp.cc"" " string_content ") , number_literal , (string_literal ""write_ehdr"" " string_content ") , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void write_ehdr(Dwp_output_file * this) */\n\nvoid __thiscall gold::Dwp_output_file::write_ehdr(Dwp_output_file *this)\n\n{\n  if (this->size_ == 0x20) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }\n    sized_write_ehdr<32,_false>(this);\n    return;\n  }\n  if (this->size_ == 0x40) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }\n    sized_write_ehdr<64,_false>(this);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/dwp.cc",0x82f,"write_ehdr");\n}\n\n" comment comment (function_definition "void __thiscall gold::Dwp_output_file::write_ehdr(Dwp_output_file *this)\n\n{\n  if (this->size_ == 0x20) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }\n    sized_write_ehdr<32,_false>(this);\n    return;\n  }\n  if (this->size_ == 0x40) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }\n    sized_write_ehdr<64,_false>(this);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/dwp.cc",0x82f,"write_ehdr");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwp_output_file::" identifier : : identifier : :) (function_declarator "write_ehdr(Dwp_output_file *this)" identifier (parameter_list "(Dwp_output_file *this)" ( (parameter_declaration "Dwp_output_file *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  if (this->size_ == 0x20) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }\n    sized_write_ehdr<32,_false>(this);\n    return;\n  }\n  if (this->size_ == 0x40) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }\n    sized_write_ehdr<64,_false>(this);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/dwp.cc",0x82f,"write_ehdr");\n}" { (if_statement "if (this->size_ == 0x20) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }\n    sized_write_ehdr<32,_false>(this);\n    return;\n  }" if (parenthesized_expression "(this->size_ == 0x20)" ( (binary_expression "this->size_ == 0x20" (field_expression "this->size_" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }\n    sized_write_ehdr<32,_false>(this);\n    return;\n  }" { (if_statement "if (this->big_endian_ != 0) {\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }" if (parenthesized_expression "(this->big_endian_ != 0)" ( (binary_expression "this->big_endian_ != 0" (field_expression "this->big_endian_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      sized_write_ehdr<32,_true>(this);\n      return;\n    }" { (expression_statement "sized_write_ehdr<32,_true>(this);" (comma_expression "sized_write_ehdr<32,_true>(this)" (binary_expression "sized_write_ehdr<32" identifier < number_literal) , (binary_expression "_true>(this)" identifier > (parenthesized_expression "(this)" ( identifier )))) ;) (return_statement "return;" return ;) })) (expression_statement "sized_write_ehdr<32,_false>(this);" (comma_expression "sized_write_ehdr<32,_false>(this)" (binary_expression "sized_write_ehdr<32" identifier < number_literal) , (binary_expression "_false>(this)" identifier > (parenthesized_expression "(this)" ( identifier )))) ;) (return_statement "return;" return ;) })) (if_statement "if (this->size_ == 0x40) {\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }\n    sized_write_ehdr<64,_false>(this);\n    return;\n  }" if (parenthesized_expression "(this->size_ == 0x40)" ( (binary_expression "this->size_ == 0x40" (field_expression "this->size_" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (this->big_endian_ != 0) {\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }\n    sized_write_ehdr<64,_false>(this);\n    return;\n  }" { (if_statement "if (this->big_endian_ != 0) {\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }" if (parenthesized_expression "(this->big_endian_ != 0)" ( (binary_expression "this->big_endian_ != 0" (field_expression "this->big_endian_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      sized_write_ehdr<64,_true>(this);\n      return;\n    }" { (expression_statement "sized_write_ehdr<64,_true>(this);" (comma_expression "sized_write_ehdr<64,_true>(this)" (binary_expression "sized_write_ehdr<64" identifier < number_literal) , (binary_expression "_true>(this)" identifier > (parenthesized_expression "(this)" ( identifier )))) ;) (return_statement "return;" return ;) })) (expression_statement "sized_write_ehdr<64,_false>(this);" (comma_expression "sized_write_ehdr<64,_false>(this)" (binary_expression "sized_write_ehdr<64" identifier < number_literal) , (binary_expression "_false>(this)" identifier > (parenthesized_expression "(this)" ( identifier )))) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable("../../gold/dwp.cc",0x82f,"write_ehdr");" (call_expression "do_gold_unreachable("../../gold/dwp.cc",0x82f,"write_ehdr")" identifier (argument_list "("../../gold/dwp.cc",0x82f,"write_ehdr")" ( (string_literal ""../../gold/dwp.cc"" " string_content ") , number_literal , (string_literal ""write_ehdr"" " string_content ") ))) ;) })))
(translation_unit "void FUN_000366d0(int param_1)\n\n{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}\n\n" (function_definition "void FUN_000366d0(int param_1)\n\n{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}" primitive_type (function_declarator "FUN_000366d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}" { (if_statement "if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0x20)" ( (binary_expression "*(int *)(param_1 + 8) == 0x20" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0004a870();\n      return;\n    }" { (expression_statement "FUN_0004a870();" (call_expression "FUN_0004a870()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0004a9b0();" (call_expression "FUN_0004a9b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0x40)" ( (binary_expression "*(int *)(param_1 + 8) == 0x40" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }" { (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      FUN_0004aad0();\n      return;\n    }" { (expression_statement "FUN_0004aad0();" (call_expression "FUN_0004aad0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0004ac20();" (call_expression "FUN_0004ac20()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);" (call_expression "FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1)" identifier (argument_list "("../../gold/dwp.cc",0x82f,"write_ehdr",param_1)" ( (string_literal ""../../gold/dwp.cc"" " string_content ") , number_literal , (string_literal ""write_ehdr"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (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 { (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 ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (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 { (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 ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_000366d0(int param_1)\n\n{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}" (primitive_type "void") (function_declarator "FUN_000366d0(int param_1)" (identifier "FUN_000366d0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }\n  if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }\n                    \n  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 8) == 0x20) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 0x20)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0x20" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }\n    FUN_0004a9b0();\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004a870();\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0004a870();\n      return;\n    }" ({ "{") (expression_statement "FUN_0004a870();" (call_expression "FUN_0004a870()" (identifier "FUN_0004a870") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0004a9b0();" (call_expression "FUN_0004a9b0()" (identifier "FUN_0004a9b0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 8) == 0x40) {\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 0x40)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0x40" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }\n    FUN_0004ac20();\n    return;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n      FUN_0004aad0();\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0004aad0();\n      return;\n    }" ({ "{") (expression_statement "FUN_0004aad0();" (call_expression "FUN_0004aad0()" (identifier "FUN_0004aad0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0004ac20();" (call_expression "FUN_0004ac20()" (identifier "FUN_0004ac20") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);" (call_expression "FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1)" (identifier "FUN_00069d00") (argument_list "("../../gold/dwp.cc",0x82f,"write_ehdr",param_1)" (( "(") (string_literal ""../../gold/dwp.cc"" (" """) (string_content "../../gold/dwp.cc") (" """)) (, ",") (number_literal "0x82f") (, ",") (string_literal ""write_ehdr"" (" """) (string_content "write_ehdr") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void write_ehdr(Dwp_output_file * this) */

void __thiscall gold::type_1::function_1(type_1 *this)

{
  if (this->size_ == 0x20) {
    if (this->big_endian_ != 0) {
      var_1<32,var_2>(this);
      return;
    }
    var_1<32,var_3>(this);
    return;
  }
  if (this->size_ == 0x40) {
    if (this->big_endian_ != 0) {
      var_1<64,var_2>(this);
      return;
    }
    var_1<64,var_3>(this);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_4("../../gold/dwp.cc",0x82f,"write_ehdr");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (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 (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))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_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 (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))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1)

{
  if (*(int *)(param_1 + 8) == 0x20) {
    if (*(int *)(param_1 + 0xc) != 0) {
      FUN_0004a870();
      return;
    }
    FUN_0004a9b0();
    return;
  }
  if (*(int *)(param_1 + 8) == 0x40) {
    if (*(int *)(param_1 + 0xc) != 0) {
      FUN_0004aad0();
      return;
    }
    FUN_0004ac20();
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00069d00("../../gold/dwp.cc",0x82f,"write_ehdr",param_1);
}

