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

char * __regparm2
arm_print_vma_and_name(Filedata *filedata,arm_unw_aux_info *aux,bfd_vma fn,absaddr addr)

{
  absaddr addr_00;
  undefined *puVar1;
  bfd_vma vma;
  char *procname;
  bfd_vma sym_offset;
  undefined4 uStack_14;
  
  uStack_14 = 0x35a0b;
  vma = addr.offset;
  if (addr.section == 0) {
    vma = fn;
  }
  addr_00._2_2_ = 0;
  addr_00.section = addr.section;
  addr_00.offset._0_4_ = (int)vma;
  addr_00.offset._4_4_ = (int)(vma >> 0x20);
  find_symbol_for_address
            ((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,
             aux->strtab_size,addr_00,&procname,&sym_offset);
  print_vma(vma,(print_mode)fn);
  puVar1 = PTR_stdout_000b3fd8;
  if (procname != (char *)0x0) {
    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);
    fputs(procname,*(FILE **)puVar1);
    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {
      printf("+0x%lx",(int)sym_offset);
    }
    fputc(0x3e,*(FILE **)puVar1);
  }
  return procname;
}



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

char * __regparm2
FUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,
            undefined4 param_6,undefined4 param_7)

{
  undefined *puVar1;
  char *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x35a0b;
  if (param_5 == 0) {
    param_6 = param_3;
    param_7 = param_4;
  }
  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,
               param_7,&local_28,&local_24);
  FUN_0001e910(param_6,param_7,param_3,param_4);
  puVar1 = PTR_stdout_000b3fd8;
  if (local_28 != (char *)0x0) {
    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);
    fputs(local_28,*(FILE **)puVar1);
    if (local_24 != 0 || local_20 != 0) {
      printf("+0x%lx",local_24);
    }
    fputc(0x3e,*(FILE **)puVar1);
  }
  return local_28;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00013f70
ADD EBX,0x7e5f5
SUB ESP,0x2c
MOV EDX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x4c]
MOV EBP,dword ptr [ESP + 0x50]
CMP word ptr [ESP + 0x48],0x0
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [ESP + 0xc],ECX
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x4],EBP
JNZ 0x00035a42
MOV dword ptr [ESP],EDX
MOV dword ptr [ESP + 0x4],ECX
SUB ESP,0x4
MOV ECX,dword ptr [ESI + 0x10]
MOV EDX,dword ptr [ESI + 0xc]
LEA EDI,[ESP + 0x1c]
MOVZX EAX,word ptr [EAX + 0x42]
PUSH EDI
LEA EDI,[ESP + 0x1c]
PUSH EDI
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
MOVZX EDI,word ptr [ESP + 0x5c]
PUSH EDI
PUSH dword ptr [ESI + 0x18]
PUSH dword ptr [ESI + 0x14]
CALL 0x00023b50
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,0x4
CALL 0x0001e910
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x00035ad6
MOV ESI,dword ptr [EBX + 0xffffffd8]
LEA EAX,[EBX + 0xfffc7e05]
PUSH dword ptr [ESI]
PUSH 0x2
PUSH 0x1
PUSH EAX
CALL 0x00013150
POP EAX
POP EDX
PUSH dword ptr [ESI]
PUSH dword ptr [ESP + 0x20]
CALL 0x00013400
MOV EAX,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV EDI,EAX
OR EDI,dword ptr [ESP + 0x1c]
JNZ 0x00035ae0
SUB ESP,0x8
PUSH dword ptr [ESI]
PUSH 0x3e
CALL 0x00013350
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH EAX
LEA EAX,[EBX + 0xfffc7e08]
PUSH EAX
CALL 0x00013060
ADD ESP,0x10
JMP 0x00035ac3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)\n\n{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}\n\n" comment (function_definition "char * __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)\n\n{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}" primitive_type (pointer_declarator "* __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" * (ERROR "__regparm2" identifier) (function_declarator "FUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "short param_5" (sized_type_specifier "short" short) identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x35a0b;" (assignment_expression "uStack_14 = 0x35a0b" identifier = number_literal) ;) (if_statement "if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    param_6 = param_3;\n    param_7 = param_4;\n  }" { (expression_statement "param_6 = param_3;" (assignment_expression "param_6 = param_3" identifier = identifier) ;) (expression_statement "param_7 = param_4;" (assignment_expression "param_7 = param_4" identifier = identifier) ;) })) (expression_statement "FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);" (call_expression "FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier , identifier , identifier , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_0001e910(param_6,param_7,param_3,param_4);" (call_expression "FUN_0001e910(param_6,param_7,param_3,param_4)" identifier (argument_list "(param_6,param_7,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" identifier = identifier) ;) (if_statement "if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" if (parenthesized_expression "(local_28 != (char *)0x0)" ( (binary_expression "local_28 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" { (expression_statement "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);" (call_expression "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" identifier (argument_list "(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" ( (pointer_expression "&DAT_0007be05" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" * (cast_expression "(FILE **)PTR_stdout_000b3fd8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "fputs(local_28,*(FILE **)puVar1);" (call_expression "fputs(local_28,*(FILE **)puVar1)" identifier (argument_list "(local_28,*(FILE **)puVar1)" ( identifier , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (if_statement "if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }" if (parenthesized_expression "(local_24 != 0 || local_20 != 0)" ( (binary_expression "local_24 != 0 || local_20 != 0" (binary_expression "local_24 != 0" identifier != number_literal) || (binary_expression "local_20 != 0" identifier != number_literal)) )) (compound_statement "{\n      printf("+0x%lx",local_24);\n    }" { (expression_statement "printf("+0x%lx",local_24);" (call_expression "printf("+0x%lx",local_24)" identifier (argument_list "("+0x%lx",local_24)" ( (string_literal ""+0x%lx"" " string_content ") , identifier ))) ;) })) (expression_statement "fputc(0x3e,*(FILE **)puVar1);" (call_expression "fputc(0x3e,*(FILE **)puVar1)" identifier (argument_list "(0x3e,*(FILE **)puVar1)" ( number_literal , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (return_statement "return local_28;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm2\narm_print_vma_and_name(Filedata *filedata,arm_unw_aux_info *aux,bfd_vma fn,absaddr addr)\n\n{\n  absaddr addr_00;\n  undefined *puVar1;\n  bfd_vma vma;\n  char *procname;\n  bfd_vma sym_offset;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  vma = addr.offset;\n  if (addr.section == 0) {\n    vma = fn;\n  }\n  addr_00._2_2_ = 0;\n  addr_00.section = addr.section;\n  addr_00.offset._0_4_ = (int)vma;\n  addr_00.offset._4_4_ = (int)(vma >> 0x20);\n  find_symbol_for_address\n            ((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,\n             aux->strtab_size,addr_00,&procname,&sym_offset);\n  print_vma(vma,(print_mode)fn);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (procname != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(procname,*(FILE **)puVar1);\n    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {\n      printf("+0x%lx",(int)sym_offset);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return procname;\n}\n\n" comment (function_definition "char * __regparm2\narm_print_vma_and_name(Filedata *filedata,arm_unw_aux_info *aux,bfd_vma fn,absaddr addr)\n\n{\n  absaddr addr_00;\n  undefined *puVar1;\n  bfd_vma vma;\n  char *procname;\n  bfd_vma sym_offset;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  vma = addr.offset;\n  if (addr.section == 0) {\n    vma = fn;\n  }\n  addr_00._2_2_ = 0;\n  addr_00.section = addr.section;\n  addr_00.offset._0_4_ = (int)vma;\n  addr_00.offset._4_4_ = (int)(vma >> 0x20);\n  find_symbol_for_address\n            ((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,\n             aux->strtab_size,addr_00,&procname,&sym_offset);\n  print_vma(vma,(print_mode)fn);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (procname != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(procname,*(FILE **)puVar1);\n    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {\n      printf("+0x%lx",(int)sym_offset);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return procname;\n}" primitive_type (pointer_declarator "* __regparm2\narm_print_vma_and_name(Filedata *filedata,arm_unw_aux_info *aux,bfd_vma fn,absaddr addr)" * (ERROR "__regparm2" identifier) (function_declarator "arm_print_vma_and_name(Filedata *filedata,arm_unw_aux_info *aux,bfd_vma fn,absaddr addr)" identifier (parameter_list "(Filedata *filedata,arm_unw_aux_info *aux,bfd_vma fn,absaddr addr)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "arm_unw_aux_info *aux" type_identifier (pointer_declarator "*aux" * identifier)) , (parameter_declaration "bfd_vma fn" type_identifier identifier) , (parameter_declaration "absaddr addr" type_identifier identifier) )))) (compound_statement "{\n  absaddr addr_00;\n  undefined *puVar1;\n  bfd_vma vma;\n  char *procname;\n  bfd_vma sym_offset;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  vma = addr.offset;\n  if (addr.section == 0) {\n    vma = fn;\n  }\n  addr_00._2_2_ = 0;\n  addr_00.section = addr.section;\n  addr_00.offset._0_4_ = (int)vma;\n  addr_00.offset._4_4_ = (int)(vma >> 0x20);\n  find_symbol_for_address\n            ((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,\n             aux->strtab_size,addr_00,&procname,&sym_offset);\n  print_vma(vma,(print_mode)fn);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (procname != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(procname,*(FILE **)puVar1);\n    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {\n      printf("+0x%lx",(int)sym_offset);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return procname;\n}" { (declaration "absaddr addr_00;" type_identifier identifier ;) (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "bfd_vma vma;" type_identifier identifier ;) (declaration "char *procname;" primitive_type (pointer_declarator "*procname" * identifier) ;) (declaration "bfd_vma sym_offset;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x35a0b;" (assignment_expression "uStack_14 = 0x35a0b" identifier = number_literal) ;) (expression_statement "vma = addr.offset;" (assignment_expression "vma = addr.offset" identifier = (field_expression "addr.offset" identifier . field_identifier)) ;) (if_statement "if (addr.section == 0) {\n    vma = fn;\n  }" if (parenthesized_expression "(addr.section == 0)" ( (binary_expression "addr.section == 0" (field_expression "addr.section" identifier . field_identifier) == number_literal) )) (compound_statement "{\n    vma = fn;\n  }" { (expression_statement "vma = fn;" (assignment_expression "vma = fn" identifier = identifier) ;) })) (expression_statement "addr_00._2_2_ = 0;" (assignment_expression "addr_00._2_2_ = 0" (field_expression "addr_00._2_2_" identifier . field_identifier) = number_literal) ;) (expression_statement "addr_00.section = addr.section;" (assignment_expression "addr_00.section = addr.section" (field_expression "addr_00.section" identifier . field_identifier) = (field_expression "addr.section" identifier . field_identifier)) ;) (expression_statement "addr_00.offset._0_4_ = (int)vma;" (assignment_expression "addr_00.offset._0_4_ = (int)vma" (field_expression "addr_00.offset._0_4_" (field_expression "addr_00.offset" identifier . field_identifier) . field_identifier) = (cast_expression "(int)vma" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "addr_00.offset._4_4_ = (int)(vma >> 0x20);" (assignment_expression "addr_00.offset._4_4_ = (int)(vma >> 0x20)" (field_expression "addr_00.offset._4_4_" (field_expression "addr_00.offset" identifier . field_identifier) . field_identifier) = (cast_expression "(int)(vma >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(vma >> 0x20)" ( (binary_expression "vma >> 0x20" identifier >> number_literal) )))) ;) (expression_statement "find_symbol_for_address\n            ((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,\n             aux->strtab_size,addr_00,&procname,&sym_offset);" (call_expression "find_symbol_for_address\n            ((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,\n             aux->strtab_size,addr_00,&procname,&sym_offset)" identifier (argument_list "((Filedata *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,\n             aux->strtab_size,addr_00,&procname,&sym_offset)" ( (cast_expression "(Filedata *)(uint)(filedata->file_header).e_machine" ( (type_descriptor "Filedata *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(uint)(filedata->file_header).e_machine" (call_expression "(uint)(filedata->file_header)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) ))) . field_identifier)) , (field_expression "aux->funtab" identifier -> field_identifier) , (field_expression "aux->nfuns" identifier -> field_identifier) , (field_expression "aux->strtab" identifier -> field_identifier) , (field_expression "aux->strtab_size" identifier -> field_identifier) , identifier , (pointer_expression "&procname" & identifier) , (pointer_expression "&sym_offset" & identifier) ))) ;) (expression_statement "print_vma(vma,(print_mode)fn);" (call_expression "print_vma(vma,(print_mode)fn)" identifier (argument_list "(vma,(print_mode)fn)" ( identifier , (cast_expression "(print_mode)fn" ( (type_descriptor "print_mode" type_identifier) ) identifier) ))) ;) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" identifier = identifier) ;) (if_statement "if (procname != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(procname,*(FILE **)puVar1);\n    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {\n      printf("+0x%lx",(int)sym_offset);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" if (parenthesized_expression "(procname != (char *)0x0)" ( (binary_expression "procname != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(procname,*(FILE **)puVar1);\n    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {\n      printf("+0x%lx",(int)sym_offset);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" { (expression_statement "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);" (call_expression "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" identifier (argument_list "(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" ( (pointer_expression "&DAT_0007be05" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" * (cast_expression "(FILE **)PTR_stdout_000b3fd8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "fputs(procname,*(FILE **)puVar1);" (call_expression "fputs(procname,*(FILE **)puVar1)" identifier (argument_list "(procname,*(FILE **)puVar1)" ( identifier , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (if_statement "if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {\n      printf("+0x%lx",(int)sym_offset);\n    }" if (parenthesized_expression "((int)sym_offset != 0 || sym_offset._4_4_ != 0)" ( (binary_expression "(int)sym_offset != 0 || sym_offset._4_4_ != 0" (binary_expression "(int)sym_offset != 0" (cast_expression "(int)sym_offset" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) || (binary_expression "sym_offset._4_4_ != 0" (field_expression "sym_offset._4_4_" identifier . field_identifier) != number_literal)) )) (compound_statement "{\n      printf("+0x%lx",(int)sym_offset);\n    }" { (expression_statement "printf("+0x%lx",(int)sym_offset);" (call_expression "printf("+0x%lx",(int)sym_offset)" identifier (argument_list "("+0x%lx",(int)sym_offset)" ( (string_literal ""+0x%lx"" " string_content ") , (cast_expression "(int)sym_offset" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) })) (expression_statement "fputc(0x3e,*(FILE **)puVar1);" (call_expression "fputc(0x3e,*(FILE **)puVar1)" identifier (argument_list "(0x3e,*(FILE **)puVar1)" ( number_literal , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (return_statement "return procname;" return identifier ;) })))
(translation_unit "char * __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)\n\n{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}\n\n" (function_definition "char * __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)\n\n{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}" primitive_type (pointer_declarator "* __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" * (ERROR "__regparm2" identifier) (function_declarator "FUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "short param_5" (sized_type_specifier "short" short) identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x35a0b;" (assignment_expression "uStack_14 = 0x35a0b" identifier = number_literal) ;) (if_statement "if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    param_6 = param_3;\n    param_7 = param_4;\n  }" { (expression_statement "param_6 = param_3;" (assignment_expression "param_6 = param_3" identifier = identifier) ;) (expression_statement "param_7 = param_4;" (assignment_expression "param_7 = param_4" identifier = identifier) ;) })) (expression_statement "FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);" (call_expression "FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier , identifier , identifier , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "FUN_0001e910(param_6,param_7,param_3,param_4);" (call_expression "FUN_0001e910(param_6,param_7,param_3,param_4)" identifier (argument_list "(param_6,param_7,param_3,param_4)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" identifier = identifier) ;) (if_statement "if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" if (parenthesized_expression "(local_28 != (char *)0x0)" ( (binary_expression "local_28 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" { (expression_statement "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);" (call_expression "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" identifier (argument_list "(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" ( (pointer_expression "&DAT_0007be05" & identifier) , number_literal , number_literal , (pointer_expression "*(FILE **)PTR_stdout_000b3fd8" * (cast_expression "(FILE **)PTR_stdout_000b3fd8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (expression_statement "fputs(local_28,*(FILE **)puVar1);" (call_expression "fputs(local_28,*(FILE **)puVar1)" identifier (argument_list "(local_28,*(FILE **)puVar1)" ( identifier , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) (if_statement "if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }" if (parenthesized_expression "(local_24 != 0 || local_20 != 0)" ( (binary_expression "local_24 != 0 || local_20 != 0" (binary_expression "local_24 != 0" identifier != number_literal) || (binary_expression "local_20 != 0" identifier != number_literal)) )) (compound_statement "{\n      printf("+0x%lx",local_24);\n    }" { (expression_statement "printf("+0x%lx",local_24);" (call_expression "printf("+0x%lx",local_24)" identifier (argument_list "("+0x%lx",local_24)" ( (string_literal ""+0x%lx"" " string_content ") , identifier ))) ;) })) (expression_statement "fputc(0x3e,*(FILE **)puVar1);" (call_expression "fputc(0x3e,*(FILE **)puVar1)" identifier (argument_list "(0x3e,*(FILE **)puVar1)" ( number_literal , (pointer_expression "*(FILE **)puVar1" * (cast_expression "(FILE **)puVar1" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) ))) ;) })) (return_statement "return local_28;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier short) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)\n\n{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}" (primitive_type "char") (pointer_declarator "* __regparm2\nFUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" (* "*") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00035a00(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" (identifier "FUN_00035a00") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,\n            undefined4 param_6,undefined4 param_7)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "short param_5" (sized_type_specifier "short" (short "short")) (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  char *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x35a0b;\n  if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }\n  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);\n  FUN_0001e910(param_6,param_7,param_3,param_4);\n  puVar1 = PTR_stdout_000b3fd8;\n  if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }\n  return local_28;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *local_28;" (primitive_type "char") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x35a0b;" (assignment_expression "uStack_14 = 0x35a0b" (identifier "uStack_14") (= "=") (number_literal "0x35a0b")) (; ";")) (if_statement "if (param_5 == 0) {\n    param_6 = param_3;\n    param_7 = param_4;\n  }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_6 = param_3;\n    param_7 = param_4;\n  }" ({ "{") (expression_statement "param_6 = param_3;" (assignment_expression "param_6 = param_3" (identifier "param_6") (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_7 = param_4;" (assignment_expression "param_7 = param_4" (identifier "param_7") (= "=") (identifier "param_4")) (; ";")) (} "}"))) (expression_statement "FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24);" (call_expression "FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24)" (identifier "FUN_00023b50") (argument_list "(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,\n               param_7,&local_28,&local_24)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "FUN_0001e910(param_6,param_7,param_3,param_4);" (call_expression "FUN_0001e910(param_6,param_7,param_3,param_4)" (identifier "FUN_0001e910") (argument_list "(param_6,param_7,param_3,param_4)" (( "(") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_stdout_000b3fd8;" (assignment_expression "puVar1 = PTR_stdout_000b3fd8" (identifier "puVar1") (= "=") (identifier "PTR_stdout_000b3fd8")) (; ";")) (if_statement "if (local_28 != (char *)0x0) {\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" (if "if") (parenthesized_expression "(local_28 != (char *)0x0)" (( "(") (binary_expression "local_28 != (char *)0x0" (identifier "local_28") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);\n    fputs(local_28,*(FILE **)puVar1);\n    if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }\n    fputc(0x3e,*(FILE **)puVar1);\n  }" ({ "{") (expression_statement "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);" (call_expression "fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" (identifier "fwrite") (argument_list "(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8)" (( "(") (pointer_expression "&DAT_0007be05" (& "&") (identifier "DAT_0007be05")) (, ",") (number_literal "1") (, ",") (number_literal "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"))) () ")"))) (; ";")) (expression_statement "fputs(local_28,*(FILE **)puVar1);" (call_expression "fputs(local_28,*(FILE **)puVar1)" (identifier "fputs") (argument_list "(local_28,*(FILE **)puVar1)" (( "(") (identifier "local_28") (, ",") (pointer_expression "*(FILE **)puVar1" (* "*") (cast_expression "(FILE **)puVar1" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) () ")"))) (; ";")) (if_statement "if (local_24 != 0 || local_20 != 0) {\n      printf("+0x%lx",local_24);\n    }" (if "if") (parenthesized_expression "(local_24 != 0 || local_20 != 0)" (( "(") (binary_expression "local_24 != 0 || local_20 != 0" (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      printf("+0x%lx",local_24);\n    }" ({ "{") (expression_statement "printf("+0x%lx",local_24);" (call_expression "printf("+0x%lx",local_24)" (identifier "printf") (argument_list "("+0x%lx",local_24)" (( "(") (string_literal ""+0x%lx"" (" """) (string_content "+0x%lx") (" """)) (, ",") (identifier "local_24") () ")"))) (; ";")) (} "}"))) (expression_statement "fputc(0x3e,*(FILE **)puVar1);" (call_expression "fputc(0x3e,*(FILE **)puVar1)" (identifier "fputc") (argument_list "(0x3e,*(FILE **)puVar1)" (( "(") (number_literal "0x3e") (, ",") (pointer_expression "*(FILE **)puVar1" (* "*") (cast_expression "(FILE **)puVar1" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1"))) () ")"))) (; ";")) (} "}"))) (return_statement "return local_28;" (return "return") (identifier "local_28") (; ";")) (} "}")))

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

char * __regparm2
function_1(type_1 *filedata,type_2 *aux,type_3 fn,type_4 addr)

{
  type_4 addr_00;
  type_5 *puVar1;
  type_3 var_1;
  char *var_4;
  type_3 sym_offset;
  type_6 uStack_14;
  
  uStack_14 = 0x35a0b;
  var_1 = addr.offset;
  if (addr.section == 0) {
    var_1 = fn;
  }
  addr_00._2_2_ = 0;
  addr_00.section = addr.section;
  addr_00.offset._0_4_ = (int)var_1;
  addr_00.offset._4_4_ = (int)(var_1 >> 0x20);
  var_2
            ((type_1 *)(uint)(filedata->file_header).e_machine,aux->funtab,aux->nfuns,aux->strtab,
             aux->strtab_size,addr_00,&var_4,&sym_offset);
  var_3(var_1,(type_7)fn);
  puVar1 = PTR_stdout_000b3fd8;
  if (var_4 != (char *)0x0) {
    var_5(&DAT_0007be05,1,2,*(type_8 **)PTR_stdout_000b3fd8);
    var_6(var_4,*(type_8 **)puVar1);
    if ((int)sym_offset != 0 || sym_offset._4_4_ != 0) {
      var_7("+0x%lx",(int)sym_offset);
    }
    var_8(0x3e,*(type_8 **)puVar1);
  }
  return var_4;
}


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

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

char * __regparm2
MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4,short param_5,
            undefined4 param_6,undefined4 param_7)

{
  undefined *puVar1;
  char *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x35a0b;
  if (param_5 == 0) {
    param_6 = param_3;
    param_7 = param_4;
  }
  FUN_00023b50(*(undefined4 *)(param_2 + 0x14),*(undefined4 *)(param_2 + 0x18),param_5,param_6,
               param_7,&local_28,&local_24);
  FUN_0001e910(param_6,param_7,param_3,param_4);
  puVar1 = PTR_stdout_000b3fd8;
  if (local_28 != (char *)0x0) {
    fwrite(&DAT_0007be05,1,2,*(FILE **)PTR_stdout_000b3fd8);
    fputs(local_28,*(FILE **)puVar1);
    if (local_24 != 0 || local_20 != 0) {
      printf("+0x%lx",local_24);
    }
    fputc(0x3e,*(FILE **)puVar1);
  }
  return local_28;
}

