
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void yyerror(char *arg)

{
  char *pcVar1;
  char *fmt;
  
  if (ldfile_assumed_script != 0) {
    pcVar1 = ldlex_filename();
    fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);
    einfo(fmt,pcVar1);
  }
  if (error_index - 1U < 0x13) {
    einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);
    return;
  }
  einfo("%F%P:%pS: %s\n",0,arg);
  return;
}



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

void FUN_00017df0(undefined4 param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  if (DAT_001d087c != 0) {
    uVar1 = FUN_0001d2c0();
    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);
    FUN_00034d20(uVar2,uVar1);
  }
  if (DAT_001d0480 - 1U < 0x13) {
    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,
                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));
    return;
  }
  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00017b80
ADD EBX,0x1b7209
SUB ESP,0x4
LEA EAX,[EBX + 0x187c]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JNZ 0x00017e60
MOV EAX,dword ptr [EBX + 0x1480]
SUB EAX,0x1
CMP EAX,0x12
JA 0x00017e40
PUSH dword ptr [EBX + EAX*0x4 + 0x14a0]
LEA EAX,[EBX + 0xffe9d02a]
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
PUSH EAX
CALL 0x00034d20
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffe9d03e]
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
PUSH EAX
CALL 0x00034d20
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
CALL 0x0001d2c0
SUB ESP,0x4
MOV ESI,EAX
LEA EAX,[EBX + 0xffe9dc14]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016310
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00034d20
ADD ESP,0x10
JMP 0x00017e0c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00017df0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00017df0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00017df0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }" if (parenthesized_expression "(DAT_001d087c != 0)" ( (binary_expression "DAT_001d087c != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }" { (expression_statement "uVar1 = FUN_0001d2c0();" (assignment_expression "uVar1 = FUN_0001d2c0()" identifier = (call_expression "FUN_0001d2c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" identifier = (call_expression "dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" identifier (argument_list "(0,"%P:%s: file format not recognized; treating as linker script\n",5)" ( number_literal , (string_literal ""%P:%s: file format not recognized; treating as linker script\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar2,uVar1);" (call_expression "FUN_00034d20(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) })) (if_statement "if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }" if (parenthesized_expression "(DAT_001d0480 - 1U < 0x13)" ( (binary_expression "DAT_001d0480 - 1U < 0x13" (binary_expression "DAT_001d0480 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }" { (expression_statement "FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));" (call_expression "FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4))" identifier (argument_list "("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4))" ( (string_literal ""%F%P:%pS: %s in %s\n"" " string_content escape_sequence ") , number_literal , identifier , (pointer_expression "*(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" * (cast_expression "(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" ( (binary_expression "&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4" (pointer_expression "&DAT_001d04a0" & identifier) + (binary_expression "(DAT_001d0480 - 1U) * 4" (parenthesized_expression "(DAT_001d0480 - 1U)" ( (binary_expression "DAT_001d0480 - 1U" identifier - number_literal) )) * number_literal)) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00034d20("%F%P:%pS: %s\n",0,param_1);" (call_expression "FUN_00034d20("%F%P:%pS: %s\n",0,param_1)" identifier (argument_list "("%F%P:%pS: %s\n",0,param_1)" ( (string_literal ""%F%P:%pS: %s\n"" " string_content escape_sequence ") , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid yyerror(char *arg)\n\n{\n  char *pcVar1;\n  char *fmt;\n  \n  if (ldfile_assumed_script != 0) {\n    pcVar1 = ldlex_filename();\n    fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    einfo(fmt,pcVar1);\n  }\n  if (error_index - 1U < 0x13) {\n    einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);\n    return;\n  }\n  einfo("%F%P:%pS: %s\n",0,arg);\n  return;\n}\n\n" comment comment (function_definition "void yyerror(char *arg)\n\n{\n  char *pcVar1;\n  char *fmt;\n  \n  if (ldfile_assumed_script != 0) {\n    pcVar1 = ldlex_filename();\n    fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    einfo(fmt,pcVar1);\n  }\n  if (error_index - 1U < 0x13) {\n    einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);\n    return;\n  }\n  einfo("%F%P:%pS: %s\n",0,arg);\n  return;\n}" primitive_type (function_declarator "yyerror(char *arg)" identifier (parameter_list "(char *arg)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  char *fmt;\n  \n  if (ldfile_assumed_script != 0) {\n    pcVar1 = ldlex_filename();\n    fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    einfo(fmt,pcVar1);\n  }\n  if (error_index - 1U < 0x13) {\n    einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);\n    return;\n  }\n  einfo("%F%P:%pS: %s\n",0,arg);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (if_statement "if (ldfile_assumed_script != 0) {\n    pcVar1 = ldlex_filename();\n    fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    einfo(fmt,pcVar1);\n  }" if (parenthesized_expression "(ldfile_assumed_script != 0)" ( (binary_expression "ldfile_assumed_script != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar1 = ldlex_filename();\n    fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    einfo(fmt,pcVar1);\n  }" { (expression_statement "pcVar1 = ldlex_filename();" (assignment_expression "pcVar1 = ldlex_filename()" identifier = (call_expression "ldlex_filename()" identifier (argument_list "()" ( )))) ;) (expression_statement "fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" identifier (argument_list "(0,"%P:%s: file format not recognized; treating as linker script\n",5)" ( number_literal , (string_literal ""%P:%s: file format not recognized; treating as linker script\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,pcVar1);" (call_expression "einfo(fmt,pcVar1)" identifier (argument_list "(fmt,pcVar1)" ( identifier , identifier ))) ;) })) (if_statement "if (error_index - 1U < 0x13) {\n    einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);\n    return;\n  }" if (parenthesized_expression "(error_index - 1U < 0x13)" ( (binary_expression "error_index - 1U < 0x13" (binary_expression "error_index - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);\n    return;\n  }" { (expression_statement "einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U]);" (call_expression "einfo("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U])" identifier (argument_list "("%F%P:%pS: %s in %s\n",0,arg,error_names[error_index - 1U])" ( (string_literal ""%F%P:%pS: %s in %s\n"" " string_content escape_sequence ") , number_literal , identifier , (subscript_expression "error_names[error_index - 1U]" identifier [ (binary_expression "error_index - 1U" identifier - number_literal) ]) ))) ;) (return_statement "return;" return ;) })) (expression_statement "einfo("%F%P:%pS: %s\n",0,arg);" (call_expression "einfo("%F%P:%pS: %s\n",0,arg)" identifier (argument_list "("%F%P:%pS: %s\n",0,arg)" ( (string_literal ""%F%P:%pS: %s\n"" " string_content escape_sequence ") , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00017df0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}\n\n" (function_definition "void FUN_00017df0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00017df0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }" if (parenthesized_expression "(DAT_001d087c != 0)" ( (binary_expression "DAT_001d087c != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }" { (expression_statement "uVar1 = FUN_0001d2c0();" (assignment_expression "uVar1 = FUN_0001d2c0()" identifier = (call_expression "FUN_0001d2c0()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" identifier = (call_expression "dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" identifier (argument_list "(0,"%P:%s: file format not recognized; treating as linker script\n",5)" ( number_literal , (string_literal ""%P:%s: file format not recognized; treating as linker script\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d20(uVar2,uVar1);" (call_expression "FUN_00034d20(uVar2,uVar1)" identifier (argument_list "(uVar2,uVar1)" ( identifier , identifier ))) ;) })) (if_statement "if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }" if (parenthesized_expression "(DAT_001d0480 - 1U < 0x13)" ( (binary_expression "DAT_001d0480 - 1U < 0x13" (binary_expression "DAT_001d0480 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }" { (expression_statement "FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));" (call_expression "FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4))" identifier (argument_list "("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4))" ( (string_literal ""%F%P:%pS: %s in %s\n"" " string_content escape_sequence ") , number_literal , identifier , (pointer_expression "*(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" * (cast_expression "(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" ( (binary_expression "&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4" (pointer_expression "&DAT_001d04a0" & identifier) + (binary_expression "(DAT_001d0480 - 1U) * 4" (parenthesized_expression "(DAT_001d0480 - 1U)" ( (binary_expression "DAT_001d0480 - 1U" identifier - number_literal) )) * number_literal)) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00034d20("%F%P:%pS: %s\n",0,param_1);" (call_expression "FUN_00034d20("%F%P:%pS: %s\n",0,param_1)" identifier (argument_list "("%F%P:%pS: %s\n",0,param_1)" ( (string_literal ""%F%P:%pS: %s\n"" " string_content escape_sequence ") , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) * LIT)) )))) ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00017df0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00017df0(undefined4 param_1)" (identifier "FUN_00017df0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }\n  if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }\n  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (DAT_001d087c != 0) {\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }" (if "if") (parenthesized_expression "(DAT_001d087c != 0)" (( "(") (binary_expression "DAT_001d087c != 0" (identifier "DAT_001d087c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = FUN_0001d2c0();\n    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);\n    FUN_00034d20(uVar2,uVar1);\n  }" ({ "{") (expression_statement "uVar1 = FUN_0001d2c0();" (assignment_expression "uVar1 = FUN_0001d2c0()" (identifier "uVar1") (= "=") (call_expression "FUN_0001d2c0()" (identifier "FUN_0001d2c0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5)" (identifier "dcgettext") (argument_list "(0,"%P:%s: file format not recognized; treating as linker script\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%P:%s: file format not recognized; treating as linker script\n"" (" """) (string_content "%P:%s: file format not recognized; treating as linker script") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d20(uVar2,uVar1);" (call_expression "FUN_00034d20(uVar2,uVar1)" (identifier "FUN_00034d20") (argument_list "(uVar2,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_001d0480 - 1U < 0x13) {\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_001d0480 - 1U < 0x13)" (( "(") (binary_expression "DAT_001d0480 - 1U < 0x13" (binary_expression "DAT_001d0480 - 1U" (identifier "DAT_001d0480") (- "-") (number_literal "1U")) (< "<") (number_literal "0x13")) () ")")) (compound_statement "{\n    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));\n    return;\n  }" ({ "{") (expression_statement "FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));" (call_expression "FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4))" (identifier "FUN_00034d20") (argument_list "("%F%P:%pS: %s in %s\n",0,param_1,\n                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4))" (( "(") (string_literal ""%F%P:%pS: %s in %s\n"" (" """) (string_content "%F%P:%pS: %s in %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "0") (, ",") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" (* "*") (cast_expression "(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4)" (( "(") (binary_expression "&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4" (pointer_expression "&DAT_001d04a0" (& "&") (identifier "DAT_001d04a0")) (+ "+") (binary_expression "(DAT_001d0480 - 1U) * 4" (parenthesized_expression "(DAT_001d0480 - 1U)" (( "(") (binary_expression "DAT_001d0480 - 1U" (identifier "DAT_001d0480") (- "-") (number_literal "1U")) () ")")) (* "*") (number_literal "4"))) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00034d20("%F%P:%pS: %s\n",0,param_1);" (call_expression "FUN_00034d20("%F%P:%pS: %s\n",0,param_1)" (identifier "FUN_00034d20") (argument_list "("%F%P:%pS: %s\n",0,param_1)" (( "(") (string_literal ""%F%P:%pS: %s\n"" (" """) (string_content "%F%P:%pS: %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "0") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(char *arg)

{
  char *pcVar1;
  char *fmt;
  
  if (var_1 != 0) {
    pcVar1 = var_2();
    fmt = (char *)var_3(0,"%P:%s: file format not recognized; treating as linker script\n",5);
    var_4(fmt,pcVar1);
  }
  if (var_5 - 1U < 0x13) {
    var_4("%F%P:%pS: %s in %s\n",0,arg,error_names[var_5 - 1U]);
    return;
  }
  var_4("%F%P:%pS: %s\n",0,arg);
  return;
}


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

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

void MASKED(undefined4 param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  if (DAT_001d087c != 0) {
    uVar1 = FUN_0001d2c0();
    uVar2 = dcgettext(0,"%P:%s: file format not recognized; treating as linker script\n",5);
    FUN_00034d20(uVar2,uVar1);
  }
  if (DAT_001d0480 - 1U < 0x13) {
    FUN_00034d20("%F%P:%pS: %s in %s\n",0,param_1,
                 *(undefined4 *)(&DAT_001d04a0 + (DAT_001d0480 - 1U) * 4));
    return;
  }
  FUN_00034d20("%F%P:%pS: %s\n",0,param_1);
  return;
}

