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

void core_get_text_space(bfd *cbfd)

{
  undefined4 uVar1;
  size_t __size;
  asection *paVar2;
  char *pcVar3;
  int iVar4;
  char *pcVar5;
  undefined4 extraout_ECX;
  
  paVar2 = core_text_sect;
  uVar1 = *(undefined4 *)((int)&core_text_sect->size + 4);
  __size = (size_t)core_text_sect->size;
  core_text_space = malloc(__size);
  pcVar3 = whoami;
  if (core_text_space == (void *)0x0) {
    pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,
                               extraout_ECX);
    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);
                    /* WARNING: Subroutine does not return */
    done(1);
  }
  iVar4 = bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1);
  if (iVar4 == 0) {
    bfd_perror("bfd_get_section_contents");
    free(core_text_space);
    core_text_space = (void *)0x0;
  }
  else if (core_text_space != (void *)0x0) {
    return;
  }
  pcVar3 = whoami;
  pcVar5 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);
  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3);
  return;
}



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

void FUN_00018ae0(undefined4 param_1)

{
  undefined4 uVar1;
  size_t __size;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  undefined4 extraout_ECX;
  
  iVar3 = DAT_0002e4fc;
  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);
  __size = *(size_t *)(DAT_0002e4fc + 0x2c);
  DAT_0002e4f0 = malloc(__size);
  uVar2 = DAT_0002e508;
  if (DAT_0002e4f0 == (void *)0x0) {
    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,
                               extraout_ECX);
    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);
                    /* WARNING: Subroutine does not return */
    FUN_0001adb0(1);
  }
  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);
  if (iVar3 == 0) {
    bfd_perror("bfd_get_section_contents");
    free(DAT_0002e4f0);
    DAT_0002e4f0 = (void *)0x0;
  }
  else if (DAT_0002e4f0 != (void *)0x0) {
    return;
  }
  uVar1 = DAT_0002e508;
  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);
  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x14517
SUB ESP,0x28
LEA EAX,[EBX + 0x14fc]
MOV EDX,dword ptr [EAX]
MOV EBP,dword ptr [EDX + 0x30]
MOV EDI,dword ptr [EDX + 0x2c]
MOV dword ptr [ESP + 0x18],EDX
MOV dword ptr [ESP + 0x10],EBP
MOV dword ptr [ESP + 0xc],EDI
PUSH EDI
CALL 0x00012260
LEA EBP,[EBX + 0x14f0]
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV dword ptr [EBP],EAX
JZ 0x00018bbf
SUB ESP,0x4
PUSH dword ptr [ESP + 0x8]
PUSH dword ptr [ESP + 0x8]
PUSH 0x0
PUSH 0x0
PUSH EAX
PUSH EDX
PUSH dword ptr [ESP + 0x4c]
CALL 0x00012110
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00018b60
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x00018b82
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffff5d07]
PUSH EAX
CALL 0x000123c0
POP EDX
PUSH dword ptr [EBP]
CALL 0x00012090
MOV dword ptr [EBP],0x0
ADD ESP,0x10
LEA EAX,[EBX + 0x1508]
SUB ESP,0x4
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xffff5d20]
PUSH 0x5
PUSH EAX
LEA EAX,[EBX + 0xffff500c]
PUSH EAX
CALL 0x00012120
ADD ESP,0xc
PUSH ESI
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffcc]
PUSH dword ptr [EAX]
CALL 0x00012310
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0x1508]
MOV EDI,dword ptr [EAX]
LEA EAX,[EBX + 0xffff5b50]
PUSH ECX
PUSH 0x5
PUSH EAX
LEA EAX,[EBX + 0xffff500c]
PUSH EAX
CALL 0x00012120
PUSH dword ptr [ESP + 0x10]
PUSH EDI
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffcc]
PUSH dword ptr [EAX]
CALL 0x00012310
ADD ESP,0x14
PUSH 0x1
CALL 0x0001adb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00018ae0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_00018ae0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00018ae0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (expression_statement "iVar3 = DAT_0002e4fc;" (assignment_expression "iVar3 = DAT_0002e4fc" identifier = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);" (assignment_expression "uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30)" identifier = (pointer_expression "*(undefined4 *)(DAT_0002e4fc + 0x30)" * (cast_expression "(undefined4 *)(DAT_0002e4fc + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002e4fc + 0x30)" ( (binary_expression "DAT_0002e4fc + 0x30" identifier + number_literal) ))))) ;) (expression_statement "__size = *(size_t *)(DAT_0002e4fc + 0x2c);" (assignment_expression "__size = *(size_t *)(DAT_0002e4fc + 0x2c)" identifier = (pointer_expression "*(size_t *)(DAT_0002e4fc + 0x2c)" * (cast_expression "(size_t *)(DAT_0002e4fc + 0x2c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002e4fc + 0x2c)" ( (binary_expression "DAT_0002e4fc + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "DAT_0002e4f0 = malloc(__size);" (assignment_expression "DAT_0002e4f0 = malloc(__size)" identifier = (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier )))) ;) (expression_statement "uVar2 = DAT_0002e508;" (assignment_expression "uVar2 = DAT_0002e508" identifier = identifier) ;) (if_statement "if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001adb0(1);\n  }" if (parenthesized_expression "(DAT_0002e4f0 == (void *)0x0)" ( (binary_expression "DAT_0002e4f0 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001adb0(1);\n  }" { (expression_statement "pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);" (assignment_expression "pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" identifier = (cast_expression "(char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" identifier (argument_list "("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" ( (string_literal ""gprof"" " string_content ") , (string_literal ""%s: ran out room for %lu bytes of text space\n"" " string_content escape_sequence ") , number_literal , identifier ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) comment (expression_statement "FUN_0001adb0(1);" (call_expression "FUN_0001adb0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);" (assignment_expression "iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" identifier = (call_expression "bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" identifier (argument_list "(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" ( identifier , identifier , identifier , number_literal , number_literal , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }" { (expression_statement "bfd_perror("bfd_get_section_contents");" (call_expression "bfd_perror("bfd_get_section_contents")" identifier (argument_list "("bfd_get_section_contents")" ( (string_literal ""bfd_get_section_contents"" " string_content ") ))) ;) (expression_statement "free(DAT_0002e4f0);" (call_expression "free(DAT_0002e4f0)" identifier (argument_list "(DAT_0002e4f0)" ( identifier ))) ;) (expression_statement "DAT_0002e4f0 = (void *)0x0;" (assignment_expression "DAT_0002e4f0 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" else (if_statement "if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(DAT_0002e4f0 != (void *)0x0)" ( (binary_expression "DAT_0002e4f0 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })))) (expression_statement "uVar1 = DAT_0002e508;" (assignment_expression "uVar1 = DAT_0002e508" identifier = identifier) ;) (expression_statement "pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);" (assignment_expression "pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5)" identifier = (cast_expression "(char *)dcgettext("gprof","%s: can\'t do -c\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof","%s: can\'t do -c\n",5)" identifier (argument_list "("gprof","%s: can\'t do -c\n",5)" ( (string_literal ""gprof"" " string_content ") , (string_literal ""%s: can\'t do -c\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid core_get_text_space(bfd *cbfd)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  asection *paVar2;\n  char *pcVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 extraout_ECX;\n  \n  paVar2 = core_text_sect;\n  uVar1 = *(undefined4 *)((int)&core_text_sect->size + 4);\n  __size = (size_t)core_text_sect->size;\n  core_text_space = malloc(__size);\n  pcVar3 = whoami;\n  if (core_text_space == (void *)0x0) {\n    pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  iVar4 = bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1);\n  if (iVar4 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(core_text_space);\n    core_text_space = (void *)0x0;\n  }\n  else if (core_text_space != (void *)0x0) {\n    return;\n  }\n  pcVar3 = whoami;\n  pcVar5 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3);\n  return;\n}\n\n" comment comment (function_definition "void core_get_text_space(bfd *cbfd)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  asection *paVar2;\n  char *pcVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 extraout_ECX;\n  \n  paVar2 = core_text_sect;\n  uVar1 = *(undefined4 *)((int)&core_text_sect->size + 4);\n  __size = (size_t)core_text_sect->size;\n  core_text_space = malloc(__size);\n  pcVar3 = whoami;\n  if (core_text_space == (void *)0x0) {\n    pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  iVar4 = bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1);\n  if (iVar4 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(core_text_space);\n    core_text_space = (void *)0x0;\n  }\n  else if (core_text_space != (void *)0x0) {\n    return;\n  }\n  pcVar3 = whoami;\n  pcVar5 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3);\n  return;\n}" primitive_type (function_declarator "core_get_text_space(bfd *cbfd)" identifier (parameter_list "(bfd *cbfd)" ( (parameter_declaration "bfd *cbfd" type_identifier (pointer_declarator "*cbfd" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  size_t __size;\n  asection *paVar2;\n  char *pcVar3;\n  int iVar4;\n  char *pcVar5;\n  undefined4 extraout_ECX;\n  \n  paVar2 = core_text_sect;\n  uVar1 = *(undefined4 *)((int)&core_text_sect->size + 4);\n  __size = (size_t)core_text_sect->size;\n  core_text_space = malloc(__size);\n  pcVar3 = whoami;\n  if (core_text_space == (void *)0x0) {\n    pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  iVar4 = bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1);\n  if (iVar4 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(core_text_space);\n    core_text_space = (void *)0x0;\n  }\n  else if (core_text_space != (void *)0x0) {\n    return;\n  }\n  pcVar3 = whoami;\n  pcVar5 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "asection *paVar2;" type_identifier (pointer_declarator "*paVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (expression_statement "paVar2 = core_text_sect;" (assignment_expression "paVar2 = core_text_sect" identifier = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)((int)&core_text_sect->size + 4);" (assignment_expression "uVar1 = *(undefined4 *)((int)&core_text_sect->size + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&core_text_sect->size + 4)" * (cast_expression "(undefined4 *)((int)&core_text_sect->size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&core_text_sect->size + 4)" ( (binary_expression "(int)&core_text_sect->size + 4" (cast_expression "(int)&core_text_sect->size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&core_text_sect->size" & (field_expression "core_text_sect->size" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "__size = (size_t)core_text_sect->size;" (assignment_expression "__size = (size_t)core_text_sect->size" identifier = (cast_expression "(size_t)core_text_sect->size" ( (type_descriptor "size_t" primitive_type) ) (field_expression "core_text_sect->size" identifier -> field_identifier))) ;) (expression_statement "core_text_space = malloc(__size);" (assignment_expression "core_text_space = malloc(__size)" identifier = (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier )))) ;) (expression_statement "pcVar3 = whoami;" (assignment_expression "pcVar3 = whoami" identifier = identifier) ;) (if_statement "if (core_text_space == (void *)0x0) {\n    pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }" if (parenthesized_expression "(core_text_space == (void *)0x0)" ( (binary_expression "core_text_space == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }" { (expression_statement "pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);" (assignment_expression "pcVar5 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" identifier = (cast_expression "(char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" identifier (argument_list "("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" ( (string_literal ""gprof"" " string_content ") , (string_literal ""%s: ran out room for %lu bytes of text space\n"" " string_content escape_sequence ") , number_literal , identifier ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) comment (expression_statement "done(1);" (call_expression "done(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar4 = bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1);" (assignment_expression "iVar4 = bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1)" identifier = (call_expression "bfd_get_section_contents(cbfd,paVar2,core_text_space,0,0,__size,uVar1)" identifier (argument_list "(cbfd,paVar2,core_text_space,0,0,__size,uVar1)" ( identifier , identifier , identifier , number_literal , number_literal , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(core_text_space);\n    core_text_space = (void *)0x0;\n  }\n  else if (core_text_space != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    bfd_perror("bfd_get_section_contents");\n    free(core_text_space);\n    core_text_space = (void *)0x0;\n  }" { (expression_statement "bfd_perror("bfd_get_section_contents");" (call_expression "bfd_perror("bfd_get_section_contents")" identifier (argument_list "("bfd_get_section_contents")" ( (string_literal ""bfd_get_section_contents"" " string_content ") ))) ;) (expression_statement "free(core_text_space);" (call_expression "free(core_text_space)" identifier (argument_list "(core_text_space)" ( identifier ))) ;) (expression_statement "core_text_space = (void *)0x0;" (assignment_expression "core_text_space = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (core_text_space != (void *)0x0) {\n    return;\n  }" else (if_statement "if (core_text_space != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(core_text_space != (void *)0x0)" ( (binary_expression "core_text_space != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })))) (expression_statement "pcVar3 = whoami;" (assignment_expression "pcVar3 = whoami" identifier = identifier) ;) (expression_statement "pcVar5 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);" (assignment_expression "pcVar5 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5)" identifier = (cast_expression "(char *)dcgettext("gprof","%s: can\'t do -c\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof","%s: can\'t do -c\n",5)" identifier (argument_list "("gprof","%s: can\'t do -c\n",5)" ( (string_literal ""gprof"" " string_content ") , (string_literal ""%s: can\'t do -c\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar5,pcVar3)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00018ae0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}\n\n" (function_definition "void FUN_00018ae0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}" primitive_type (function_declarator "FUN_00018ae0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "size_t __size;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (expression_statement "iVar3 = DAT_0002e4fc;" (assignment_expression "iVar3 = DAT_0002e4fc" identifier = identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);" (assignment_expression "uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30)" identifier = (pointer_expression "*(undefined4 *)(DAT_0002e4fc + 0x30)" * (cast_expression "(undefined4 *)(DAT_0002e4fc + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002e4fc + 0x30)" ( (binary_expression "DAT_0002e4fc + 0x30" identifier + number_literal) ))))) ;) (expression_statement "__size = *(size_t *)(DAT_0002e4fc + 0x2c);" (assignment_expression "__size = *(size_t *)(DAT_0002e4fc + 0x2c)" identifier = (pointer_expression "*(size_t *)(DAT_0002e4fc + 0x2c)" * (cast_expression "(size_t *)(DAT_0002e4fc + 0x2c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002e4fc + 0x2c)" ( (binary_expression "DAT_0002e4fc + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "DAT_0002e4f0 = malloc(__size);" (assignment_expression "DAT_0002e4f0 = malloc(__size)" identifier = (call_expression "malloc(__size)" identifier (argument_list "(__size)" ( identifier )))) ;) (expression_statement "uVar2 = DAT_0002e508;" (assignment_expression "uVar2 = DAT_0002e508" identifier = identifier) ;) (if_statement "if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }" if (parenthesized_expression "(DAT_0002e4f0 == (void *)0x0)" ( (binary_expression "DAT_0002e4f0 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }" { (expression_statement "pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);" (assignment_expression "pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" identifier = (cast_expression "(char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" identifier (argument_list "("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" ( (string_literal ""gprof"" " string_content ") , (string_literal ""%s: ran out room for %lu bytes of text space\n"" " string_content escape_sequence ") , number_literal , identifier ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001adb0(1);" (call_expression "FUN_0001adb0(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);" (assignment_expression "iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" identifier = (call_expression "bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" identifier (argument_list "(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" ( identifier , identifier , identifier , number_literal , number_literal , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }" { (expression_statement "bfd_perror("bfd_get_section_contents");" (call_expression "bfd_perror("bfd_get_section_contents")" identifier (argument_list "("bfd_get_section_contents")" ( (string_literal ""bfd_get_section_contents"" " string_content ") ))) ;) (expression_statement "free(DAT_0002e4f0);" (call_expression "free(DAT_0002e4f0)" identifier (argument_list "(DAT_0002e4f0)" ( identifier ))) ;) (expression_statement "DAT_0002e4f0 = (void *)0x0;" (assignment_expression "DAT_0002e4f0 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" else (if_statement "if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" if (parenthesized_expression "(DAT_0002e4f0 != (void *)0x0)" ( (binary_expression "DAT_0002e4f0 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })))) (expression_statement "uVar1 = DAT_0002e508;" (assignment_expression "uVar1 = DAT_0002e508" identifier = identifier) ;) (expression_statement "pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);" (assignment_expression "pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5)" identifier = (cast_expression "(char *)dcgettext("gprof","%s: can\'t do -c\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof","%s: can\'t do -c\n",5)" identifier (argument_list "("gprof","%s: can\'t do -c\n",5)" ( (string_literal ""gprof"" " string_content ") , (string_literal ""%s: can\'t do -c\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content escape_sequence ") , LIT , IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00018ae0(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00018ae0(undefined4 param_1)" (identifier "FUN_00018ae0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  size_t __size;\n  undefined4 uVar2;\n  int iVar3;\n  char *pcVar4;\n  undefined4 extraout_ECX;\n  \n  iVar3 = DAT_0002e4fc;\n  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);\n  __size = *(size_t *)(DAT_0002e4fc + 0x2c);\n  DAT_0002e4f0 = malloc(__size);\n  uVar2 = DAT_0002e508;\n  if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }\n  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);\n  if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }\n  uVar1 = DAT_0002e508;\n  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "size_t __size;" (primitive_type "size_t") (identifier "__size") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "undefined4 extraout_ECX;" (type_identifier "undefined4") (identifier "extraout_ECX") (; ";")) (expression_statement "iVar3 = DAT_0002e4fc;" (assignment_expression "iVar3 = DAT_0002e4fc" (identifier "iVar3") (= "=") (identifier "DAT_0002e4fc")) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);" (assignment_expression "uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(DAT_0002e4fc + 0x30)" (* "*") (cast_expression "(undefined4 *)(DAT_0002e4fc + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002e4fc + 0x30)" (( "(") (binary_expression "DAT_0002e4fc + 0x30" (identifier "DAT_0002e4fc") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "__size = *(size_t *)(DAT_0002e4fc + 0x2c);" (assignment_expression "__size = *(size_t *)(DAT_0002e4fc + 0x2c)" (identifier "__size") (= "=") (pointer_expression "*(size_t *)(DAT_0002e4fc + 0x2c)" (* "*") (cast_expression "(size_t *)(DAT_0002e4fc + 0x2c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002e4fc + 0x2c)" (( "(") (binary_expression "DAT_0002e4fc + 0x2c" (identifier "DAT_0002e4fc") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "DAT_0002e4f0 = malloc(__size);" (assignment_expression "DAT_0002e4f0 = malloc(__size)" (identifier "DAT_0002e4f0") (= "=") (call_expression "malloc(__size)" (identifier "malloc") (argument_list "(__size)" (( "(") (identifier "__size") () ")")))) (; ";")) (expression_statement "uVar2 = DAT_0002e508;" (assignment_expression "uVar2 = DAT_0002e508" (identifier "uVar2") (= "=") (identifier "DAT_0002e508")) (; ";")) (if_statement "if (DAT_0002e4f0 == (void *)0x0) {\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }" (if "if") (parenthesized_expression "(DAT_0002e4f0 == (void *)0x0)" (( "(") (binary_expression "DAT_0002e4f0 == (void *)0x0" (identifier "DAT_0002e4f0") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);\n    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);\n                    \n    FUN_0001adb0(1);\n  }" ({ "{") (expression_statement "pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX);" (assignment_expression "pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" (identifier "pcVar4") (= "=") (cast_expression "(char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" (identifier "dcgettext") (argument_list "("gprof","%s: ran out room for %lu bytes of text space\n",5,\n                               extraout_ECX)" (( "(") (string_literal ""gprof"" (" """) (string_content "gprof") (" """)) (, ",") (string_literal ""%s: ran out room for %lu bytes of text space\n"" (" """) (string_content "%s: ran out room for %lu bytes of text space") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") (, ",") (identifier "extraout_ECX") () ")"))))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" (* "*") (cast_expression "(FILE **)PTR_stderr_0002cfcc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0002cfcc"))) (, ",") (identifier "pcVar4") (, ",") (identifier "uVar2") (, ",") (identifier "__size") () ")"))) (; ";")) (expression_statement "FUN_0001adb0(1);" (call_expression "FUN_0001adb0(1)" (identifier "FUN_0001adb0") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);" (assignment_expression "iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" (identifier "iVar3") (= "=") (call_expression "bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" (identifier "bfd_get_section_contents") (argument_list "(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar3") (, ",") (identifier "DAT_0002e4f0") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "__size") (, ",") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }\n  else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bfd_perror("bfd_get_section_contents");\n    free(DAT_0002e4f0);\n    DAT_0002e4f0 = (void *)0x0;\n  }" ({ "{") (expression_statement "bfd_perror("bfd_get_section_contents");" (call_expression "bfd_perror("bfd_get_section_contents")" (identifier "bfd_perror") (argument_list "("bfd_get_section_contents")" (( "(") (string_literal ""bfd_get_section_contents"" (" """) (string_content "bfd_get_section_contents") (" """)) () ")"))) (; ";")) (expression_statement "free(DAT_0002e4f0);" (call_expression "free(DAT_0002e4f0)" (identifier "free") (argument_list "(DAT_0002e4f0)" (( "(") (identifier "DAT_0002e4f0") () ")"))) (; ";")) (expression_statement "DAT_0002e4f0 = (void *)0x0;" (assignment_expression "DAT_0002e4f0 = (void *)0x0" (identifier "DAT_0002e4f0") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" (else "else") (if_statement "if (DAT_0002e4f0 != (void *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_0002e4f0 != (void *)0x0)" (( "(") (binary_expression "DAT_0002e4f0 != (void *)0x0" (identifier "DAT_0002e4f0") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))))) (expression_statement "uVar1 = DAT_0002e508;" (assignment_expression "uVar1 = DAT_0002e508" (identifier "uVar1") (= "=") (identifier "DAT_0002e508")) (; ";")) (expression_statement "pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);" (assignment_expression "pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5)" (identifier "pcVar4") (= "=") (cast_expression "(char *)dcgettext("gprof","%s: can\'t do -c\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext("gprof","%s: can\'t do -c\n",5)" (identifier "dcgettext") (argument_list "("gprof","%s: can\'t do -c\n",5)" (( "(") (string_literal ""gprof"" (" """) (string_content "gprof") (" """)) (, ",") (string_literal ""%s: can\'t do -c\n"" (" """) (string_content "%s: can") (escape_sequence "\'") (string_content "t do -c") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" (* "*") (cast_expression "(FILE **)PTR_stderr_0002cfcc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0002cfcc"))) (, ",") (identifier "pcVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *cbfd)

{
  type_2 uVar1;
  size_t __size;
  type_3 *paVar2;
  char *pcVar3;
  int var_7;
  char *pcVar5;
  type_2 extraout_ECX;
  
  paVar2 = core_text_sect;
  uVar1 = *(type_2 *)((int)&core_text_sect->size + 4);
  __size = (size_t)core_text_sect->size;
  var_2 = var_1(__size);
  pcVar3 = whoami;
  if (var_2 == (void *)0x0) {
    pcVar5 = (char *)var_3("gprof","%s: ran out room for %lu bytes of text space\n",5,
                               extraout_ECX);
    var_4(*(type_4 **)PTR_stderr_0002cfcc,pcVar5,pcVar3,__size);
                    /* WARNING: Subroutine does not return */
    var_5(1);
  }
  var_7 = var_6(cbfd,paVar2,var_2,0,0,__size,uVar1);
  if (var_7 == 0) {
    var_8("bfd_get_section_contents");
    var_9(var_2);
    var_2 = (void *)0x0;
  }
  else if (var_2 != (void *)0x0) {
    return;
  }
  pcVar3 = whoami;
  pcVar5 = (char *)var_3("gprof","%s: can\'t do -c\n",5);
  var_4(*(type_4 **)PTR_stderr_0002cfcc,pcVar5,pcVar3);
  return;
}


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

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

void MASKED(undefined4 param_1)

{
  undefined4 uVar1;
  size_t __size;
  undefined4 uVar2;
  int iVar3;
  char *pcVar4;
  undefined4 extraout_ECX;
  
  iVar3 = DAT_0002e4fc;
  uVar1 = *(undefined4 *)(DAT_0002e4fc + 0x30);
  __size = *(size_t *)(DAT_0002e4fc + 0x2c);
  DAT_0002e4f0 = malloc(__size);
  uVar2 = DAT_0002e508;
  if (DAT_0002e4f0 == (void *)0x0) {
    pcVar4 = (char *)dcgettext("gprof","%s: ran out room for %lu bytes of text space\n",5,
                               extraout_ECX);
    fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar2,__size);
                    /* WARNING: Subroutine does not return */
    FUN_0001adb0(1);
  }
  iVar3 = bfd_get_section_contents(param_1,iVar3,DAT_0002e4f0,0,0,__size,uVar1);
  if (iVar3 == 0) {
    bfd_perror("bfd_get_section_contents");
    free(DAT_0002e4f0);
    DAT_0002e4f0 = (void *)0x0;
  }
  else if (DAT_0002e4f0 != (void *)0x0) {
    return;
  }
  uVar1 = DAT_0002e508;
  pcVar4 = (char *)dcgettext("gprof","%s: can\'t do -c\n",5);
  fprintf(*(FILE **)PTR_stderr_0002cfcc,pcVar4,uVar1);
  return;
}

