
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void record_target_info(Dwp_output_file * this, char * param_6, int
   machine, int size, bool big_endian, int osabi, int abiversion) */

void __thiscall
gold::Dwp_output_file::record_target_info
          (Dwp_output_file *this,char *param_1,int machine,int size,bool big_endian,int osabi,
          int abiversion)

{
  undefined4 uVar1;
  undefined4 *in_EAX;
  FILE *__s;
  size_t sVar2;
  int *piVar3;
  char *pcVar4;
  char *format;
  
  __s = fopen64((char *)*in_EAX,"wb");
  in_EAX[6] = __s;
  if (__s != (FILE *)0x0) {
    sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);
    if ((uint)in_EAX[7] <= sVar2) {
      return;
    }
  }
  piVar3 = __errno_location();
  pcVar4 = strerror(*piVar3);
  uVar1 = *in_EAX;
  format = (char *)gettext("%s: %s");
                    /* WARNING: Subroutine does not return */
  gold_fatal(format,uVar1,pcVar4);
}



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

void __regparm3 FUN_00032960(undefined4 *param_1)

{
  undefined4 uVar1;
  FILE *__s;
  size_t sVar2;
  int *piVar3;
  char *pcVar4;
  undefined4 uVar5;
  
  __s = fopen64((char *)*param_1,"wb");
  param_1[6] = __s;
  if (__s != (FILE *)0x0) {
    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);
    if ((uint)param_1[7] <= sVar2) {
      return;
    }
  }
  piVar3 = __errno_location();
  pcVar4 = strerror(*piVar3);
  uVar1 = *param_1;
  uVar5 = gettext("%s: %s");
                    /* WARNING: Subroutine does not return */
  FUN_0005aca0(uVar5,uVar1,pcVar4);
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00032730
ADD EBX,0x2cf696
SUB ESP,0x8
LEA EAX,[EBX + 0xfff1852f]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00026300
ADD ESP,0x10
MOV dword ptr [ESI + 0x18],EAX
TEST EAX,EAX
JZ 0x000329a9
PUSH EAX
LEA EAX,[EBX + 0xfff19280]
PUSH dword ptr [ESI + 0x1c]
PUSH 0x1
PUSH EAX
CALL 0x00026730
ADD ESP,0x10
CMP EAX,dword ptr [ESI + 0x1c]
JC 0x000329a9
POP EBX
POP ESI
POP EDI
RET
CALL 0x00026090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00026100
MOV ESI,dword ptr [ESI]
MOV EDI,EAX
LEA EAX,[EBX + 0xfff226b5]
MOV dword ptr [ESP],EAX
CALL 0x000263b0
ADD ESP,0xc
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x0005aca0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00032960(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}\n\n" comment (function_definition "void __regparm3 FUN_00032960(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00032960(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "FILE *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "__s = fopen64((char *)*param_1,"wb");" (assignment_expression "__s = fopen64((char *)*param_1,"wb")" identifier = (call_expression "fopen64((char *)*param_1,"wb")" identifier (argument_list "((char *)*param_1,"wb")" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""wb"" " string_content ") )))) ;) (expression_statement "param_1[6] = __s;" (assignment_expression "param_1[6] = __s" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }" if (parenthesized_expression "(__s != (FILE *)0x0)" ( (binary_expression "__s != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }" { (expression_statement "sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);" (assignment_expression "sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s)" identifier = (call_expression "fwrite(&DAT_0021b280,1,param_1[7],__s)" identifier (argument_list "(&DAT_0021b280,1,param_1[7],__s)" ( (pointer_expression "&DAT_0021b280" & identifier) , number_literal , (subscript_expression "param_1[7]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if ((uint)param_1[7] <= sVar2) {\n      return;\n    }" if (parenthesized_expression "((uint)param_1[7] <= sVar2)" ( (binary_expression "(uint)param_1[7] <= sVar2" (cast_expression "(uint)param_1[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[7]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = gettext("%s: %s");" (assignment_expression "uVar5 = gettext("%s: %s")" identifier = (call_expression "gettext("%s: %s")" identifier (argument_list "("%s: %s")" ( (string_literal ""%s: %s"" " string_content ") )))) ;) comment (expression_statement "FUN_0005aca0(uVar5,uVar1,pcVar4);" (call_expression "FUN_0005aca0(uVar5,uVar1,pcVar4)" identifier (argument_list "(uVar5,uVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void record_target_info(Dwp_output_file * this, char * param_6, int\n   machine, int size, bool big_endian, int osabi, int abiversion) */\n\nvoid __thiscall\ngold::Dwp_output_file::record_target_info\n          (Dwp_output_file *this,char *param_1,int machine,int size,bool big_endian,int osabi,\n          int abiversion)\n\n{\n  undefined4 uVar1;\n  undefined4 *in_EAX;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  \n  __s = fopen64((char *)*in_EAX,"wb");\n  in_EAX[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);\n    if ((uint)in_EAX[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *in_EAX;\n  format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(format,uVar1,pcVar4);\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Dwp_output_file::record_target_info\n          (Dwp_output_file *this,char *param_1,int machine,int size,bool big_endian,int osabi,\n          int abiversion)\n\n{\n  undefined4 uVar1;\n  undefined4 *in_EAX;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  \n  __s = fopen64((char *)*in_EAX,"wb");\n  in_EAX[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);\n    if ((uint)in_EAX[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *in_EAX;\n  format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(format,uVar1,pcVar4);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwp_output_file::" identifier : : identifier : :) (function_declarator "record_target_info\n          (Dwp_output_file *this,char *param_1,int machine,int size,bool big_endian,int osabi,\n          int abiversion)" identifier (parameter_list "(Dwp_output_file *this,char *param_1,int machine,int size,bool big_endian,int osabi,\n          int abiversion)" ( (parameter_declaration "Dwp_output_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int machine" primitive_type identifier) , (parameter_declaration "int size" primitive_type identifier) , (parameter_declaration "bool big_endian" primitive_type identifier) , (parameter_declaration "int osabi" primitive_type identifier) , (parameter_declaration "int abiversion" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *in_EAX;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  \n  __s = fopen64((char *)*in_EAX,"wb");\n  in_EAX[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);\n    if ((uint)in_EAX[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *in_EAX;\n  format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(format,uVar1,pcVar4);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *in_EAX;" type_identifier (pointer_declarator "*in_EAX" * identifier) ;) (declaration "FILE *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "__s = fopen64((char *)*in_EAX,"wb");" (assignment_expression "__s = fopen64((char *)*in_EAX,"wb")" identifier = (call_expression "fopen64((char *)*in_EAX,"wb")" identifier (argument_list "((char *)*in_EAX,"wb")" ( (cast_expression "(char *)*in_EAX" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_EAX" * identifier)) , (string_literal ""wb"" " string_content ") )))) ;) (expression_statement "in_EAX[6] = __s;" (assignment_expression "in_EAX[6] = __s" (subscript_expression "in_EAX[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);\n    if ((uint)in_EAX[7] <= sVar2) {\n      return;\n    }\n  }" if (parenthesized_expression "(__s != (FILE *)0x0)" ( (binary_expression "__s != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);\n    if ((uint)in_EAX[7] <= sVar2) {\n      return;\n    }\n  }" { (expression_statement "sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s);" (assignment_expression "sVar2 = fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s)" identifier = (call_expression "fwrite(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s)" identifier (argument_list "(record_target_info(char_const*,int,int,bool,int,int)::buf,1,in_EAX[7],__s)" ( (call_expression "record_target_info(char_const*,int,int,bool,int,int)" identifier (argument_list "(char_const*,int,int,bool,int,int)" ( (binary_expression "char_const*" identifier * identifier) , identifier , identifier , identifier , identifier , identifier ))) (ERROR "::buf" : : identifier) , number_literal , (subscript_expression "in_EAX[7]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if ((uint)in_EAX[7] <= sVar2) {\n      return;\n    }" if (parenthesized_expression "((uint)in_EAX[7] <= sVar2)" ( (binary_expression "(uint)in_EAX[7] <= sVar2" (cast_expression "(uint)in_EAX[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in_EAX[7]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "uVar1 = *in_EAX;" (assignment_expression "uVar1 = *in_EAX" identifier = (pointer_expression "*in_EAX" * identifier)) ;) (expression_statement "format = (char *)gettext("%s: %s");" (assignment_expression "format = (char *)gettext("%s: %s")" identifier = (cast_expression "(char *)gettext("%s: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: %s")" identifier (argument_list "("%s: %s")" ( (string_literal ""%s: %s"" " string_content ") ))))) ;) comment (expression_statement "gold_fatal(format,uVar1,pcVar4);" (call_expression "gold_fatal(format,uVar1,pcVar4)" identifier (argument_list "(format,uVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void __regparm3 FUN_00032960(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    \n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}\n\n" (function_definition "void __regparm3 FUN_00032960(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    \n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00032960(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    \n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "FILE *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "__s = fopen64((char *)*param_1,"wb");" (assignment_expression "__s = fopen64((char *)*param_1,"wb")" identifier = (call_expression "fopen64((char *)*param_1,"wb")" identifier (argument_list "((char *)*param_1,"wb")" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""wb"" " string_content ") )))) ;) (expression_statement "param_1[6] = __s;" (assignment_expression "param_1[6] = __s" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }" if (parenthesized_expression "(__s != (FILE *)0x0)" ( (binary_expression "__s != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }" { (expression_statement "sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);" (assignment_expression "sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s)" identifier = (call_expression "fwrite(&DAT_0021b280,1,param_1[7],__s)" identifier (argument_list "(&DAT_0021b280,1,param_1[7],__s)" ( (pointer_expression "&DAT_0021b280" & identifier) , number_literal , (subscript_expression "param_1[7]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if ((uint)param_1[7] <= sVar2) {\n      return;\n    }" if (parenthesized_expression "((uint)param_1[7] <= sVar2)" ( (binary_expression "(uint)param_1[7] <= sVar2" (cast_expression "(uint)param_1[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[7]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar5 = gettext("%s: %s");" (assignment_expression "uVar5 = gettext("%s: %s")" identifier = (call_expression "gettext("%s: %s")" identifier (argument_list "("%s: %s")" ( (string_literal ""%s: %s"" " string_content ") )))) ;) (expression_statement "FUN_0005aca0(uVar5,uVar1,pcVar4);" (call_expression "FUN_0005aca0(uVar5,uVar1,pcVar4)" identifier (argument_list "(uVar5,uVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (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 ))) ;) })))
(function_definition "void __regparm3 FUN_00032960(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    \n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00032960(undefined4 *param_1)" (identifier "FUN_00032960") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  FILE *__s;\n  size_t sVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  \n  __s = fopen64((char *)*param_1,"wb");\n  param_1[6] = __s;\n  if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }\n  piVar3 = __errno_location();\n  pcVar4 = strerror(*piVar3);\n  uVar1 = *param_1;\n  uVar5 = gettext("%s: %s");\n                    \n  FUN_0005aca0(uVar5,uVar1,pcVar4);\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "FILE *__s;" (type_identifier "FILE") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "__s = fopen64((char *)*param_1,"wb");" (assignment_expression "__s = fopen64((char *)*param_1,"wb")" (identifier "__s") (= "=") (call_expression "fopen64((char *)*param_1,"wb")" (identifier "fopen64") (argument_list "((char *)*param_1,"wb")" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""wb"" (" """) (string_content "wb") (" """)) () ")")))) (; ";")) (expression_statement "param_1[6] = __s;" (assignment_expression "param_1[6] = __s" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "__s")) (; ";")) (if_statement "if (__s != (FILE *)0x0) {\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(__s != (FILE *)0x0)" (( "(") (binary_expression "__s != (FILE *)0x0" (identifier "__s") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);\n    if ((uint)param_1[7] <= sVar2) {\n      return;\n    }\n  }" ({ "{") (expression_statement "sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);" (assignment_expression "sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s)" (identifier "sVar2") (= "=") (call_expression "fwrite(&DAT_0021b280,1,param_1[7],__s)" (identifier "fwrite") (argument_list "(&DAT_0021b280,1,param_1[7],__s)" (( "(") (pointer_expression "&DAT_0021b280" (& "&") (identifier "DAT_0021b280")) (, ",") (number_literal "1") (, ",") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (, ",") (identifier "__s") () ")")))) (; ";")) (if_statement "if ((uint)param_1[7] <= sVar2) {\n      return;\n    }" (if "if") (parenthesized_expression "((uint)param_1[7] <= sVar2)" (( "(") (binary_expression "(uint)param_1[7] <= sVar2" (cast_expression "(uint)param_1[7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (<= "<=") (identifier "sVar2")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" (identifier "pcVar4") (= "=") (call_expression "strerror(*piVar3)" (identifier "strerror") (argument_list "(*piVar3)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) () ")")))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar5 = gettext("%s: %s");" (assignment_expression "uVar5 = gettext("%s: %s")" (identifier "uVar5") (= "=") (call_expression "gettext("%s: %s")" (identifier "gettext") (argument_list "("%s: %s")" (( "(") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0005aca0(uVar5,uVar1,pcVar4);" (call_expression "FUN_0005aca0(uVar5,uVar1,pcVar4)" (identifier "FUN_0005aca0") (argument_list "(uVar5,uVar1,pcVar4)" (( "(") (identifier "uVar5") (, ",") (identifier "uVar1") (, ",") (identifier "pcVar4") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void record_target_info(Dwp_output_file * this, char * param_6, int
   machine, int size, bool big_endian, int osabi, int abiversion) */

void __thiscall
gold::type_1::function_1
          (type_1 *this,char *param_1,int machine,int size,bool big_endian,int osabi,
          int abiversion)

{
  type_2 uVar1;
  type_2 *in_EAX;
  type_3 *var_2;
  size_t var_6;
  int *piVar3;
  char *pcVar4;
  char *format;
  
  var_2 = var_1((char *)*in_EAX,"wb");
  in_EAX[6] = var_2;
  if (var_2 != (type_3 *)0x0) {
    var_6 = var_3(function_1(var_4*var_5,int,int,bool,int,int)::buf,1,in_EAX[7],var_2);
    if ((type_4)in_EAX[7] <= var_6) {
      return;
    }
  }
  piVar3 = var_7();
  pcVar4 = var_8(*piVar3);
  uVar1 = *in_EAX;
  format = (char *)var_9("%s: %s");
                    /* WARNING: Subroutine does not return */
  var_10(format,uVar1,pcVar4);
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (string_literal (string_content)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (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)))))))

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

void __regparm3 MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  FILE *__s;
  size_t sVar2;
  int *piVar3;
  char *pcVar4;
  undefined4 uVar5;
  
  __s = fopen64((char *)*param_1,"wb");
  param_1[6] = __s;
  if (__s != (FILE *)0x0) {
    sVar2 = fwrite(&DAT_0021b280,1,param_1[7],__s);
    if ((uint)param_1[7] <= sVar2) {
      return;
    }
  }
  piVar3 = __errno_location();
  pcVar4 = strerror(*piVar3);
  uVar1 = *param_1;
  uVar5 = gettext("%s: %s");
                    /* WARNING: Subroutine does not return */
  FUN_0005aca0(uVar5,uVar1,pcVar4);
}

