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

uint __regparm3 print_vma(bfd_vma vma,print_mode mode)

{
  int iVar1;
  uint uVar2;
  undefined4 in_ECX;
  int in_EDX;
  int iVar3;
  
  switch(in_ECX) {
  default:
    iVar3 = 0;
    break;
  case 1:
    uVar2 = printf("%lld",mode);
    return uVar2;
  case 2:
    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {
      uVar2 = printf("%5lld",mode);
      return uVar2;
    }
  case 4:
    iVar3 = printf("0x");
    break;
  case 3:
    uVar2 = printf("%llu",mode);
    return uVar2;
  case 5:
    iVar3 = printf("0x");
    goto LAB_0001e992;
  case 6:
    iVar3 = 0;
LAB_0001e992:
    if (is_32bit_elf != 0) {
      iVar1 = printf("%8.8llx",mode);
      return iVar1 + iVar3;
    }
    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);
    return iVar3 + 0x10;
  }
  iVar1 = printf("%llx",mode);
  return iVar1 + iVar3;
}



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

int __regparm3 FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  switch(param_3) {
  default:
    iVar2 = 0;
    break;
  case 1:
    iVar2 = printf("%lld",param_1,param_2);
    return iVar2;
  case 2:
    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {
      iVar2 = printf("%5lld",param_1,param_2);
      return iVar2;
    }
  case 4:
    iVar2 = printf("0x");
    break;
  case 3:
    iVar2 = printf("%llu",param_1,param_2);
    return iVar2;
  case 5:
    iVar2 = printf("0x");
    goto code_r0x0001e992;
  case 6:
    iVar2 = 0;
code_r0x0001e992:
    if (DAT_000b6324 != 0) {
      iVar1 = printf("%8.8llx",param_1,param_2);
      return iVar1 + iVar2;
    }
    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);
    return iVar2 + 0x10;
  }
  iVar1 = printf("%llx",param_1,param_2);
  return iVar1 + iVar2;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00013f70
ADD EBX,0x956e3
SUB ESP,0xc
CMP ECX,0x6
JA 0x0001ea20
MOV EAX,dword ptr [EBX + ECX*0x4 + 0xfffd8120]
ADD EAX,EBX
JMP EAX
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc7adc]
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
ADD EAX,EBP
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EBP,EBP
JMP 0x0001e968
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}\n\n" comment (function_definition "int __regparm3 FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (switch_statement "switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }" switch (parenthesized_expression "(param_3)" ( identifier )) (compound_statement "{\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }" { (case_statement "default:\n    iVar2 = 0;\n    break;" default : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;" case number_literal : (expression_statement "iVar2 = printf("%lld",param_1,param_2);" (assignment_expression "iVar2 = printf("%lld",param_1,param_2)" identifier = (call_expression "printf("%lld",param_1,param_2)" identifier (argument_list "("%lld",param_1,param_2)" ( (string_literal ""%lld"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;)) (case_statement "case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" case number_literal : (if_statement "if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" if (parenthesized_expression "(param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2)" ( (binary_expression "param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2" (binary_expression "param_2 == 0" identifier == number_literal) && (binary_expression "(uint)(&UNK_0001869f < param_1) <= (uint)-param_2" (call_expression "(uint)(&UNK_0001869f < param_1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(&UNK_0001869f < param_1)" ( (binary_expression "&UNK_0001869f < param_1" (pointer_expression "&UNK_0001869f" & identifier) < identifier) ))) <= (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (compound_statement "{\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" { (expression_statement "iVar2 = printf("%5lld",param_1,param_2);" (assignment_expression "iVar2 = printf("%5lld",param_1,param_2)" identifier = (call_expression "printf("%5lld",param_1,param_2)" identifier (argument_list "("%5lld",param_1,param_2)" ( (string_literal ""%5lld"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) }))) (case_statement "case 4:\n    iVar2 = printf("0x");\n    break;" case number_literal : (expression_statement "iVar2 = printf("0x");" (assignment_expression "iVar2 = printf("0x")" identifier = (call_expression "printf("0x")" identifier (argument_list "("0x")" ( (string_literal ""0x"" " string_content ") )))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;" case number_literal : (expression_statement "iVar2 = printf("%llu",param_1,param_2);" (assignment_expression "iVar2 = printf("%llu",param_1,param_2)" identifier = (call_expression "printf("%llu",param_1,param_2)" identifier (argument_list "("%llu",param_1,param_2)" ( (string_literal ""%llu"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;)) (case_statement "case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;" case number_literal : (expression_statement "iVar2 = printf("0x");" (assignment_expression "iVar2 = printf("0x")" identifier = (call_expression "printf("0x")" identifier (argument_list "("0x")" ( (string_literal ""0x"" " string_content ") )))) ;) (goto_statement "goto code_r0x0001e992;" goto statement_identifier ;)) (case_statement "case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;" case number_literal : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "code_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" statement_identifier : (if_statement "if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" if (parenthesized_expression "(DAT_000b6324 != 0)" ( (binary_expression "DAT_000b6324 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" { (expression_statement "iVar1 = printf("%8.8llx",param_1,param_2);" (assignment_expression "iVar1 = printf("%8.8llx",param_1,param_2)" identifier = (call_expression "printf("%8.8llx",param_1,param_2)" identifier (argument_list "("%8.8llx",param_1,param_2)" ( (string_literal ""%8.8llx"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar1 + iVar2;" return (binary_expression "iVar1 + iVar2" identifier + identifier) ;) }))) (expression_statement "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);" (call_expression "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2)" identifier (argument_list "(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2)" ( (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" * (cast_expression "(FILE **)PTR_stdout_000b3fd8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%016llx"" " string_content ") , identifier , identifier ))) ;) (return_statement "return iVar2 + 0x10;" return (binary_expression "iVar2 + 0x10" identifier + number_literal) ;)) })) (expression_statement "iVar1 = printf("%llx",param_1,param_2);" (assignment_expression "iVar1 = printf("%llx",param_1,param_2)" identifier = (call_expression "printf("%llx",param_1,param_2)" identifier (argument_list "("%llx",param_1,param_2)" ( (string_literal ""%llx"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar1 + iVar2;" return (binary_expression "iVar1 + iVar2" identifier + identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 print_vma(bfd_vma vma,print_mode mode)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 in_ECX;\n  int in_EDX;\n  int iVar3;\n  \n  switch(in_ECX) {\n  default:\n    iVar3 = 0;\n    break;\n  case 1:\n    uVar2 = printf("%lld",mode);\n    return uVar2;\n  case 2:\n    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }\n  case 4:\n    iVar3 = printf("0x");\n    break;\n  case 3:\n    uVar2 = printf("%llu",mode);\n    return uVar2;\n  case 5:\n    iVar3 = printf("0x");\n    goto LAB_0001e992;\n  case 6:\n    iVar3 = 0;\nLAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);\n    return iVar3 + 0x10;\n  }\n  iVar1 = printf("%llx",mode);\n  return iVar1 + iVar3;\n}\n\n" comment (function_definition "uint __regparm3 print_vma(bfd_vma vma,print_mode mode)\n\n{\n  int iVar1;\n  uint uVar2;\n  undefined4 in_ECX;\n  int in_EDX;\n  int iVar3;\n  \n  switch(in_ECX) {\n  default:\n    iVar3 = 0;\n    break;\n  case 1:\n    uVar2 = printf("%lld",mode);\n    return uVar2;\n  case 2:\n    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }\n  case 4:\n    iVar3 = printf("0x");\n    break;\n  case 3:\n    uVar2 = printf("%llu",mode);\n    return uVar2;\n  case 5:\n    iVar3 = printf("0x");\n    goto LAB_0001e992;\n  case 6:\n    iVar3 = 0;\nLAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);\n    return iVar3 + 0x10;\n  }\n  iVar1 = printf("%llx",mode);\n  return iVar1 + iVar3;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "print_vma(bfd_vma vma,print_mode mode)" identifier (parameter_list "(bfd_vma vma,print_mode mode)" ( (parameter_declaration "bfd_vma vma" type_identifier identifier) , (parameter_declaration "print_mode mode" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  undefined4 in_ECX;\n  int in_EDX;\n  int iVar3;\n  \n  switch(in_ECX) {\n  default:\n    iVar3 = 0;\n    break;\n  case 1:\n    uVar2 = printf("%lld",mode);\n    return uVar2;\n  case 2:\n    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }\n  case 4:\n    iVar3 = printf("0x");\n    break;\n  case 3:\n    uVar2 = printf("%llu",mode);\n    return uVar2;\n  case 5:\n    iVar3 = printf("0x");\n    goto LAB_0001e992;\n  case 6:\n    iVar3 = 0;\nLAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);\n    return iVar3 + 0x10;\n  }\n  iVar1 = printf("%llx",mode);\n  return iVar1 + iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "int in_EDX;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (switch_statement "switch(in_ECX) {\n  default:\n    iVar3 = 0;\n    break;\n  case 1:\n    uVar2 = printf("%lld",mode);\n    return uVar2;\n  case 2:\n    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }\n  case 4:\n    iVar3 = printf("0x");\n    break;\n  case 3:\n    uVar2 = printf("%llu",mode);\n    return uVar2;\n  case 5:\n    iVar3 = printf("0x");\n    goto LAB_0001e992;\n  case 6:\n    iVar3 = 0;\nLAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);\n    return iVar3 + 0x10;\n  }" switch (parenthesized_expression "(in_ECX)" ( identifier )) (compound_statement "{\n  default:\n    iVar3 = 0;\n    break;\n  case 1:\n    uVar2 = printf("%lld",mode);\n    return uVar2;\n  case 2:\n    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }\n  case 4:\n    iVar3 = printf("0x");\n    break;\n  case 3:\n    uVar2 = printf("%llu",mode);\n    return uVar2;\n  case 5:\n    iVar3 = printf("0x");\n    goto LAB_0001e992;\n  case 6:\n    iVar3 = 0;\nLAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);\n    return iVar3 + 0x10;\n  }" { (case_statement "default:\n    iVar3 = 0;\n    break;" default : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n    uVar2 = printf("%lld",mode);\n    return uVar2;" case number_literal : (expression_statement "uVar2 = printf("%lld",mode);" (assignment_expression "uVar2 = printf("%lld",mode)" identifier = (call_expression "printf("%lld",mode)" identifier (argument_list "("%lld",mode)" ( (string_literal ""%lld"" " string_content ") , identifier )))) ;) (return_statement "return uVar2;" return identifier ;)) (case_statement "case 2:\n    if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }" case number_literal : (if_statement "if (in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX) {\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }" if (parenthesized_expression "(in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX)" ( (binary_expression "in_EDX == 0 && (uint)(&DAT_0001869f < mode) <= (uint)-in_EDX" (binary_expression "in_EDX == 0" identifier == number_literal) && (binary_expression "(uint)(&DAT_0001869f < mode) <= (uint)-in_EDX" (call_expression "(uint)(&DAT_0001869f < mode)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(&DAT_0001869f < mode)" ( (binary_expression "&DAT_0001869f < mode" (pointer_expression "&DAT_0001869f" & identifier) < identifier) ))) <= (binary_expression "(uint)-in_EDX" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (compound_statement "{\n      uVar2 = printf("%5lld",mode);\n      return uVar2;\n    }" { (expression_statement "uVar2 = printf("%5lld",mode);" (assignment_expression "uVar2 = printf("%5lld",mode)" identifier = (call_expression "printf("%5lld",mode)" identifier (argument_list "("%5lld",mode)" ( (string_literal ""%5lld"" " string_content ") , identifier )))) ;) (return_statement "return uVar2;" return identifier ;) }))) (case_statement "case 4:\n    iVar3 = printf("0x");\n    break;" case number_literal : (expression_statement "iVar3 = printf("0x");" (assignment_expression "iVar3 = printf("0x")" identifier = (call_expression "printf("0x")" identifier (argument_list "("0x")" ( (string_literal ""0x"" " string_content ") )))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n    uVar2 = printf("%llu",mode);\n    return uVar2;" case number_literal : (expression_statement "uVar2 = printf("%llu",mode);" (assignment_expression "uVar2 = printf("%llu",mode)" identifier = (call_expression "printf("%llu",mode)" identifier (argument_list "("%llu",mode)" ( (string_literal ""%llu"" " string_content ") , identifier )))) ;) (return_statement "return uVar2;" return identifier ;)) (case_statement "case 5:\n    iVar3 = printf("0x");\n    goto LAB_0001e992;" case number_literal : (expression_statement "iVar3 = printf("0x");" (assignment_expression "iVar3 = printf("0x")" identifier = (call_expression "printf("0x")" identifier (argument_list "("0x")" ( (string_literal ""0x"" " string_content ") )))) ;) (goto_statement "goto LAB_0001e992;" goto statement_identifier ;)) (case_statement "case 6:\n    iVar3 = 0;\nLAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);\n    return iVar3 + 0x10;" case number_literal : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001e992:\n    if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }" statement_identifier : (if_statement "if (is_32bit_elf != 0) {\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }" if (parenthesized_expression "(is_32bit_elf != 0)" ( (binary_expression "is_32bit_elf != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = printf("%8.8llx",mode);\n      return iVar1 + iVar3;\n    }" { (expression_statement "iVar1 = printf("%8.8llx",mode);" (assignment_expression "iVar1 = printf("%8.8llx",mode)" identifier = (call_expression "printf("%8.8llx",mode)" identifier (argument_list "("%8.8llx",mode)" ( (string_literal ""%8.8llx"" " string_content ") , identifier )))) ;) (return_statement "return iVar1 + iVar3;" return (binary_expression "iVar1 + iVar3" identifier + identifier) ;) }))) (expression_statement "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode);" (call_expression "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode)" identifier (argument_list "(*(FILE **)PTR_stdout_000b3fd8,"%016llx",mode)" ( (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" * (cast_expression "(FILE **)PTR_stdout_000b3fd8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%016llx"" " string_content ") , identifier ))) ;) (return_statement "return iVar3 + 0x10;" return (binary_expression "iVar3 + 0x10" identifier + number_literal) ;)) })) (expression_statement "iVar1 = printf("%llx",mode);" (assignment_expression "iVar1 = printf("%llx",mode)" identifier = (call_expression "printf("%llx",mode)" identifier (argument_list "("%llx",mode)" ( (string_literal ""%llx"" " string_content ") , identifier )))) ;) (return_statement "return iVar1 + iVar3;" return (binary_expression "iVar1 + iVar3" identifier + identifier) ;) })))
(translation_unit "int __regparm3 FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (switch_statement "switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }" switch (parenthesized_expression "(param_3)" ( identifier )) (compound_statement "{\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }" { (case_statement "default:\n    iVar2 = 0;\n    break;" default : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (break_statement "break;" break ;)) (case_statement "case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;" case number_literal : (expression_statement "iVar2 = printf("%lld",param_1,param_2);" (assignment_expression "iVar2 = printf("%lld",param_1,param_2)" identifier = (call_expression "printf("%lld",param_1,param_2)" identifier (argument_list "("%lld",param_1,param_2)" ( (string_literal ""%lld"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;)) (case_statement "case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" case number_literal : (if_statement "if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" if (parenthesized_expression "(param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2)" ( (binary_expression "param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2" (binary_expression "param_2 == 0" identifier == number_literal) && (binary_expression "(uint)(&UNK_0001869f < param_1) <= (uint)-param_2" (call_expression "(uint)(&UNK_0001869f < param_1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(&UNK_0001869f < param_1)" ( (binary_expression "&UNK_0001869f < param_1" (pointer_expression "&UNK_0001869f" & identifier) < identifier) ))) <= (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" ( identifier )) - identifier))) )) (compound_statement "{\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" { (expression_statement "iVar2 = printf("%5lld",param_1,param_2);" (assignment_expression "iVar2 = printf("%5lld",param_1,param_2)" identifier = (call_expression "printf("%5lld",param_1,param_2)" identifier (argument_list "("%5lld",param_1,param_2)" ( (string_literal ""%5lld"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;) }))) (case_statement "case 4:\n    iVar2 = printf("0x");\n    break;" case number_literal : (expression_statement "iVar2 = printf("0x");" (assignment_expression "iVar2 = printf("0x")" identifier = (call_expression "printf("0x")" identifier (argument_list "("0x")" ( (string_literal ""0x"" " string_content ") )))) ;) (break_statement "break;" break ;)) (case_statement "case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;" case number_literal : (expression_statement "iVar2 = printf("%llu",param_1,param_2);" (assignment_expression "iVar2 = printf("%llu",param_1,param_2)" identifier = (call_expression "printf("%llu",param_1,param_2)" identifier (argument_list "("%llu",param_1,param_2)" ( (string_literal ""%llu"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar2;" return identifier ;)) (case_statement "case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;" case number_literal : (expression_statement "iVar2 = printf("0x");" (assignment_expression "iVar2 = printf("0x")" identifier = (call_expression "printf("0x")" identifier (argument_list "("0x")" ( (string_literal ""0x"" " string_content ") )))) ;) (goto_statement "goto code_r0x0001e992;" goto statement_identifier ;)) (case_statement "case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;" case number_literal : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "code_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" statement_identifier : (if_statement "if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" if (parenthesized_expression "(DAT_000b6324 != 0)" ( (binary_expression "DAT_000b6324 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" { (expression_statement "iVar1 = printf("%8.8llx",param_1,param_2);" (assignment_expression "iVar1 = printf("%8.8llx",param_1,param_2)" identifier = (call_expression "printf("%8.8llx",param_1,param_2)" identifier (argument_list "("%8.8llx",param_1,param_2)" ( (string_literal ""%8.8llx"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar1 + iVar2;" return (binary_expression "iVar1 + iVar2" identifier + identifier) ;) }))) (expression_statement "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);" (call_expression "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2)" identifier (argument_list "(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2)" ( (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" * (cast_expression "(FILE **)PTR_stdout_000b3fd8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%016llx"" " string_content ") , identifier , identifier ))) ;) (return_statement "return iVar2 + 0x10;" return (binary_expression "iVar2 + 0x10" identifier + number_literal) ;)) })) (expression_statement "iVar1 = printf("%llx",param_1,param_2);" (assignment_expression "iVar1 = printf("%llx",param_1,param_2)" identifier = (call_expression "printf("%llx",param_1,param_2)" identifier (argument_list "("%llx",param_1,param_2)" ( (string_literal ""%llx"" " string_content ") , identifier , identifier )))) ;) (return_statement "return iVar1 + iVar2;" return (binary_expression "iVar1 + iVar2" identifier + identifier) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement default : (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (return_statement return IDENT ;)) (case_statement case LIT : (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression & IDENT) < IDENT) ))) <= (binary_expression (parenthesized_expression ( IDENT )) - IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (return_statement return IDENT ;) }))) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (return_statement return IDENT ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT + IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content ") , IDENT , IDENT ))) ;) (return_statement return (binary_expression IDENT + LIT) ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT )))) ;) (return_statement return (binary_expression IDENT + IDENT) ;) })))
(function_definition "int __regparm3 FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001e910(undefined *param_1,int param_2,undefined4 param_3)" (identifier "FUN_0001e910") (parameter_list "(undefined *param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }\n  iVar1 = printf("%llx",param_1,param_2);\n  return iVar1 + iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (switch_statement "switch(param_3) {\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }" (switch "switch") (parenthesized_expression "(param_3)" (( "(") (identifier "param_3") () ")")) (compound_statement "{\n  default:\n    iVar2 = 0;\n    break;\n  case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;\n  case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }\n  case 4:\n    iVar2 = printf("0x");\n    break;\n  case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;\n  case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;\n  case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;\n  }" ({ "{") (case_statement "default:\n    iVar2 = 0;\n    break;" (default "default") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 1:\n    iVar2 = printf("%lld",param_1,param_2);\n    return iVar2;" (case "case") (number_literal "1") (: ":") (expression_statement "iVar2 = printf("%lld",param_1,param_2);" (assignment_expression "iVar2 = printf("%lld",param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "printf("%lld",param_1,param_2)" (identifier "printf") (argument_list "("%lld",param_1,param_2)" (( "(") (string_literal ""%lld"" (" """) (string_content "%lld") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";"))) (case_statement "case 2:\n    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" (case "case") (number_literal "2") (: ":") (if_statement "if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2)" (( "(") (binary_expression "param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2" (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) (&& "&&") (binary_expression "(uint)(&UNK_0001869f < param_1) <= (uint)-param_2" (call_expression "(uint)(&UNK_0001869f < param_1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(&UNK_0001869f < param_1)" (( "(") (binary_expression "&UNK_0001869f < param_1" (pointer_expression "&UNK_0001869f" (& "&") (identifier "UNK_0001869f")) (< "<") (identifier "param_1")) () ")"))) (<= "<=") (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "param_2")))) () ")")) (compound_statement "{\n      iVar2 = printf("%5lld",param_1,param_2);\n      return iVar2;\n    }" ({ "{") (expression_statement "iVar2 = printf("%5lld",param_1,param_2);" (assignment_expression "iVar2 = printf("%5lld",param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "printf("%5lld",param_1,param_2)" (identifier "printf") (argument_list "("%5lld",param_1,param_2)" (( "(") (string_literal ""%5lld"" (" """) (string_content "%5lld") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (case_statement "case 4:\n    iVar2 = printf("0x");\n    break;" (case "case") (number_literal "4") (: ":") (expression_statement "iVar2 = printf("0x");" (assignment_expression "iVar2 = printf("0x")" (identifier "iVar2") (= "=") (call_expression "printf("0x")" (identifier "printf") (argument_list "("0x")" (( "(") (string_literal ""0x"" (" """) (string_content "0x") (" """)) () ")")))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 3:\n    iVar2 = printf("%llu",param_1,param_2);\n    return iVar2;" (case "case") (number_literal "3") (: ":") (expression_statement "iVar2 = printf("%llu",param_1,param_2);" (assignment_expression "iVar2 = printf("%llu",param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "printf("%llu",param_1,param_2)" (identifier "printf") (argument_list "("%llu",param_1,param_2)" (( "(") (string_literal ""%llu"" (" """) (string_content "%llu") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";"))) (case_statement "case 5:\n    iVar2 = printf("0x");\n    goto code_r0x0001e992;" (case "case") (number_literal "5") (: ":") (expression_statement "iVar2 = printf("0x");" (assignment_expression "iVar2 = printf("0x")" (identifier "iVar2") (= "=") (call_expression "printf("0x")" (identifier "printf") (argument_list "("0x")" (( "(") (string_literal ""0x"" (" """) (string_content "0x") (" """)) () ")")))) (; ";")) (goto_statement "goto code_r0x0001e992;" (goto "goto") (statement_identifier "code_r0x0001e992") (; ";"))) (case_statement "case 6:\n    iVar2 = 0;\ncode_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }\n    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);\n    return iVar2 + 0x10;" (case "case") (number_literal "6") (: ":") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "code_r0x0001e992:\n    if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" (statement_identifier "code_r0x0001e992") (: ":") (if_statement "if (DAT_000b6324 != 0) {\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" (if "if") (parenthesized_expression "(DAT_000b6324 != 0)" (( "(") (binary_expression "DAT_000b6324 != 0" (identifier "DAT_000b6324") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = printf("%8.8llx",param_1,param_2);\n      return iVar1 + iVar2;\n    }" ({ "{") (expression_statement "iVar1 = printf("%8.8llx",param_1,param_2);" (assignment_expression "iVar1 = printf("%8.8llx",param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "printf("%8.8llx",param_1,param_2)" (identifier "printf") (argument_list "("%8.8llx",param_1,param_2)" (( "(") (string_literal ""%8.8llx"" (" """) (string_content "%8.8llx") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar1 + iVar2;" (return "return") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) (; ";")) (} "}")))) (expression_statement "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);" (call_expression "fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2)" (( "(") (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" (* "*") (cast_expression "(FILE **)PTR_stdout_000b3fd8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdout_000b3fd8"))) (, ",") (string_literal ""%016llx"" (" """) (string_content "%016llx") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return iVar2 + 0x10;" (return "return") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) (; ";"))) (} "}"))) (expression_statement "iVar1 = printf("%llx",param_1,param_2);" (assignment_expression "iVar1 = printf("%llx",param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "printf("%llx",param_1,param_2)" (identifier "printf") (argument_list "("%llx",param_1,param_2)" (( "(") (string_literal ""%llx"" (" """) (string_content "%llx") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return iVar1 + iVar2;" (return "return") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 vma,type_3 var_3)

{
  int var_5;
  type_1 uVar2;
  type_4 in_ECX;
  int var_2;
  int var_6;
  
  switch(in_ECX) {
  default:
    var_6 = 0;
    break;
  case 1:
    uVar2 = var_1("%lld",var_3);
    return uVar2;
  case 2:
    if (var_2 == 0 && (type_1)(&DAT_0001869f < var_3) <= (type_1)-var_2) {
      uVar2 = var_1("%5lld",var_3);
      return uVar2;
    }
  case 4:
    var_6 = var_1("0x");
    break;
  case 3:
    uVar2 = var_1("%llu",var_3);
    return uVar2;
  case 5:
    var_6 = var_1("0x");
    goto LAB_0001e992;
  case 6:
    var_6 = 0;
LAB_0001e992:
    if (var_4 != 0) {
      var_5 = var_1("%8.8llx",var_3);
      return var_5 + var_6;
    }
    var_7(*(type_5 **)PTR_stdout_000b3fd8,"%016llx",var_3);
    return var_6 + 0x10;
  }
  var_5 = var_1("%llx",var_3);
  return var_5 + var_6;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (return_statement (identifier))) (case_statement value: (number_literal) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (return_statement (identifier))))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (break_statement)) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (return_statement (identifier))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (goto_statement label: (statement_identifier))) (case_statement value: (number_literal) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_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 (string_literal (string_content)) (identifier) (identifier))))) (return_statement (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) (string_literal (string_content)) (identifier) (identifier)))) (return_statement (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (identifier) (identifier))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

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

int __regparm3 MASKED(undefined *param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  
  switch(param_3) {
  default:
    iVar2 = 0;
    break;
  case 1:
    iVar2 = printf("%lld",param_1,param_2);
    return iVar2;
  case 2:
    if (param_2 == 0 && (uint)(&UNK_0001869f < param_1) <= (uint)-param_2) {
      iVar2 = printf("%5lld",param_1,param_2);
      return iVar2;
    }
  case 4:
    iVar2 = printf("0x");
    break;
  case 3:
    iVar2 = printf("%llu",param_1,param_2);
    return iVar2;
  case 5:
    iVar2 = printf("0x");
    goto code_r0x0001e992;
  case 6:
    iVar2 = 0;
code_r0x0001e992:
    if (DAT_000b6324 != 0) {
      iVar1 = printf("%8.8llx",param_1,param_2);
      return iVar1 + iVar2;
    }
    fprintf(*(FILE **)PTR_stdout_000b3fd8,"%016llx",param_1,param_2);
    return iVar2 + 0x10;
  }
  iVar1 = printf("%llx",param_1,param_2);
  return iVar1 + iVar2;
}

