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

bfd_boolean tg_start_block(void *p,bfd_vma addr)

{
  pr_handle *info;
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  bfd_vma bVar4;
  FILE *pFVar5;
  FILE *__stream;
  bfd_boolean bVar6;
  char *__ptr;
  char cVar7;
  char ab [22];
  
  if (*(int *)((int)p + 0xc) < 1) {
    return 1;
  }
  *(undefined4 *)((int)p + 0xc) = 0;
                    /* WARNING: Load size is inaccurate */
  fprintf(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))
  ;
  free(*(void **)(*(int *)((int)p + 8) + 0x14));
  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);
                    /* WARNING: Load size is inaccurate */
  pFVar5 = *p;
  uVar1 = *(undefined4 *)((int)p + 0x18);
  uVar2 = *(undefined4 *)((int)p + 0x14);
  pc = bfd_scan_vma(ab,0,0x10);
  found = 0;
  bfd_map_over_sections(uVar2,find_address_in_section,uVar1);
  if (found == 0) {
    fwrite(&DAT_0004f51f,1,2,pFVar5);
  }
  else {
    fprintf(pFVar5,"%u",line);
  }
  info = (pr_handle *)((int)p + 8);
  iVar3 = *(int *)(*(int *)((int)p + 8) + 0x10);
  __ptr = *(char **)(*(int *)((int)p + 8) + 0xc);
  if (__ptr == (char *)0x0) {
    bVar6 = append_type(info,")");
    bVar4 = pc;
    if (bVar6 == 0) goto LAB_00039de6;
LAB_00039dd0:
    __ptr = (char *)0x0;
    cVar7 = 'f';
    pFVar5 = (FILE *)pop_type(info);
  }
  else {
    cVar7 = 'm';
    if (*__ptr == '\0') goto LAB_00039dd0;
    pFVar5 = (FILE *)pop_type(info);
  }
  bVar4 = pc;
  if (pFVar5 != (FILE *)0x0) {
                    /* WARNING: Load size is inaccurate */
    fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);
    if (iVar3 != 0) {
                    /* WARNING: Load size is inaccurate */
      pFVar5 = *p;
      fwrite("\tfile:",1,6,pFVar5);
    }
                    /* WARNING: Load size is inaccurate */
    __stream = *p;
    if (__ptr != (char *)0x0) {
      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);
      free(__ptr);
                    /* WARNING: Load size is inaccurate */
      __stream = *p;
    }
    fputc(10,__stream);
    return 1;
  }
LAB_00039de6:
  pc._4_4_ = (undefined4)(bVar4 >> 0x20);
  pc._0_4_ = (undefined4)bVar4;
  return 0;
}



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

undefined4 FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  FILE *pFVar4;
  FILE *__stream;
  int iVar5;
  char *__ptr;
  char cVar6;
  undefined8 uVar7;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x39bfe;
  if ((int)param_1[3] < 1) {
    return 1;
  }
  param_1[3] = 0;
  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);
  free(*(void **)(param_1[2] + 0x14));
  sprintf(local_32,"0x%llx",param_2,param_3);
  pFVar4 = (FILE *)*param_1;
  uVar1 = param_1[6];
  uVar2 = param_1[5];
  uVar7 = bfd_scan_vma(local_32,0,0x10);
  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);
  DAT_00076968 = (undefined4)uVar7;
  DAT_00076958 = 0;
  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);
  if (DAT_00076958 == 0) {
    fwrite(&DAT_0004f51f,1,2,pFVar4);
  }
  else {
    fprintf(pFVar4,"%u",DAT_0007695c);
  }
  iVar3 = *(int *)(param_1[2] + 0x10);
  __ptr = *(char **)(param_1[2] + 0xc);
  if (__ptr == (char *)0x0) {
    iVar5 = FUN_00037580();
    if (iVar5 == 0) {
      return 0;
    }
  }
  else {
    cVar6 = 'm';
    if (*__ptr != '\0') {
      pFVar4 = (FILE *)FUN_00036d90();
      goto joined_r0x00039de0;
    }
  }
  __ptr = (char *)0x0;
  cVar6 = 'f';
  pFVar4 = (FILE *)FUN_00036d90();
joined_r0x00039de0:
  if (pFVar4 == (FILE *)0x0) {
    return 0;
  }
  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);
  if (iVar3 != 0) {
    pFVar4 = (FILE *)*param_1;
    fwrite("\tfile:",1,6,pFVar4);
  }
  __stream = (FILE *)*param_1;
  if (__ptr != (char *)0x0) {
    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);
    free(__ptr);
    __stream = (FILE *)*param_1;
  }
  fputc(10,__stream);
  return 1;
}


PUSH EBP
MOV EAX,0x1
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x39402
SUB ESP,0x3c
MOV EBP,dword ptr [ESP + 0x50]
MOV ESI,dword ptr [ESP + 0x54]
MOV EDI,dword ptr [ESP + 0x58]
MOV EDX,dword ptr [EBP + 0xc]
TEST EDX,EDX
JG 0x00039c28
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + 0xc],0x0
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EAX + 0x14]
LEA EAX,[EBX + 0xfffe43d6]
PUSH EAX
PUSH dword ptr [EBP]
CALL 0x00014878
MOV EAX,dword ptr [EBP + 0x8]
POP EDX
PUSH dword ptr [EAX + 0x14]
CALL 0x00014120
LEA EAX,[EBX + 0xfffe4117]
PUSH EDI
PUSH ESI
PUSH EAX
LEA EDX,[ESP + 0x36]
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
CALL 0x000146d0
MOV ECX,dword ptr [EBP]
MOV EDI,dword ptr [EBP + 0x18]
MOV ESI,dword ptr [EBP + 0x14]
MOV dword ptr [ESP + 0x28],ECX
ADD ESP,0x1c
PUSH 0x10
PUSH 0x0
MOV EDX,dword ptr [ESP + 0x18]
PUSH EDX
CALL 0x00014070
ADD ESP,0xc
MOV dword ptr [EBX + 0x3958],0x0
MOV dword ptr [EBX + 0x3968],EAX
LEA EAX,[EBX + 0xfffc3cd0]
PUSH EDI
PUSH EAX
PUSH ESI
MOV dword ptr [EBX + 0x396c],EDX
CALL 0x00014790
MOV ECX,dword ptr [EBX + 0x3958]
ADD ESP,0x10
TEST ECX,ECX
MOV ECX,dword ptr [ESP + 0x8]
JNZ 0x00039d88
LEA EAX,[EBX + 0xfffdc51f]
PUSH ECX
PUSH 0x2
PUSH 0x1
PUSH EAX
CALL 0x000142a0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x8]
LEA ECX,[EBP + 0x8]
MOV EDI,dword ptr [EAX + 0x10]
MOV ESI,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x8],EDI
TEST ESI,ESI
JZ 0x00039db0
CMP byte ptr [ESI],0x0
MOV EDI,0x6d
JZ 0x00039dd0
MOV EAX,ECX
CALL 0x00036d90
TEST EAX,EAX
JZ 0x00039de6
PUSH EAX
MOV EAX,EDI
MOVSX EDI,AL
LEA EAX,[EBX + 0xfffe43dd]
PUSH EDI
PUSH EAX
PUSH dword ptr [EBP]
CALL 0x00014878
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x00039d44
LEA EAX,[EBX + 0xfffe41b5]
PUSH dword ptr [EBP]
PUSH 0x6
PUSH 0x1
PUSH EAX
CALL 0x000142a0
ADD ESP,0x10
MOV EAX,dword ptr [EBP]
TEST ESI,ESI
JZ 0x00039d6a
SUB ESP,0x4
LEA EDX,[EBX + 0xfffe41c7]
PUSH ESI
PUSH EDX
PUSH EAX
CALL 0x00014878
MOV dword ptr [ESP],ESI
CALL 0x00014120
MOV EAX,dword ptr [EBP]
ADD ESP,0x10
SUB ESP,0x8
PUSH EAX
PUSH 0xa
CALL 0x00014660
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe4333]
PUSH dword ptr [EBX + 0x395c]
PUSH EAX
PUSH ECX
CALL 0x00014878
ADD ESP,0x10
JMP 0x00039cd8
MOV EAX,ECX
LEA EDX,[EBX + 0xfffe13cd]
MOV dword ptr [ESP + 0xc],ECX
CALL 0x00037580
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x00039de6
LEA ESI,[ESI]
MOV EAX,ECX
XOR ESI,ESI
MOV EDI,0x66
CALL 0x00036d90
TEST EAX,EAX
JNZ 0x00039d0d
ADD ESP,0x3c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}" type_identifier (function_declarator "FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "FILE *pFVar4;" type_identifier (pointer_declarator "*pFVar4" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "char local_32 [30];" primitive_type (array_declarator "local_32 [30]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x39bfe;" (assignment_expression "uStack_14 = 0x39bfe" identifier = number_literal) ;) (if_statement "if ((int)param_1[3] < 1) {\n    return 1;\n  }" if (parenthesized_expression "((int)param_1[3] < 1)" ( (binary_expression "(int)param_1[3] < 1" (cast_expression "(int)param_1[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4])" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4])" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t"" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(param_1[2] + 0x14)" * (cast_expression "(undefined4 *)(param_1[2] + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0x14)" ( (binary_expression "param_1[2] + 0x14" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "free(*(void **)(param_1[2] + 0x14));" (call_expression "free(*(void **)(param_1[2] + 0x14))" identifier (argument_list "(*(void **)(param_1[2] + 0x14))" ( (pointer_expression "*(void **)(param_1[2] + 0x14)" * (cast_expression "(void **)(param_1[2] + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + 0x14)" ( (binary_expression "param_1[2] + 0x14" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "sprintf(local_32,"0x%llx",param_2,param_3);" (call_expression "sprintf(local_32,"0x%llx",param_2,param_3)" identifier (argument_list "(local_32,"0x%llx",param_2,param_3)" ( identifier , (string_literal ""0x%llx"" " string_content ") , identifier , identifier ))) ;) (expression_statement "pFVar4 = (FILE *)*param_1;" (assignment_expression "pFVar4 = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar1 = param_1[6];" (assignment_expression "uVar1 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[5];" (assignment_expression "uVar2 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = bfd_scan_vma(local_32,0,0x10);" (assignment_expression "uVar7 = bfd_scan_vma(local_32,0,0x10)" identifier = (call_expression "bfd_scan_vma(local_32,0,0x10)" identifier (argument_list "(local_32,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);" (assignment_expression "DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)uVar7 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "DAT_00076968 = (undefined4)uVar7;" (assignment_expression "DAT_00076968 = (undefined4)uVar7" identifier = (cast_expression "(undefined4)uVar7" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "DAT_00076958 = 0;" (assignment_expression "DAT_00076958 = 0" identifier = number_literal) ;) (expression_statement "bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);" (call_expression "bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1)" identifier (argument_list "(uVar2,FUN_00036cd0,uVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" if (parenthesized_expression "(DAT_00076958 == 0)" ( (binary_expression "DAT_00076958 == 0" identifier == number_literal) )) (compound_statement "{\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }" { (expression_statement "fwrite(&DAT_0004f51f,1,2,pFVar4);" (call_expression "fwrite(&DAT_0004f51f,1,2,pFVar4)" identifier (argument_list "(&DAT_0004f51f,1,2,pFVar4)" ( (pointer_expression "&DAT_0004f51f" & identifier) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" else (compound_statement "{\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" { (expression_statement "fprintf(pFVar4,"%u",DAT_0007695c);" (call_expression "fprintf(pFVar4,"%u",DAT_0007695c)" identifier (argument_list "(pFVar4,"%u",DAT_0007695c)" ( identifier , (string_literal ""%u"" " string_content ") , identifier ))) ;) }))) (expression_statement "iVar3 = *(int *)(param_1[2] + 0x10);" (assignment_expression "iVar3 = *(int *)(param_1[2] + 0x10)" identifier = (pointer_expression "*(int *)(param_1[2] + 0x10)" * (cast_expression "(int *)(param_1[2] + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0x10)" ( (binary_expression "param_1[2] + 0x10" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "__ptr = *(char **)(param_1[2] + 0xc);" (assignment_expression "__ptr = *(char **)(param_1[2] + 0xc)" identifier = (pointer_expression "*(char **)(param_1[2] + 0xc)" * (cast_expression "(char **)(param_1[2] + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + 0xc)" ( (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "iVar5 = FUN_00037580();" (assignment_expression "iVar5 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" else (compound_statement "{\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" { (expression_statement "cVar6 = 'm';" (assignment_expression "cVar6 = 'm'" identifier = (char_literal "'m'" ' character ')) ;) (if_statement "if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }" if (parenthesized_expression "(*__ptr != '\0')" ( (binary_expression "*__ptr != '\0'" (pointer_expression "*__ptr" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }" { (expression_statement "pFVar4 = (FILE *)FUN_00036d90();" (assignment_expression "pFVar4 = (FILE *)FUN_00036d90()" identifier = (cast_expression "(FILE *)FUN_00036d90()" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (goto_statement "goto joined_r0x00039de0;" goto statement_identifier ;) })) }))) (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "cVar6 = 'f';" (assignment_expression "cVar6 = 'f'" identifier = (char_literal "'f'" ' character ')) ;) (expression_statement "pFVar4 = (FILE *)FUN_00036d90();" (assignment_expression "pFVar4 = (FILE *)FUN_00036d90()" identifier = (cast_expression "(FILE *)FUN_00036d90()" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (labeled_statement "joined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(pFVar4 == (FILE *)0x0)" ( (binary_expression "pFVar4 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);" (call_expression "fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4)" identifier (argument_list "((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal "";\"\tkind:%c\ttype:%s"" " string_content escape_sequence escape_sequence string_content escape_sequence string_content ") , (cast_expression "(int)cVar6" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (if_statement "if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }" { (expression_statement "pFVar4 = (FILE *)*param_1;" (assignment_expression "pFVar4 = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "fwrite("\tfile:",1,6,pFVar4);" (call_expression "fwrite("\tfile:",1,6,pFVar4)" identifier (argument_list "("\tfile:",1,6,pFVar4)" ( (string_literal ""\tfile:"" " escape_sequence string_content ") , number_literal , number_literal , identifier ))) ;) })) (expression_statement "__stream = (FILE *)*param_1;" (assignment_expression "__stream = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }" if (parenthesized_expression "(__ptr != (char *)0x0)" ( (binary_expression "__ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }" { (expression_statement "fprintf(__stream,"\tclass:%s",__ptr,pFVar4);" (call_expression "fprintf(__stream,"\tclass:%s",__ptr,pFVar4)" identifier (argument_list "(__stream,"\tclass:%s",__ptr,pFVar4)" ( identifier , (string_literal ""\tclass:%s"" " escape_sequence string_content ") , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__stream = (FILE *)*param_1;" (assignment_expression "__stream = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "fputc(10,__stream);" (call_expression "fputc(10,__stream)" identifier (argument_list "(10,__stream)" ( number_literal , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean tg_start_block(void *p,bfd_vma addr)\n\n{\n  pr_handle *info;\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bfd_vma bVar4;\n  FILE *pFVar5;\n  FILE *__stream;\n  bfd_boolean bVar6;\n  char *__ptr;\n  char cVar7;\n  char ab [22];\n  \n  if (*(int *)((int)p + 0xc) < 1) {\n    return 1;\n  }\n  *(undefined4 *)((int)p + 0xc) = 0;\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))\n  ;\n  free(*(void **)(*(int *)((int)p + 8) + 0x14));\n  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  pFVar5 = *p;\n  uVar1 = *(undefined4 *)((int)p + 0x18);\n  uVar2 = *(undefined4 *)((int)p + 0x14);\n  pc = bfd_scan_vma(ab,0,0x10);\n  found = 0;\n  bfd_map_over_sections(uVar2,find_address_in_section,uVar1);\n  if (found == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar5);\n  }\n  else {\n    fprintf(pFVar5,"%u",line);\n  }\n  info = (pr_handle *)((int)p + 8);\n  iVar3 = *(int *)(*(int *)((int)p + 8) + 0x10);\n  __ptr = *(char **)(*(int *)((int)p + 8) + 0xc);\n  if (__ptr == (char *)0x0) {\n    bVar6 = append_type(info,")");\n    bVar4 = pc;\n    if (bVar6 == 0) goto LAB_00039de6;\nLAB_00039dd0:\n    __ptr = (char *)0x0;\n    cVar7 = 'f';\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  else {\n    cVar7 = 'm';\n    if (*__ptr == '\0') goto LAB_00039dd0;\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  bVar4 = pc;\n  if (pFVar5 != (FILE *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);\n    if (iVar3 != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }\n                    /* WARNING: Load size is inaccurate */\n    __stream = *p;\n    if (__ptr != (char *)0x0) {\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }\n    fputc(10,__stream);\n    return 1;\n  }\nLAB_00039de6:\n  pc._4_4_ = (undefined4)(bVar4 >> 0x20);\n  pc._0_4_ = (undefined4)bVar4;\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean tg_start_block(void *p,bfd_vma addr)\n\n{\n  pr_handle *info;\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bfd_vma bVar4;\n  FILE *pFVar5;\n  FILE *__stream;\n  bfd_boolean bVar6;\n  char *__ptr;\n  char cVar7;\n  char ab [22];\n  \n  if (*(int *)((int)p + 0xc) < 1) {\n    return 1;\n  }\n  *(undefined4 *)((int)p + 0xc) = 0;\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))\n  ;\n  free(*(void **)(*(int *)((int)p + 8) + 0x14));\n  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  pFVar5 = *p;\n  uVar1 = *(undefined4 *)((int)p + 0x18);\n  uVar2 = *(undefined4 *)((int)p + 0x14);\n  pc = bfd_scan_vma(ab,0,0x10);\n  found = 0;\n  bfd_map_over_sections(uVar2,find_address_in_section,uVar1);\n  if (found == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar5);\n  }\n  else {\n    fprintf(pFVar5,"%u",line);\n  }\n  info = (pr_handle *)((int)p + 8);\n  iVar3 = *(int *)(*(int *)((int)p + 8) + 0x10);\n  __ptr = *(char **)(*(int *)((int)p + 8) + 0xc);\n  if (__ptr == (char *)0x0) {\n    bVar6 = append_type(info,")");\n    bVar4 = pc;\n    if (bVar6 == 0) goto LAB_00039de6;\nLAB_00039dd0:\n    __ptr = (char *)0x0;\n    cVar7 = 'f';\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  else {\n    cVar7 = 'm';\n    if (*__ptr == '\0') goto LAB_00039dd0;\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  bVar4 = pc;\n  if (pFVar5 != (FILE *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);\n    if (iVar3 != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }\n                    /* WARNING: Load size is inaccurate */\n    __stream = *p;\n    if (__ptr != (char *)0x0) {\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }\n    fputc(10,__stream);\n    return 1;\n  }\nLAB_00039de6:\n  pc._4_4_ = (undefined4)(bVar4 >> 0x20);\n  pc._0_4_ = (undefined4)bVar4;\n  return 0;\n}" type_identifier (function_declarator "tg_start_block(void *p,bfd_vma addr)" identifier (parameter_list "(void *p,bfd_vma addr)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "bfd_vma addr" type_identifier identifier) ))) (compound_statement "{\n  pr_handle *info;\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  bfd_vma bVar4;\n  FILE *pFVar5;\n  FILE *__stream;\n  bfd_boolean bVar6;\n  char *__ptr;\n  char cVar7;\n  char ab [22];\n  \n  if (*(int *)((int)p + 0xc) < 1) {\n    return 1;\n  }\n  *(undefined4 *)((int)p + 0xc) = 0;\n                    /* WARNING: Load size is inaccurate */\n  fprintf(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))\n  ;\n  free(*(void **)(*(int *)((int)p + 8) + 0x14));\n  sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);\n                    /* WARNING: Load size is inaccurate */\n  pFVar5 = *p;\n  uVar1 = *(undefined4 *)((int)p + 0x18);\n  uVar2 = *(undefined4 *)((int)p + 0x14);\n  pc = bfd_scan_vma(ab,0,0x10);\n  found = 0;\n  bfd_map_over_sections(uVar2,find_address_in_section,uVar1);\n  if (found == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar5);\n  }\n  else {\n    fprintf(pFVar5,"%u",line);\n  }\n  info = (pr_handle *)((int)p + 8);\n  iVar3 = *(int *)(*(int *)((int)p + 8) + 0x10);\n  __ptr = *(char **)(*(int *)((int)p + 8) + 0xc);\n  if (__ptr == (char *)0x0) {\n    bVar6 = append_type(info,")");\n    bVar4 = pc;\n    if (bVar6 == 0) goto LAB_00039de6;\nLAB_00039dd0:\n    __ptr = (char *)0x0;\n    cVar7 = 'f';\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  else {\n    cVar7 = 'm';\n    if (*__ptr == '\0') goto LAB_00039dd0;\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  bVar4 = pc;\n  if (pFVar5 != (FILE *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);\n    if (iVar3 != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }\n                    /* WARNING: Load size is inaccurate */\n    __stream = *p;\n    if (__ptr != (char *)0x0) {\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }\n    fputc(10,__stream);\n    return 1;\n  }\nLAB_00039de6:\n  pc._4_4_ = (undefined4)(bVar4 >> 0x20);\n  pc._0_4_ = (undefined4)bVar4;\n  return 0;\n}" { (declaration "pr_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bfd_vma bVar4;" type_identifier identifier ;) (declaration "FILE *pFVar5;" type_identifier (pointer_declarator "*pFVar5" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "bfd_boolean bVar6;" type_identifier identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "char ab [22];" primitive_type (array_declarator "ab [22]" identifier [ number_literal ]) ;) (if_statement "if (*(int *)((int)p + 0xc) < 1) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)((int)p + 0xc) < 1)" ( (binary_expression "*(int *)((int)p + 0xc) < 1" (pointer_expression "*(int *)((int)p + 0xc)" * (cast_expression "(int *)((int)p + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0xc)" ( (binary_expression "(int)p + 0xc" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 *)((int)p + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)p + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)p + 0xc)" * (cast_expression "(undefined4 *)((int)p + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0xc)" ( (binary_expression "(int)p + 0xc" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) comment (expression_statement "fprintf(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))\n  ;" (call_expression "fprintf(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))" identifier (argument_list "(*p,"%s\t%s\t",*(undefined4 *)(*(int *)((int)p + 8) + 0x14),*(undefined4 *)((int)p + 0x10))" ( (pointer_expression "*p" * identifier) , (string_literal ""%s\t%s\t"" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(*(int *)((int)p + 8) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)((int)p + 8) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 8) + 0x14)" ( (binary_expression "*(int *)((int)p + 8) + 0x14" (pointer_expression "*(int *)((int)p + 8)" * (cast_expression "(int *)((int)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) , (pointer_expression "*(undefined4 *)((int)p + 0x10)" * (cast_expression "(undefined4 *)((int)p + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x10)" ( (binary_expression "(int)p + 0x10" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)(*(int *)((int)p + 8) + 0x14));" (call_expression "free(*(void **)(*(int *)((int)p + 8) + 0x14))" identifier (argument_list "(*(void **)(*(int *)((int)p + 8) + 0x14))" ( (pointer_expression "*(void **)(*(int *)((int)p + 8) + 0x14)" * (cast_expression "(void **)(*(int *)((int)p + 8) + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)p + 8) + 0x14)" ( (binary_expression "*(int *)((int)p + 8) + 0x14" (pointer_expression "*(int *)((int)p + 8)" * (cast_expression "(int *)((int)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_);" (call_expression "sprintf(ab,"0x%llx",(undefined4)addr,addr._4_4_)" identifier (argument_list "(ab,"0x%llx",(undefined4)addr,addr._4_4_)" ( identifier , (string_literal ""0x%llx"" " string_content ") , (cast_expression "(undefined4)addr" ( (type_descriptor "undefined4" type_identifier) ) identifier) , (field_expression "addr._4_4_" identifier . field_identifier) ))) ;) comment (expression_statement "pFVar5 = *p;" (assignment_expression "pFVar5 = *p" identifier = (pointer_expression "*p" * identifier)) ;) (expression_statement "uVar1 = *(undefined4 *)((int)p + 0x18);" (assignment_expression "uVar1 = *(undefined4 *)((int)p + 0x18)" identifier = (pointer_expression "*(undefined4 *)((int)p + 0x18)" * (cast_expression "(undefined4 *)((int)p + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x18)" ( (binary_expression "(int)p + 0x18" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)((int)p + 0x14);" (assignment_expression "uVar2 = *(undefined4 *)((int)p + 0x14)" identifier = (pointer_expression "*(undefined4 *)((int)p + 0x14)" * (cast_expression "(undefined4 *)((int)p + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x14)" ( (binary_expression "(int)p + 0x14" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "pc = bfd_scan_vma(ab,0,0x10);" (assignment_expression "pc = bfd_scan_vma(ab,0,0x10)" identifier = (call_expression "bfd_scan_vma(ab,0,0x10)" identifier (argument_list "(ab,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "found = 0;" (assignment_expression "found = 0" identifier = number_literal) ;) (expression_statement "bfd_map_over_sections(uVar2,find_address_in_section,uVar1);" (call_expression "bfd_map_over_sections(uVar2,find_address_in_section,uVar1)" identifier (argument_list "(uVar2,find_address_in_section,uVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (found == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar5);\n  }\n  else {\n    fprintf(pFVar5,"%u",line);\n  }" if (parenthesized_expression "(found == 0)" ( (binary_expression "found == 0" identifier == number_literal) )) (compound_statement "{\n    fwrite(&DAT_0004f51f,1,2,pFVar5);\n  }" { (expression_statement "fwrite(&DAT_0004f51f,1,2,pFVar5);" (call_expression "fwrite(&DAT_0004f51f,1,2,pFVar5)" identifier (argument_list "(&DAT_0004f51f,1,2,pFVar5)" ( (pointer_expression "&DAT_0004f51f" & identifier) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else {\n    fprintf(pFVar5,"%u",line);\n  }" else (compound_statement "{\n    fprintf(pFVar5,"%u",line);\n  }" { (expression_statement "fprintf(pFVar5,"%u",line);" (call_expression "fprintf(pFVar5,"%u",line)" identifier (argument_list "(pFVar5,"%u",line)" ( identifier , (string_literal ""%u"" " string_content ") , identifier ))) ;) }))) (expression_statement "info = (pr_handle *)((int)p + 8);" (assignment_expression "info = (pr_handle *)((int)p + 8)" identifier = (cast_expression "(pr_handle *)((int)p + 8)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "iVar3 = *(int *)(*(int *)((int)p + 8) + 0x10);" (assignment_expression "iVar3 = *(int *)(*(int *)((int)p + 8) + 0x10)" identifier = (pointer_expression "*(int *)(*(int *)((int)p + 8) + 0x10)" * (cast_expression "(int *)(*(int *)((int)p + 8) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 8) + 0x10)" ( (binary_expression "*(int *)((int)p + 8) + 0x10" (pointer_expression "*(int *)((int)p + 8)" * (cast_expression "(int *)((int)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "__ptr = *(char **)(*(int *)((int)p + 8) + 0xc);" (assignment_expression "__ptr = *(char **)(*(int *)((int)p + 8) + 0xc)" identifier = (pointer_expression "*(char **)(*(int *)((int)p + 8) + 0xc)" * (cast_expression "(char **)(*(int *)((int)p + 8) + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)p + 8) + 0xc)" ( (binary_expression "*(int *)((int)p + 8) + 0xc" (pointer_expression "*(int *)((int)p + 8)" * (cast_expression "(int *)((int)p + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 8)" ( (binary_expression "(int)p + 8" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (__ptr == (char *)0x0) {\n    bVar6 = append_type(info,")");\n    bVar4 = pc;\n    if (bVar6 == 0) goto LAB_00039de6;\nLAB_00039dd0:\n    __ptr = (char *)0x0;\n    cVar7 = 'f';\n    pFVar5 = (FILE *)pop_type(info);\n  }\n  else {\n    cVar7 = 'm';\n    if (*__ptr == '\0') goto LAB_00039dd0;\n    pFVar5 = (FILE *)pop_type(info);\n  }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar6 = append_type(info,")");\n    bVar4 = pc;\n    if (bVar6 == 0) goto LAB_00039de6;\nLAB_00039dd0:\n    __ptr = (char *)0x0;\n    cVar7 = 'f';\n    pFVar5 = (FILE *)pop_type(info);\n  }" { (expression_statement "bVar6 = append_type(info,")");" (assignment_expression "bVar6 = append_type(info,")")" identifier = (call_expression "append_type(info,")")" identifier (argument_list "(info,")")" ( identifier , (string_literal "")"" " string_content ") )))) ;) (expression_statement "bVar4 = pc;" (assignment_expression "bVar4 = pc" identifier = identifier) ;) (if_statement "if (bVar6 == 0) goto LAB_00039de6;" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00039de6;" goto statement_identifier ;)) (labeled_statement "LAB_00039dd0:\n    __ptr = (char *)0x0;" statement_identifier : (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "cVar7 = 'f';" (assignment_expression "cVar7 = 'f'" identifier = (char_literal "'f'" ' character ')) ;) (expression_statement "pFVar5 = (FILE *)pop_type(info);" (assignment_expression "pFVar5 = (FILE *)pop_type(info)" identifier = (cast_expression "(FILE *)pop_type(info)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "pop_type(info)" identifier (argument_list "(info)" ( identifier ))))) ;) }) (else_clause "else {\n    cVar7 = 'm';\n    if (*__ptr == '\0') goto LAB_00039dd0;\n    pFVar5 = (FILE *)pop_type(info);\n  }" else (compound_statement "{\n    cVar7 = 'm';\n    if (*__ptr == '\0') goto LAB_00039dd0;\n    pFVar5 = (FILE *)pop_type(info);\n  }" { (expression_statement "cVar7 = 'm';" (assignment_expression "cVar7 = 'm'" identifier = (char_literal "'m'" ' character ')) ;) (if_statement "if (*__ptr == '\0') goto LAB_00039dd0;" if (parenthesized_expression "(*__ptr == '\0')" ( (binary_expression "*__ptr == '\0'" (pointer_expression "*__ptr" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00039dd0;" goto statement_identifier ;)) (expression_statement "pFVar5 = (FILE *)pop_type(info);" (assignment_expression "pFVar5 = (FILE *)pop_type(info)" identifier = (cast_expression "(FILE *)pop_type(info)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "pop_type(info)" identifier (argument_list "(info)" ( identifier ))))) ;) }))) (expression_statement "bVar4 = pc;" (assignment_expression "bVar4 = pc" identifier = identifier) ;) (if_statement "if (pFVar5 != (FILE *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);\n    if (iVar3 != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }\n                    /* WARNING: Load size is inaccurate */\n    __stream = *p;\n    if (__ptr != (char *)0x0) {\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }\n    fputc(10,__stream);\n    return 1;\n  }" if (parenthesized_expression "(pFVar5 != (FILE *)0x0)" ( (binary_expression "pFVar5 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);\n    if (iVar3 != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }\n                    /* WARNING: Load size is inaccurate */\n    __stream = *p;\n    if (__ptr != (char *)0x0) {\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }\n    fputc(10,__stream);\n    return 1;\n  }" { comment (expression_statement "fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5);" (call_expression "fprintf(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5)" identifier (argument_list "(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,pFVar5)" ( (pointer_expression "*p" * identifier) , (string_literal "";\"\tkind:%c\ttype:%s"" " string_content escape_sequence escape_sequence string_content escape_sequence string_content ") , (cast_expression "(int)cVar7" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (if_statement "if (iVar3 != 0) {\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n      pFVar5 = *p;\n      fwrite("\tfile:",1,6,pFVar5);\n    }" { comment (expression_statement "pFVar5 = *p;" (assignment_expression "pFVar5 = *p" identifier = (pointer_expression "*p" * identifier)) ;) (expression_statement "fwrite("\tfile:",1,6,pFVar5);" (call_expression "fwrite("\tfile:",1,6,pFVar5)" identifier (argument_list "("\tfile:",1,6,pFVar5)" ( (string_literal ""\tfile:"" " escape_sequence string_content ") , number_literal , number_literal , identifier ))) ;) })) comment (expression_statement "__stream = *p;" (assignment_expression "__stream = *p" identifier = (pointer_expression "*p" * identifier)) ;) (if_statement "if (__ptr != (char *)0x0) {\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }" if (parenthesized_expression "(__ptr != (char *)0x0)" ( (binary_expression "__ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      fprintf(__stream,"\tclass:%s",__ptr,pFVar5);\n      free(__ptr);\n                    /* WARNING: Load size is inaccurate */\n      __stream = *p;\n    }" { (expression_statement "fprintf(__stream,"\tclass:%s",__ptr,pFVar5);" (call_expression "fprintf(__stream,"\tclass:%s",__ptr,pFVar5)" identifier (argument_list "(__stream,"\tclass:%s",__ptr,pFVar5)" ( identifier , (string_literal ""\tclass:%s"" " escape_sequence string_content ") , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) comment (expression_statement "__stream = *p;" (assignment_expression "__stream = *p" identifier = (pointer_expression "*p" * identifier)) ;) })) (expression_statement "fputc(10,__stream);" (call_expression "fputc(10,__stream)" identifier (argument_list "(10,__stream)" ( number_literal , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (labeled_statement "LAB_00039de6:\n  pc._4_4_ = (undefined4)(bVar4 >> 0x20);" statement_identifier : (expression_statement "pc._4_4_ = (undefined4)(bVar4 >> 0x20);" (assignment_expression "pc._4_4_ = (undefined4)(bVar4 >> 0x20)" (field_expression "pc._4_4_" identifier . field_identifier) = (call_expression "(undefined4)(bVar4 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "(bVar4 >> 0x20)" ( (binary_expression "bVar4 >> 0x20" identifier >> number_literal) )))) ;)) (expression_statement "pc._0_4_ = (undefined4)bVar4;" (assignment_expression "pc._0_4_ = (undefined4)bVar4" (field_expression "pc._0_4_" identifier . field_identifier) = (cast_expression "(undefined4)bVar4" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}" type_identifier (function_declarator "FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "FILE *pFVar4;" type_identifier (pointer_declarator "*pFVar4" * identifier) ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "char local_32 [30];" primitive_type (array_declarator "local_32 [30]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x39bfe;" (assignment_expression "uStack_14 = 0x39bfe" identifier = number_literal) ;) (if_statement "if ((int)param_1[3] < 1) {\n    return 1;\n  }" if (parenthesized_expression "((int)param_1[3] < 1)" ( (binary_expression "(int)param_1[3] < 1" (cast_expression "(int)param_1[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4])" identifier (argument_list "((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4])" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal ""%s\t%s\t"" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*(undefined4 *)(param_1[2] + 0x14)" * (cast_expression "(undefined4 *)(param_1[2] + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0x14)" ( (binary_expression "param_1[2] + 0x14" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "free(*(void **)(param_1[2] + 0x14));" (call_expression "free(*(void **)(param_1[2] + 0x14))" identifier (argument_list "(*(void **)(param_1[2] + 0x14))" ( (pointer_expression "*(void **)(param_1[2] + 0x14)" * (cast_expression "(void **)(param_1[2] + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + 0x14)" ( (binary_expression "param_1[2] + 0x14" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ))) ;) (expression_statement "sprintf(local_32,"0x%llx",param_2,param_3);" (call_expression "sprintf(local_32,"0x%llx",param_2,param_3)" identifier (argument_list "(local_32,"0x%llx",param_2,param_3)" ( identifier , (string_literal ""0x%llx"" " string_content ") , identifier , identifier ))) ;) (expression_statement "pFVar4 = (FILE *)*param_1;" (assignment_expression "pFVar4 = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "uVar1 = param_1[6];" (assignment_expression "uVar1 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = param_1[5];" (assignment_expression "uVar2 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = bfd_scan_vma(local_32,0,0x10);" (assignment_expression "uVar7 = bfd_scan_vma(local_32,0,0x10)" identifier = (call_expression "bfd_scan_vma(local_32,0,0x10)" identifier (argument_list "(local_32,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);" (assignment_expression "DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)uVar7 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "DAT_00076968 = (undefined4)uVar7;" (assignment_expression "DAT_00076968 = (undefined4)uVar7" identifier = (cast_expression "(undefined4)uVar7" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "DAT_00076958 = 0;" (assignment_expression "DAT_00076958 = 0" identifier = number_literal) ;) (expression_statement "bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);" (call_expression "bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1)" identifier (argument_list "(uVar2,FUN_00036cd0,uVar1)" ( identifier , identifier , identifier ))) ;) (if_statement "if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" if (parenthesized_expression "(DAT_00076958 == 0)" ( (binary_expression "DAT_00076958 == 0" identifier == number_literal) )) (compound_statement "{\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }" { (expression_statement "fwrite(&DAT_0004f51f,1,2,pFVar4);" (call_expression "fwrite(&DAT_0004f51f,1,2,pFVar4)" identifier (argument_list "(&DAT_0004f51f,1,2,pFVar4)" ( (pointer_expression "&DAT_0004f51f" & identifier) , number_literal , number_literal , identifier ))) ;) }) (else_clause "else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" else (compound_statement "{\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" { (expression_statement "fprintf(pFVar4,"%u",DAT_0007695c);" (call_expression "fprintf(pFVar4,"%u",DAT_0007695c)" identifier (argument_list "(pFVar4,"%u",DAT_0007695c)" ( identifier , (string_literal ""%u"" " string_content ") , identifier ))) ;) }))) (expression_statement "iVar3 = *(int *)(param_1[2] + 0x10);" (assignment_expression "iVar3 = *(int *)(param_1[2] + 0x10)" identifier = (pointer_expression "*(int *)(param_1[2] + 0x10)" * (cast_expression "(int *)(param_1[2] + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 0x10)" ( (binary_expression "param_1[2] + 0x10" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "__ptr = *(char **)(param_1[2] + 0xc);" (assignment_expression "__ptr = *(char **)(param_1[2] + 0xc)" identifier = (pointer_expression "*(char **)(param_1[2] + 0xc)" * (cast_expression "(char **)(param_1[2] + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1[2] + 0xc)" ( (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }" { (expression_statement "iVar5 = FUN_00037580();" (assignment_expression "iVar5 = FUN_00037580()" identifier = (call_expression "FUN_00037580()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" else (compound_statement "{\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" { (expression_statement "cVar6 = 'm';" (assignment_expression "cVar6 = 'm'" identifier = (char_literal "'m'" ' character ')) ;) (if_statement "if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }" if (parenthesized_expression "(*__ptr != '\0')" ( (binary_expression "*__ptr != '\0'" (pointer_expression "*__ptr" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }" { (expression_statement "pFVar4 = (FILE *)FUN_00036d90();" (assignment_expression "pFVar4 = (FILE *)FUN_00036d90()" identifier = (cast_expression "(FILE *)FUN_00036d90()" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (goto_statement "goto joined_r0x00039de0;" goto statement_identifier ;) })) }))) (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "cVar6 = 'f';" (assignment_expression "cVar6 = 'f'" identifier = (char_literal "'f'" ' character ')) ;) (expression_statement "pFVar4 = (FILE *)FUN_00036d90();" (assignment_expression "pFVar4 = (FILE *)FUN_00036d90()" identifier = (cast_expression "(FILE *)FUN_00036d90()" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036d90()" identifier (argument_list "()" ( ))))) ;) (labeled_statement "joined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }" statement_identifier : (if_statement "if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(pFVar4 == (FILE *)0x0)" ( (binary_expression "pFVar4 == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) }))) (expression_statement "fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);" (call_expression "fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4)" identifier (argument_list "((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4)" ( (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (string_literal "";\"\tkind:%c\ttype:%s"" " string_content escape_sequence escape_sequence string_content escape_sequence string_content ") , (cast_expression "(int)cVar6" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) (if_statement "if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }" { (expression_statement "pFVar4 = (FILE *)*param_1;" (assignment_expression "pFVar4 = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "fwrite("\tfile:",1,6,pFVar4);" (call_expression "fwrite("\tfile:",1,6,pFVar4)" identifier (argument_list "("\tfile:",1,6,pFVar4)" ( (string_literal ""\tfile:"" " escape_sequence string_content ") , number_literal , number_literal , identifier ))) ;) })) (expression_statement "__stream = (FILE *)*param_1;" (assignment_expression "__stream = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }" if (parenthesized_expression "(__ptr != (char *)0x0)" ( (binary_expression "__ptr != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }" { (expression_statement "fprintf(__stream,"\tclass:%s",__ptr,pFVar4);" (call_expression "fprintf(__stream,"\tclass:%s",__ptr,pFVar4)" identifier (argument_list "(__stream,"\tclass:%s",__ptr,pFVar4)" ( identifier , (string_literal ""\tclass:%s"" " escape_sequence string_content ") , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__stream = (FILE *)*param_1;" (assignment_expression "__stream = (FILE *)*param_1" identifier = (cast_expression "(FILE *)*param_1" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) })) (expression_statement "fputc(10,__stream);" (call_expression "fputc(10,__stream)" identifier (argument_list "(10,__stream)" ( number_literal , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (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 ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence string_content escape_sequence ") , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) }))) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (string_literal " string_content escape_sequence escape_sequence string_content escape_sequence string_content ") , (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " escape_sequence string_content ") , LIT , LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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 ( IDENT , (string_literal " escape_sequence string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00039bf0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00039bf0") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  FILE *pFVar4;\n  FILE *__stream;\n  int iVar5;\n  char *__ptr;\n  char cVar6;\n  undefined8 uVar7;\n  char local_32 [30];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x39bfe;\n  if ((int)param_1[3] < 1) {\n    return 1;\n  }\n  param_1[3] = 0;\n  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);\n  free(*(void **)(param_1[2] + 0x14));\n  sprintf(local_32,"0x%llx",param_2,param_3);\n  pFVar4 = (FILE *)*param_1;\n  uVar1 = param_1[6];\n  uVar2 = param_1[5];\n  uVar7 = bfd_scan_vma(local_32,0,0x10);\n  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);\n  DAT_00076968 = (undefined4)uVar7;\n  DAT_00076958 = 0;\n  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);\n  if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }\n  iVar3 = *(int *)(param_1[2] + 0x10);\n  __ptr = *(char **)(param_1[2] + 0xc);\n  if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }\n  __ptr = (char *)0x0;\n  cVar6 = 'f';\n  pFVar4 = (FILE *)FUN_00036d90();\njoined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }\n  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);\n  if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }\n  __stream = (FILE *)*param_1;\n  if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }\n  fputc(10,__stream);\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "FILE *pFVar4;" (type_identifier "FILE") (pointer_declarator "*pFVar4" (* "*") (identifier "pFVar4")) (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *__ptr;" (primitive_type "char") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "char cVar6;" (primitive_type "char") (identifier "cVar6") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "char local_32 [30];" (primitive_type "char") (array_declarator "local_32 [30]" (identifier "local_32") ([ "[") (number_literal "30") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x39bfe;" (assignment_expression "uStack_14 = 0x39bfe" (identifier "uStack_14") (= "=") (number_literal "0x39bfe")) (; ";")) (if_statement "if ((int)param_1[3] < 1) {\n    return 1;\n  }" (if "if") (parenthesized_expression "((int)param_1[3] < 1)" (( "(") (binary_expression "(int)param_1[3] < 1" (cast_expression "(int)param_1[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);" (call_expression "fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4])" (identifier "fprintf") (argument_list "((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4])" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal ""%s\t%s\t"" (" """) (string_content "%s") (escape_sequence "\t") (string_content "%s") (escape_sequence "\t") (" """)) (, ",") (pointer_expression "*(undefined4 *)(param_1[2] + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1[2] + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 0x14)" (( "(") (binary_expression "param_1[2] + 0x14" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0x14")) () ")")))) (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "free(*(void **)(param_1[2] + 0x14));" (call_expression "free(*(void **)(param_1[2] + 0x14))" (identifier "free") (argument_list "(*(void **)(param_1[2] + 0x14))" (( "(") (pointer_expression "*(void **)(param_1[2] + 0x14)" (* "*") (cast_expression "(void **)(param_1[2] + 0x14)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[2] + 0x14)" (( "(") (binary_expression "param_1[2] + 0x14" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "sprintf(local_32,"0x%llx",param_2,param_3);" (call_expression "sprintf(local_32,"0x%llx",param_2,param_3)" (identifier "sprintf") (argument_list "(local_32,"0x%llx",param_2,param_3)" (( "(") (identifier "local_32") (, ",") (string_literal ""0x%llx"" (" """) (string_content "0x%llx") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "pFVar4 = (FILE *)*param_1;" (assignment_expression "pFVar4 = (FILE *)*param_1" (identifier "pFVar4") (= "=") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "uVar1 = param_1[6];" (assignment_expression "uVar1 = param_1[6]" (identifier "uVar1") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "uVar2 = param_1[5];" (assignment_expression "uVar2 = param_1[5]" (identifier "uVar2") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "uVar7 = bfd_scan_vma(local_32,0,0x10);" (assignment_expression "uVar7 = bfd_scan_vma(local_32,0,0x10)" (identifier "uVar7") (= "=") (call_expression "bfd_scan_vma(local_32,0,0x10)" (identifier "bfd_scan_vma") (argument_list "(local_32,0,0x10)" (( "(") (identifier "local_32") (, ",") (number_literal "0") (, ",") (number_literal "0x10") () ")")))) (; ";")) (expression_statement "DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);" (assignment_expression "DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20)" (identifier "DAT_0007696c") (= "=") (call_expression "(undefined4)((ulonglong)uVar7 >> 0x20)" (parenthesized_expression "(undefined4)" (( "(") (identifier "undefined4") () ")")) (argument_list "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "DAT_00076968 = (undefined4)uVar7;" (assignment_expression "DAT_00076968 = (undefined4)uVar7" (identifier "DAT_00076968") (= "=") (cast_expression "(undefined4)uVar7" (( "(") (type_descriptor "undefined4" (type_identifier "undefined4")) () ")") (identifier "uVar7"))) (; ";")) (expression_statement "DAT_00076958 = 0;" (assignment_expression "DAT_00076958 = 0" (identifier "DAT_00076958") (= "=") (number_literal "0")) (; ";")) (expression_statement "bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);" (call_expression "bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1)" (identifier "bfd_map_over_sections") (argument_list "(uVar2,FUN_00036cd0,uVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "FUN_00036cd0") (, ",") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if (DAT_00076958 == 0) {\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }\n  else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" (if "if") (parenthesized_expression "(DAT_00076958 == 0)" (( "(") (binary_expression "DAT_00076958 == 0" (identifier "DAT_00076958") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    fwrite(&DAT_0004f51f,1,2,pFVar4);\n  }" ({ "{") (expression_statement "fwrite(&DAT_0004f51f,1,2,pFVar4);" (call_expression "fwrite(&DAT_0004f51f,1,2,pFVar4)" (identifier "fwrite") (argument_list "(&DAT_0004f51f,1,2,pFVar4)" (( "(") (pointer_expression "&DAT_0004f51f" (& "&") (identifier "DAT_0004f51f")) (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (identifier "pFVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" (else "else") (compound_statement "{\n    fprintf(pFVar4,"%u",DAT_0007695c);\n  }" ({ "{") (expression_statement "fprintf(pFVar4,"%u",DAT_0007695c);" (call_expression "fprintf(pFVar4,"%u",DAT_0007695c)" (identifier "fprintf") (argument_list "(pFVar4,"%u",DAT_0007695c)" (( "(") (identifier "pFVar4") (, ",") (string_literal ""%u"" (" """) (string_content "%u") (" """)) (, ",") (identifier "DAT_0007695c") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar3 = *(int *)(param_1[2] + 0x10);" (assignment_expression "iVar3 = *(int *)(param_1[2] + 0x10)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1[2] + 0x10)" (* "*") (cast_expression "(int *)(param_1[2] + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 0x10)" (( "(") (binary_expression "param_1[2] + 0x10" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "__ptr = *(char **)(param_1[2] + 0xc);" (assignment_expression "__ptr = *(char **)(param_1[2] + 0xc)" (identifier "__ptr") (= "=") (pointer_expression "*(char **)(param_1[2] + 0xc)" (* "*") (cast_expression "(char **)(param_1[2] + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1[2] + 0xc)" (( "(") (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (__ptr == (char *)0x0) {\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }\n  else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" (if "if") (parenthesized_expression "(__ptr == (char *)0x0)" (( "(") (binary_expression "__ptr == (char *)0x0" (identifier "__ptr") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = FUN_00037580();\n    if (iVar5 == 0) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar5 = FUN_00037580();" (assignment_expression "iVar5 = FUN_00037580()" (identifier "iVar5") (= "=") (call_expression "FUN_00037580()" (identifier "FUN_00037580") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" (else "else") (compound_statement "{\n    cVar6 = 'm';\n    if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }\n  }" ({ "{") (expression_statement "cVar6 = 'm';" (assignment_expression "cVar6 = 'm'" (identifier "cVar6") (= "=") (char_literal "'m'" (' "'") (character "m") (' "'"))) (; ";")) (if_statement "if (*__ptr != '\0') {\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }" (if "if") (parenthesized_expression "(*__ptr != '\0')" (( "(") (binary_expression "*__ptr != '\0'" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pFVar4 = (FILE *)FUN_00036d90();\n      goto joined_r0x00039de0;\n    }" ({ "{") (expression_statement "pFVar4 = (FILE *)FUN_00036d90();" (assignment_expression "pFVar4 = (FILE *)FUN_00036d90()" (identifier "pFVar4") (= "=") (cast_expression "(FILE *)FUN_00036d90()" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036d90()" (identifier "FUN_00036d90") (argument_list "()" (( "(") () ")"))))) (; ";")) (goto_statement "goto joined_r0x00039de0;" (goto "goto") (statement_identifier "joined_r0x00039de0") (; ";")) (} "}"))) (} "}")))) (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" (identifier "__ptr") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "cVar6 = 'f';" (assignment_expression "cVar6 = 'f'" (identifier "cVar6") (= "=") (char_literal "'f'" (' "'") (character "f") (' "'"))) (; ";")) (expression_statement "pFVar4 = (FILE *)FUN_00036d90();" (assignment_expression "pFVar4 = (FILE *)FUN_00036d90()" (identifier "pFVar4") (= "=") (cast_expression "(FILE *)FUN_00036d90()" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036d90()" (identifier "FUN_00036d90") (argument_list "()" (( "(") () ")"))))) (; ";")) (labeled_statement "joined_r0x00039de0:\n  if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }" (statement_identifier "joined_r0x00039de0") (: ":") (if_statement "if (pFVar4 == (FILE *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(pFVar4 == (FILE *)0x0)" (( "(") (binary_expression "pFVar4 == (FILE *)0x0" (identifier "pFVar4") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))) (expression_statement "fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);" (call_expression "fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4)" (identifier "fprintf") (argument_list "((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4)" (( "(") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (string_literal "";\"\tkind:%c\ttype:%s"" (" """) (string_content ";") (escape_sequence "\"") (escape_sequence "\t") (string_content "kind:%c") (escape_sequence "\t") (string_content "type:%s") (" """)) (, ",") (cast_expression "(int)cVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar6")) (, ",") (identifier "pFVar4") () ")"))) (; ";")) (if_statement "if (iVar3 != 0) {\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pFVar4 = (FILE *)*param_1;\n    fwrite("\tfile:",1,6,pFVar4);\n  }" ({ "{") (expression_statement "pFVar4 = (FILE *)*param_1;" (assignment_expression "pFVar4 = (FILE *)*param_1" (identifier "pFVar4") (= "=") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "fwrite("\tfile:",1,6,pFVar4);" (call_expression "fwrite("\tfile:",1,6,pFVar4)" (identifier "fwrite") (argument_list "("\tfile:",1,6,pFVar4)" (( "(") (string_literal ""\tfile:"" (" """) (escape_sequence "\t") (string_content "file:") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "6") (, ",") (identifier "pFVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "__stream = (FILE *)*param_1;" (assignment_expression "__stream = (FILE *)*param_1" (identifier "__stream") (= "=") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (__ptr != (char *)0x0) {\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }" (if "if") (parenthesized_expression "(__ptr != (char *)0x0)" (( "(") (binary_expression "__ptr != (char *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);\n    free(__ptr);\n    __stream = (FILE *)*param_1;\n  }" ({ "{") (expression_statement "fprintf(__stream,"\tclass:%s",__ptr,pFVar4);" (call_expression "fprintf(__stream,"\tclass:%s",__ptr,pFVar4)" (identifier "fprintf") (argument_list "(__stream,"\tclass:%s",__ptr,pFVar4)" (( "(") (identifier "__stream") (, ",") (string_literal ""\tclass:%s"" (" """) (escape_sequence "\t") (string_content "class:%s") (" """)) (, ",") (identifier "__ptr") (, ",") (identifier "pFVar4") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "__stream = (FILE *)*param_1;" (assignment_expression "__stream = (FILE *)*param_1" (identifier "__stream") (= "=") (cast_expression "(FILE *)*param_1" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}"))) (expression_statement "fputc(10,__stream);" (call_expression "fputc(10,__stream)" (identifier "fputc") (argument_list "(10,__stream)" (( "(") (number_literal "10") (, ",") (identifier "__stream") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(void *p,type_2 addr)

{
  type_3 *info;
  type_4 uVar1;
  type_4 uVar2;
  int var_13;
  type_2 var_15;
  type_5 *var_12;
  type_5 *__stream;
  type_1 var_10;
  char *var_8;
  char cVar7;
  char ab [22];
  
  if (*(int *)((int)p + 0xc) < 1) {
    return 1;
  }
  *(type_4 *)((int)p + 0xc) = 0;
                    /* WARNING: Load size is inaccurate */
  var_1(*p,"%s\t%s\t",*(type_4 *)(*(int *)((int)p + 8) + 0x14),*(type_4 *)((int)p + 0x10))
  ;
  var_2(*(void **)(*(int *)((int)p + 8) + 0x14));
  var_3(ab,"0x%llx",(type_4)addr,addr._4_4_);
                    /* WARNING: Load size is inaccurate */
  var_12 = *p;
  uVar1 = *(type_4 *)((int)p + 0x18);
  uVar2 = *(type_4 *)((int)p + 0x14);
  pc = var_4(ab,0,0x10);
  var_6 = 0;
  var_5(uVar2,find_address_in_section,uVar1);
  if (var_6 == 0) {
    var_7(&DAT_0004f51f,1,2,var_12);
  }
  else {
    var_1(var_12,"%u",line);
  }
  info = (type_3 *)((int)p + 8);
  var_13 = *(int *)(*(int *)((int)p + 8) + 0x10);
  var_8 = *(char **)(*(int *)((int)p + 8) + 0xc);
  if (var_8 == (char *)0x0) {
    var_10 = var_9(info,")");
    var_15 = pc;
    if (var_10 == 0) goto LAB_00039de6;
LAB_00039dd0:
    var_8 = (char *)0x0;
    cVar7 = 'f';
    var_12 = (type_5 *)var_11(info);
  }
  else {
    cVar7 = 'm';
    if (*var_8 == '\0') goto LAB_00039dd0;
    var_12 = (type_5 *)var_11(info);
  }
  var_15 = pc;
  if (var_12 != (type_5 *)0x0) {
                    /* WARNING: Load size is inaccurate */
    var_1(*p,";\"\tkind:%c\ttype:%s",(int)cVar7,var_12);
    if (var_13 != 0) {
                    /* WARNING: Load size is inaccurate */
      var_12 = *p;
      var_7("\tfile:",1,6,var_12);
    }
                    /* WARNING: Load size is inaccurate */
    __stream = *p;
    if (var_8 != (char *)0x0) {
      var_1(__stream,"\tclass:%s",var_8,var_12);
      var_2(var_8);
                    /* WARNING: Load size is inaccurate */
      __stream = *p;
    }
    var_14(10,__stream);
    return 1;
  }
LAB_00039de6:
  pc._4_4_ = (type_4)(var_15 >> 0x20);
  pc._0_4_ = (type_4)var_15;
  return 0;
}


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

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

undefined4 MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  int iVar3;
  FILE *pFVar4;
  FILE *__stream;
  int iVar5;
  char *__ptr;
  char cVar6;
  undefined8 uVar7;
  char local_32 [30];
  undefined4 uStack_14;
  
  uStack_14 = 0x39bfe;
  if ((int)param_1[3] < 1) {
    return 1;
  }
  param_1[3] = 0;
  fprintf((FILE *)*param_1,"%s\t%s\t",*(undefined4 *)(param_1[2] + 0x14),param_1[4]);
  free(*(void **)(param_1[2] + 0x14));
  sprintf(local_32,"0x%llx",param_2,param_3);
  pFVar4 = (FILE *)*param_1;
  uVar1 = param_1[6];
  uVar2 = param_1[5];
  uVar7 = bfd_scan_vma(local_32,0,0x10);
  DAT_0007696c = (undefined4)((ulonglong)uVar7 >> 0x20);
  DAT_00076968 = (undefined4)uVar7;
  DAT_00076958 = 0;
  bfd_map_over_sections(uVar2,FUN_00036cd0,uVar1);
  if (DAT_00076958 == 0) {
    fwrite(&DAT_0004f51f,1,2,pFVar4);
  }
  else {
    fprintf(pFVar4,"%u",DAT_0007695c);
  }
  iVar3 = *(int *)(param_1[2] + 0x10);
  __ptr = *(char **)(param_1[2] + 0xc);
  if (__ptr == (char *)0x0) {
    iVar5 = FUN_00037580();
    if (iVar5 == 0) {
      return 0;
    }
  }
  else {
    cVar6 = 'm';
    if (*__ptr != '\0') {
      pFVar4 = (FILE *)FUN_00036d90();
      goto joined_r0x00039de0;
    }
  }
  __ptr = (char *)0x0;
  cVar6 = 'f';
  pFVar4 = (FILE *)FUN_00036d90();
joined_r0x00039de0:
  if (pFVar4 == (FILE *)0x0) {
    return 0;
  }
  fprintf((FILE *)*param_1,";\"\tkind:%c\ttype:%s",(int)cVar6,pFVar4);
  if (iVar3 != 0) {
    pFVar4 = (FILE *)*param_1;
    fwrite("\tfile:",1,6,pFVar4);
  }
  __stream = (FILE *)*param_1;
  if (__ptr != (char *)0x0) {
    fprintf(__stream,"\tclass:%s",__ptr,pFVar4);
    free(__ptr);
    __stream = (FILE *)*param_1;
  }
  fputc(10,__stream);
  return 1;
}

