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

void ldfile_set_output_arch(char *string,bfd_architecture defarch)

{
  int iVar1;
  char *fmt;
  
  iVar1 = bfd_scan_arch(string);
  if (iVar1 == 0) {
    if (defarch != bfd_arch_unknown) {
      ldfile_output_architecture = defarch;
      return;
    }
    fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);
    einfo(fmt,string);
  }
  else {
    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);
    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);
    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);
  }
  return;
}



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

void FUN_00035d20(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = bfd_scan_arch(param_1);
  if (iVar1 == 0) {
    if (param_2 != 0) {
      DAT_001c103c = param_2;
      return;
    }
    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);
    FUN_00034d60(uVar2,param_1);
  }
  else {
    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);
    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);
    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);
  }
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00017bc0
ADD EBX,0x1892d9
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
PUSH ESI
CALL 0x00016a10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00035d70
MOV ECX,dword ptr [EAX + 0xc]
LEA EDX,[EBX + 0x203c]
MOV dword ptr [EDX],ECX
MOV ECX,dword ptr [EAX + 0x10]
LEA EDX,[EBX + 0x2040]
MOV EAX,dword ptr [EAX + 0x18]
MOV dword ptr [EDX],ECX
MOV dword ptr [EBX + 0x428],EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x00035d90
LEA EAX,[EBX + 0x203c]
MOV ESI,dword ptr [ESP + 0x14]
MOV dword ptr [EAX],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffeb3dac]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016360
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00034d60
ADD ESP,0x10
JMP 0x00035d60
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00035d20(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00035d20(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00035d20(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = bfd_scan_arch(param_1);" (assignment_expression "iVar1 = bfd_scan_arch(param_1)" identifier = (call_expression "bfd_scan_arch(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }" { (if_statement "if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_001c103c = param_2;\n      return;\n    }" { (expression_statement "DAT_001c103c = param_2;" (assignment_expression "DAT_001c103c = param_2" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" identifier (argument_list "(0,"%F%P: cannot represent machine `%s\'\n",5)" ( number_literal , (string_literal ""%F%P: cannot represent machine `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar2,param_1);" (call_expression "FUN_00034d60(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" else (compound_statement "{\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" { (expression_statement "DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);" (assignment_expression "DAT_001c103c = *(undefined4 *)(iVar1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);" (assignment_expression "PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18)" identifier = (pointer_expression "*(undefined **)(iVar1 + 0x18)" * (cast_expression "(undefined **)(iVar1 + 0x18)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) ;) }))) (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 ldfile_set_output_arch(char *string,bfd_architecture defarch)\n\n{\n  int iVar1;\n  char *fmt;\n  \n  iVar1 = bfd_scan_arch(string);\n  if (iVar1 == 0) {\n    if (defarch != bfd_arch_unknown) {\n      ldfile_output_architecture = defarch;\n      return;\n    }\n    fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    einfo(fmt,string);\n  }\n  else {\n    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);\n    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);\n    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);\n  }\n  return;\n}\n\n" comment comment (function_definition "void ldfile_set_output_arch(char *string,bfd_architecture defarch)\n\n{\n  int iVar1;\n  char *fmt;\n  \n  iVar1 = bfd_scan_arch(string);\n  if (iVar1 == 0) {\n    if (defarch != bfd_arch_unknown) {\n      ldfile_output_architecture = defarch;\n      return;\n    }\n    fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    einfo(fmt,string);\n  }\n  else {\n    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);\n    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);\n    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);\n  }\n  return;\n}" primitive_type (function_declarator "ldfile_set_output_arch(char *string,bfd_architecture defarch)" identifier (parameter_list "(char *string,bfd_architecture defarch)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "bfd_architecture defarch" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *fmt;\n  \n  iVar1 = bfd_scan_arch(string);\n  if (iVar1 == 0) {\n    if (defarch != bfd_arch_unknown) {\n      ldfile_output_architecture = defarch;\n      return;\n    }\n    fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    einfo(fmt,string);\n  }\n  else {\n    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);\n    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);\n    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (expression_statement "iVar1 = bfd_scan_arch(string);" (assignment_expression "iVar1 = bfd_scan_arch(string)" identifier = (call_expression "bfd_scan_arch(string)" identifier (argument_list "(string)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    if (defarch != bfd_arch_unknown) {\n      ldfile_output_architecture = defarch;\n      return;\n    }\n    fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    einfo(fmt,string);\n  }\n  else {\n    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);\n    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);\n    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (defarch != bfd_arch_unknown) {\n      ldfile_output_architecture = defarch;\n      return;\n    }\n    fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    einfo(fmt,string);\n  }" { (if_statement "if (defarch != bfd_arch_unknown) {\n      ldfile_output_architecture = defarch;\n      return;\n    }" if (parenthesized_expression "(defarch != bfd_arch_unknown)" ( (binary_expression "defarch != bfd_arch_unknown" identifier != identifier) )) (compound_statement "{\n      ldfile_output_architecture = defarch;\n      return;\n    }" { (expression_statement "ldfile_output_architecture = defarch;" (assignment_expression "ldfile_output_architecture = defarch" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" identifier (argument_list "(0,"%F%P: cannot represent machine `%s\'\n",5)" ( number_literal , (string_literal ""%F%P: cannot represent machine `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,string);" (call_expression "einfo(fmt,string)" identifier (argument_list "(fmt,string)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);\n    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);\n    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);\n  }" else (compound_statement "{\n    ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);\n    ldfile_output_machine = *(ulong *)(iVar1 + 0x10);\n    ldfile_output_machine_name = *(char **)(iVar1 + 0x18);\n  }" { (expression_statement "ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc);" (assignment_expression "ldfile_output_architecture = *(bfd_architecture *)(iVar1 + 0xc)" identifier = (pointer_expression "*(bfd_architecture *)(iVar1 + 0xc)" * (cast_expression "(bfd_architecture *)(iVar1 + 0xc)" ( (type_descriptor "bfd_architecture *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "ldfile_output_machine = *(ulong *)(iVar1 + 0x10);" (assignment_expression "ldfile_output_machine = *(ulong *)(iVar1 + 0x10)" identifier = (pointer_expression "*(ulong *)(iVar1 + 0x10)" * (cast_expression "(ulong *)(iVar1 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "ldfile_output_machine_name = *(char **)(iVar1 + 0x18);" (assignment_expression "ldfile_output_machine_name = *(char **)(iVar1 + 0x18)" identifier = (pointer_expression "*(char **)(iVar1 + 0x18)" * (cast_expression "(char **)(iVar1 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00035d20(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00035d20(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00035d20(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = bfd_scan_arch(param_1);" (assignment_expression "iVar1 = bfd_scan_arch(param_1)" identifier = (call_expression "bfd_scan_arch(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }" { (if_statement "if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      DAT_001c103c = param_2;\n      return;\n    }" { (expression_statement "DAT_001c103c = param_2;" (assignment_expression "DAT_001c103c = param_2" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" identifier (argument_list "(0,"%F%P: cannot represent machine `%s\'\n",5)" ( number_literal , (string_literal ""%F%P: cannot represent machine `%s\'\n"" " string_content escape_sequence escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00034d60(uVar2,param_1);" (call_expression "FUN_00034d60(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) }) (else_clause "else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" else (compound_statement "{\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" { (expression_statement "DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);" (assignment_expression "DAT_001c103c = *(undefined4 *)(iVar1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);" (assignment_expression "PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18)" identifier = (pointer_expression "*(undefined **)(iVar1 + 0x18)" * (cast_expression "(undefined **)(iVar1 + 0x18)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) ))))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00035d20(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00035d20(undefined4 param_1,int param_2)" (identifier "FUN_00035d20") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = bfd_scan_arch(param_1);\n  if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = bfd_scan_arch(param_1);" (assignment_expression "iVar1 = bfd_scan_arch(param_1)" (identifier "iVar1") (= "=") (call_expression "bfd_scan_arch(param_1)" (identifier "bfd_scan_arch") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }\n  else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }\n    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);\n    FUN_00034d60(uVar2,param_1);\n  }" ({ "{") (if_statement "if (param_2 != 0) {\n      DAT_001c103c = param_2;\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_001c103c = param_2;\n      return;\n    }" ({ "{") (expression_statement "DAT_001c103c = param_2;" (assignment_expression "DAT_001c103c = param_2" (identifier "DAT_001c103c") (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);" (assignment_expression "uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: cannot represent machine `%s\'\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: cannot represent machine `%s\'\n"" (" """) (string_content "%F%P: cannot represent machine `%s") (escape_sequence "\'") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034d60(uVar2,param_1);" (call_expression "FUN_00034d60(uVar2,param_1)" (identifier "FUN_00034d60") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" (else "else") (compound_statement "{\n    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);\n    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);\n    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);\n  }" ({ "{") (expression_statement "DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);" (assignment_expression "DAT_001c103c = *(undefined4 *)(iVar1 + 0xc)" (identifier "DAT_001c103c") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);" (assignment_expression "DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10)" (identifier "DAT_001c1040") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);" (assignment_expression "PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18)" (identifier "PTR_s__001bf428") (= "=") (pointer_expression "*(undefined **)(iVar1 + 0x18)" (* "*") (cast_expression "(undefined **)(iVar1 + 0x18)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")))) (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 *string,type_1 var_3)

{
  int var_2;
  char *fmt;
  
  var_2 = var_1(string);
  if (var_2 == 0) {
    if (var_3 != var_4) {
      ldfile_output_architecture = var_3;
      return;
    }
    fmt = (char *)var_5(0,"%F%P: cannot represent machine `%s\'\n",5);
    var_6(fmt,string);
  }
  else {
    ldfile_output_architecture = *(type_1 *)(var_2 + 0xc);
    ldfile_output_machine = *(type_2 *)(var_2 + 0x10);
    ldfile_output_machine_name = *(char **)(var_2 + 0x18);
  }
  return;
}


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

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

void MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = bfd_scan_arch(param_1);
  if (iVar1 == 0) {
    if (param_2 != 0) {
      DAT_001c103c = param_2;
      return;
    }
    uVar2 = dcgettext(0,"%F%P: cannot represent machine `%s\'\n",5);
    FUN_00034d60(uVar2,param_1);
  }
  else {
    DAT_001c103c = *(undefined4 *)(iVar1 + 0xc);
    DAT_001c1040 = *(undefined4 *)(iVar1 + 0x10);
    PTR_s__001bf428 = *(undefined **)(iVar1 + 0x18);
  }
  return;
}

