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

void __regparm3 print_value(bfd *abfd,bfd_vma val)

{
  int iVar1;
  char *format;
  
  iVar1 = print_width;
  if (print_width == 0x20) {
    printf(value_format_32bit,abfd);
    return;
  }
  if (print_width == 0x40) {
    printf(value_format_64bit,abfd);
    return;
  }
  format = (char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd);
                    /* WARNING: Subroutine does not return */
  fatal(format,iVar1);
}



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

void __regparm3 FUN_00014480(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = DAT_0001d3dc;
  if (DAT_0001d3dc == 0x20) {
    printf(s__08lx_0001d180,param_1);
    return;
  }
  if (DAT_0001d3dc == 0x40) {
    printf(s__016llx_0001d178,param_1,param_2);
    return;
  }
  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);
                    /* WARNING: Subroutine does not return */
  FUN_000156e0(uVar2,iVar1);
}


PUSH ESI
PUSH EBX
CALL 0x00012a60
ADD EBX,0x8b79
SUB ESP,0x4
MOV ESI,dword ptr [EBX + 0x3dc]
CMP ESI,0x20
JZ 0x000144c0
CMP ESI,0x40
JNZ 0x000144d9
SUB ESP,0x4
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0x178]
PUSH EAX
CALL 0x00012080
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0x180]
PUSH EAX
CALL 0x00012080
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
PUSH EAX
LEA EAX,[EBX + 0xffffbc58]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012160
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x000156e0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00014480(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    /* WARNING: Subroutine does not return */\n  FUN_000156e0(uVar2,iVar1);\n}\n\n" comment (function_definition "void __regparm3 FUN_00014480(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    /* WARNING: Subroutine does not return */\n  FUN_000156e0(uVar2,iVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014480(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    /* WARNING: Subroutine does not return */\n  FUN_000156e0(uVar2,iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = DAT_0001d3dc;" (assignment_expression "iVar1 = DAT_0001d3dc" identifier = identifier) ;) (if_statement "if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }" if (parenthesized_expression "(DAT_0001d3dc == 0x20)" ( (binary_expression "DAT_0001d3dc == 0x20" identifier == number_literal) )) (compound_statement "{\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }" { (expression_statement "printf(s__08lx_0001d180,param_1);" (call_expression "printf(s__08lx_0001d180,param_1)" identifier (argument_list "(s__08lx_0001d180,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(DAT_0001d3dc == 0x40)" ( (binary_expression "DAT_0001d3dc == 0x40" identifier == number_literal) )) (compound_statement "{\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }" { (expression_statement "printf(s__016llx_0001d178,param_1,param_2);" (call_expression "printf(s__016llx_0001d178,param_1,param_2)" identifier (argument_list "(s__016llx_0001d178,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);" (assignment_expression "uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1)" identifier = (call_expression "dcgettext(0,"Print width has not been initialized (%d)",5,param_1)" identifier (argument_list "(0,"Print width has not been initialized (%d)",5,param_1)" ( number_literal , (string_literal ""Print width has not been initialized (%d)"" " string_content ") , number_literal , identifier )))) ;) comment (expression_statement "FUN_000156e0(uVar2,iVar1);" (call_expression "FUN_000156e0(uVar2,iVar1)" identifier (argument_list "(uVar2,iVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 print_value(bfd *abfd,bfd_vma val)\n\n{\n  int iVar1;\n  char *format;\n  \n  iVar1 = print_width;\n  if (print_width == 0x20) {\n    printf(value_format_32bit,abfd);\n    return;\n  }\n  if (print_width == 0x40) {\n    printf(value_format_64bit,abfd);\n    return;\n  }\n  format = (char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd);\n                    /* WARNING: Subroutine does not return */\n  fatal(format,iVar1);\n}\n\n" comment (function_definition "void __regparm3 print_value(bfd *abfd,bfd_vma val)\n\n{\n  int iVar1;\n  char *format;\n  \n  iVar1 = print_width;\n  if (print_width == 0x20) {\n    printf(value_format_32bit,abfd);\n    return;\n  }\n  if (print_width == 0x40) {\n    printf(value_format_64bit,abfd);\n    return;\n  }\n  format = (char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd);\n                    /* WARNING: Subroutine does not return */\n  fatal(format,iVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "print_value(bfd *abfd,bfd_vma val)" identifier (parameter_list "(bfd *abfd,bfd_vma val)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char *format;\n  \n  iVar1 = print_width;\n  if (print_width == 0x20) {\n    printf(value_format_32bit,abfd);\n    return;\n  }\n  if (print_width == 0x40) {\n    printf(value_format_64bit,abfd);\n    return;\n  }\n  format = (char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd);\n                    /* WARNING: Subroutine does not return */\n  fatal(format,iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "iVar1 = print_width;" (assignment_expression "iVar1 = print_width" identifier = identifier) ;) (if_statement "if (print_width == 0x20) {\n    printf(value_format_32bit,abfd);\n    return;\n  }" if (parenthesized_expression "(print_width == 0x20)" ( (binary_expression "print_width == 0x20" identifier == number_literal) )) (compound_statement "{\n    printf(value_format_32bit,abfd);\n    return;\n  }" { (expression_statement "printf(value_format_32bit,abfd);" (call_expression "printf(value_format_32bit,abfd)" identifier (argument_list "(value_format_32bit,abfd)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (print_width == 0x40) {\n    printf(value_format_64bit,abfd);\n    return;\n  }" if (parenthesized_expression "(print_width == 0x40)" ( (binary_expression "print_width == 0x40" identifier == number_literal) )) (compound_statement "{\n    printf(value_format_64bit,abfd);\n    return;\n  }" { (expression_statement "printf(value_format_64bit,abfd);" (call_expression "printf(value_format_64bit,abfd)" identifier (argument_list "(value_format_64bit,abfd)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "format = (char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd);" (assignment_expression "format = (char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd)" identifier = (cast_expression "(char *)dcgettext(0,"Print width has not been initialized (%d)",5,abfd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Print width has not been initialized (%d)",5,abfd)" identifier (argument_list "(0,"Print width has not been initialized (%d)",5,abfd)" ( number_literal , (string_literal ""Print width has not been initialized (%d)"" " string_content ") , number_literal , identifier ))))) ;) comment (expression_statement "fatal(format,iVar1);" (call_expression "fatal(format,iVar1)" identifier (argument_list "(format,iVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "void __regparm3 FUN_00014480(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    \n  FUN_000156e0(uVar2,iVar1);\n}\n\n" (function_definition "void __regparm3 FUN_00014480(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    \n  FUN_000156e0(uVar2,iVar1);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00014480(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    \n  FUN_000156e0(uVar2,iVar1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = DAT_0001d3dc;" (assignment_expression "iVar1 = DAT_0001d3dc" identifier = identifier) ;) (if_statement "if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }" if (parenthesized_expression "(DAT_0001d3dc == 0x20)" ( (binary_expression "DAT_0001d3dc == 0x20" identifier == number_literal) )) (compound_statement "{\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }" { (expression_statement "printf(s__08lx_0001d180,param_1);" (call_expression "printf(s__08lx_0001d180,param_1)" identifier (argument_list "(s__08lx_0001d180,param_1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }" if (parenthesized_expression "(DAT_0001d3dc == 0x40)" ( (binary_expression "DAT_0001d3dc == 0x40" identifier == number_literal) )) (compound_statement "{\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }" { (expression_statement "printf(s__016llx_0001d178,param_1,param_2);" (call_expression "printf(s__016llx_0001d178,param_1,param_2)" identifier (argument_list "(s__016llx_0001d178,param_1,param_2)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);" (assignment_expression "uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1)" identifier = (call_expression "dcgettext(0,"Print width has not been initialized (%d)",5,param_1)" identifier (argument_list "(0,"Print width has not been initialized (%d)",5,param_1)" ( number_literal , (string_literal ""Print width has not been initialized (%d)"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "FUN_000156e0(uVar2,iVar1);" (call_expression "FUN_000156e0(uVar2,iVar1)" identifier (argument_list "(uVar2,iVar1)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "void __regparm3 FUN_00014480(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    \n  FUN_000156e0(uVar2,iVar1);\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00014480(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00014480") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = DAT_0001d3dc;\n  if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }\n  if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }\n  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);\n                    \n  FUN_000156e0(uVar2,iVar1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = DAT_0001d3dc;" (assignment_expression "iVar1 = DAT_0001d3dc" (identifier "iVar1") (= "=") (identifier "DAT_0001d3dc")) (; ";")) (if_statement "if (DAT_0001d3dc == 0x20) {\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_0001d3dc == 0x20)" (( "(") (binary_expression "DAT_0001d3dc == 0x20" (identifier "DAT_0001d3dc") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n    printf(s__08lx_0001d180,param_1);\n    return;\n  }" ({ "{") (expression_statement "printf(s__08lx_0001d180,param_1);" (call_expression "printf(s__08lx_0001d180,param_1)" (identifier "printf") (argument_list "(s__08lx_0001d180,param_1)" (( "(") (identifier "s__08lx_0001d180") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (DAT_0001d3dc == 0x40) {\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_0001d3dc == 0x40)" (( "(") (binary_expression "DAT_0001d3dc == 0x40" (identifier "DAT_0001d3dc") (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n    printf(s__016llx_0001d178,param_1,param_2);\n    return;\n  }" ({ "{") (expression_statement "printf(s__016llx_0001d178,param_1,param_2);" (call_expression "printf(s__016llx_0001d178,param_1,param_2)" (identifier "printf") (argument_list "(s__016llx_0001d178,param_1,param_2)" (( "(") (identifier "s__016llx_0001d178") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);" (assignment_expression "uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Print width has not been initialized (%d)",5,param_1)" (identifier "dcgettext") (argument_list "(0,"Print width has not been initialized (%d)",5,param_1)" (( "(") (number_literal "0") (, ",") (string_literal ""Print width has not been initialized (%d)"" (" """) (string_content "Print width has not been initialized (%d)") (" """)) (, ",") (number_literal "5") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "FUN_000156e0(uVar2,iVar1);" (call_expression "FUN_000156e0(uVar2,iVar1)" (identifier "FUN_000156e0") (argument_list "(uVar2,iVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar1") () ")"))) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *abfd,type_2 val)

{
  int iVar1;
  char *format;
  
  iVar1 = var_1;
  if (var_1 == 0x20) {
    var_2(value_format_32bit,abfd);
    return;
  }
  if (var_1 == 0x40) {
    var_2(value_format_64bit,abfd);
    return;
  }
  format = (char *)var_3(0,"Print width has not been initialized (%d)",5,abfd);
                    /* WARNING: Subroutine does not return */
  var_4(format,iVar1);
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))

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

void __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = DAT_0001d3dc;
  if (DAT_0001d3dc == 0x20) {
    printf(s__08lx_0001d180,param_1);
    return;
  }
  if (DAT_0001d3dc == 0x40) {
    printf(s__016llx_0001d178,param_1,param_2);
    return;
  }
  uVar2 = dcgettext(0,"Print width has not been initialized (%d)",5,param_1);
                    /* WARNING: Subroutine does not return */
  FUN_000156e0(uVar2,iVar1);
}

