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

void core_init(char *aout_name)

{
  char *pcVar1;
  int iVar2;
  long lVar3;
  asymbol **ppaVar4;
  int iVar5;
  undefined4 uVar6;
  char *pcVar7;
  asymbol *synthsyms;
  undefined4 uStack_14;
  
  uStack_14 = 0x186b9;
  core_bfd = (bfd *)bfd_openr(aout_name,0);
  if (core_bfd == (bfd *)0x0) {
    perror(aout_name);
                    /* WARNING: Subroutine does not return */
    done(1);
  }
  iVar2 = bfd_check_format(core_bfd,1);
  if (iVar2 != 0) {
    core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");
    if (core_text_sect == (asection *)0x0) {
      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");
      if (core_text_sect == (asection *)0x0) {
        pcVar7 = "%s: can\'t find .text section in %s\n";
        core_text_sect = (asection *)0x0;
        goto LAB_000188db;
      }
    }
    lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);
    if (-1 < lVar3) {
      core_syms = (asymbol **)xmalloc(lVar3);
      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);
      if (-1 < core_num_syms) {
        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)
                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);
        if (0 < lVar3) {
          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);
          iVar2 = core_num_syms;
          core_num_syms = core_num_syms + lVar3;
          iVar5 = 0;
          core_syms = ppaVar4;
          do {
            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;
            iVar5 = iVar5 + 1;
          } while (lVar3 != iVar5);
          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;
        }
        min_insn_size = 1;
        offset_to_code = 0;
        iVar2 = bfd_get_arch(core_bfd);
        if (iVar2 == 3) {
          offset_to_code = 2;
        }
        else if (iVar2 == 0x20) {
          min_insn_size = 4;
        }
        if (function_mapping_file != (char *)0x0) {
          read_function_mappings(function_mapping_file);
        }
        return;
      }
    }
    uVar6 = bfd_get_error();
    uVar6 = bfd_errmsg(uVar6);
    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);
                    /* WARNING: Subroutine does not return */
    done(1);
  }
  pcVar7 = "%s: %s: not in executable format\n";
LAB_000188db:
  pcVar1 = whoami;
  pcVar7 = (char *)dcgettext("gprof",pcVar7,5,&whoami);
  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name);
                    /* WARNING: Subroutine does not return */
  done(1);
}



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

void FUN_000186b0(char *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x186b9;
  DAT_0002d478 = bfd_openr(param_1,0);
  if (DAT_0002d478 == 0) {
    perror(param_1);
                    /* WARNING: Subroutine does not return */
    FUN_0001a990(1);
  }
  iVar2 = bfd_check_format(DAT_0002d478,1);
  if (iVar2 != 0) {
    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");
    if (DAT_0002d488 == 0) {
      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");
      if (DAT_0002d488 == 0) {
        pcVar5 = "%s: can\'t find .text section in %s\n";
        DAT_0002d488 = 0;
        goto LAB_000188db;
      }
    }
    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);
    if (-1 < iVar2) {
      DAT_0002d124 = xmalloc(iVar2);
      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);
      if (-1 < DAT_0002d128) {
        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))
                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);
        if (0 < iVar2) {
          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);
          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;
          DAT_0002d128 = DAT_0002d128 + iVar2;
          iVar3 = 0;
          do {
            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;
            iVar3 = iVar3 + 1;
          } while (iVar2 != iVar3);
          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;
        }
        DAT_0002d120 = 1;
        DAT_0002d48c = 0;
        iVar2 = bfd_get_arch(DAT_0002d478);
        if (iVar2 == 3) {
          DAT_0002d48c = 2;
        }
        else if (iVar2 == 0x20) {
          DAT_0002d120 = 4;
        }
        if (DAT_0002d490 != 0) {
          FUN_00017f10();
        }
        return;
      }
    }
    uVar4 = bfd_get_error();
    uVar4 = bfd_errmsg(uVar4);
    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);
                    /* WARNING: Subroutine does not return */
    FUN_0001a990(1);
  }
  pcVar5 = "%s: %s: not in executable format\n";
LAB_000188db:
  uVar4 = DAT_0002d494;
  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);
  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);
                    /* WARNING: Subroutine does not return */
  FUN_0001a990(1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0x13947
SUB ESP,0x24
MOV EDI,dword ptr [ESP + 0x38]
PUSH 0x0
PUSH EDI
CALL 0x00012100
LEA ESI,[EBX + 0x1478]
ADD ESP,0x10
MOV dword ptr [ESI],EAX
TEST EAX,EAX
JZ 0x00018902
SUB ESP,0x8
PUSH 0x1
PUSH EAX
CALL 0x00012430
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000188ca
SUB ESP,0x8
LEA EAX,[EBX + 0xffff5cee]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00012220
LEA EBP,[EBX + 0x1488]
ADD ESP,0x10
MOV dword ptr [EBP],EAX
TEST EAX,EAX
JZ 0x00018860
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
MOV EDX,dword ptr [EAX + 0x4]
PUSH EAX
CALL dword ptr [EDX + 0x104]
ADD ESP,0x10
TEST EAX,EAX
JS 0x00018892
SUB ESP,0xc
PUSH EAX
CALL 0x000121d0
MOV EDX,dword ptr [ESI]
POP ECX
POP EBP
MOV dword ptr [EBX + 0x1124],EAX
MOV ECX,dword ptr [EDX + 0x4]
PUSH EAX
PUSH EDX
CALL dword ptr [ECX + 0x108]
MOV dword ptr [EBX + 0x1128],EAX
ADD ESP,0x10
TEST EAX,EAX
JS 0x00018892
SUB ESP,0x8
MOV EDX,dword ptr [ESI]
LEA EDI,[ESP + 0x14]
MOV ECX,dword ptr [EDX + 0x4]
PUSH EDI
PUSH 0x0
PUSH 0x0
PUSH dword ptr [EBX + 0x1124]
PUSH EAX
PUSH EDX
CALL dword ptr [ECX + 0x1b0]
MOV EDI,EAX
ADD ESP,0x20
TEST EAX,EAX
JG 0x000187f0
LEA EDI,[EBX + 0x148c]
SUB ESP,0xc
MOV dword ptr [EBX + 0x1120],0x1
MOV dword ptr [EDI],0x0
PUSH dword ptr [ESI]
CALL 0x000122f0
ADD ESP,0x10
CMP EAX,0x3
JZ 0x00018850
CMP EAX,0x20
JZ 0x000187e0
LEA EAX,[EBX + 0x1490]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000187cf
CALL 0x00017f10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [EBX + 0x1120],0x4
JMP 0x000187be
MOV EAX,dword ptr [EBX + 0x1128]
SUB ESP,0x8
ADD EAX,EDI
LEA EAX,[EAX*0x4 + 0x4]
PUSH EAX
PUSH dword ptr [EBX + 0x1124]
CALL 0x00012160
MOV EDX,dword ptr [EBX + 0x1128]
ADD ESP,0x10
MOV dword ptr [EBX + 0x1124],EAX
LEA ECX,[EAX + EDX*0x4]
ADD EDX,EDI
XOR EAX,EAX
MOV dword ptr [EBX + 0x1128],EDX
LEA ESI,[ESI]
MOV EDX,dword ptr [ESP + 0xc]
LEA EBP,[EAX + EAX*0x2]
LEA EDX,[EDX + EBP*0x8]
MOV dword ptr [ECX + EAX*0x4],EDX
ADD EAX,0x1
CMP EDI,EAX
JNZ 0x00018830
MOV dword ptr [ECX + EDI*0x4],0x0
JMP 0x0001878d
MOV dword ptr [EDI],0x2
JMP 0x000187be
SUB ESP,0x8
LEA EAX,[EBX + 0xffff5cf4]
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00012220
ADD ESP,0x10
MOV dword ptr [EBP],EAX
TEST EAX,EAX
JNZ 0x0001871c
LEA EAX,[EBX + 0x1494]
MOV ESI,dword ptr [EAX]
PUSH EAX
LEA EAX,[EBX + 0xffff5b2c]
PUSH 0x5
JMP 0x000188db
CALL 0x00012190
SUB ESP,0xc
PUSH EAX
CALL 0x00012410
MOV dword ptr [ESP],EAX
LEA EAX,[EBX + 0x1494]
PUSH EDI
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xffff5cfb]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffcc]
PUSH dword ptr [EAX]
CALL 0x00012310
ADD ESP,0x14
PUSH 0x1
CALL 0x0001a990
LEA EAX,[EBX + 0x1494]
MOV ESI,dword ptr [EAX]
PUSH EAX
LEA EAX,[EBX + 0xffff5b08]
PUSH 0x5
PUSH EAX
LEA EAX,[EBX + 0xffff500c]
PUSH EAX
CALL 0x00012120
PUSH EDI
PUSH ESI
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffcc]
PUSH dword ptr [EAX]
CALL 0x00012310
ADD ESP,0x14
PUSH 0x1
CALL 0x0001a990
SUB ESP,0xc
PUSH EDI
CALL 0x000121b0
MOV dword ptr [ESP],0x1
CALL 0x0001a990
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000186b0(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    /* WARNING: Subroutine does not return */\n  FUN_0001a990(1);\n}\n\n" comment (function_definition "void FUN_000186b0(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    /* WARNING: Subroutine does not return */\n  FUN_0001a990(1);\n}" primitive_type (function_declarator "FUN_000186b0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    /* WARNING: Subroutine does not return */\n  FUN_0001a990(1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x186b9;" (assignment_expression "uStack_14 = 0x186b9" identifier = number_literal) ;) (expression_statement "DAT_0002d478 = bfd_openr(param_1,0);" (assignment_expression "DAT_0002d478 = bfd_openr(param_1,0)" identifier = (call_expression "bfd_openr(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }" if (parenthesized_expression "(DAT_0002d478 == 0)" ( (binary_expression "DAT_0002d478 == 0" identifier == number_literal) )) (compound_statement "{\n    perror(param_1);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }" { (expression_statement "perror(param_1);" (call_expression "perror(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) comment (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar2 = bfd_check_format(DAT_0002d478,1);" (assignment_expression "iVar2 = bfd_check_format(DAT_0002d478,1)" identifier = (call_expression "bfd_check_format(DAT_0002d478,1)" identifier (argument_list "(DAT_0002d478,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    /* WARNING: Subroutine does not return */\n    FUN_0001a990(1);\n  }" { (expression_statement "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");" (assignment_expression "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text")" identifier = (call_expression "bfd_get_section_by_name(DAT_0002d478,".text")" identifier (argument_list "(DAT_0002d478,".text")" ( identifier , (string_literal "".text"" " string_content ") )))) ;) (if_statement "if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }" if (parenthesized_expression "(DAT_0002d488 == 0)" ( (binary_expression "DAT_0002d488 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }" { (expression_statement "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");" (assignment_expression "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$")" identifier = (call_expression "bfd_get_section_by_name(DAT_0002d478,"$CODE$")" identifier (argument_list "(DAT_0002d478,"$CODE$")" ( identifier , (string_literal ""$CODE$"" " string_content ") )))) ;) (if_statement "if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }" if (parenthesized_expression "(DAT_0002d488 == 0)" ( (binary_expression "DAT_0002d488 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }" { (expression_statement "pcVar5 = "%s: can\'t find .text section in %s\n";" (assignment_expression "pcVar5 = "%s: can\'t find .text section in %s\n"" identifier = (string_literal ""%s: can\'t find .text section in %s\n"" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "DAT_0002d488 = 0;" (assignment_expression "DAT_0002d488 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000188db;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);" (assignment_expression "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x104)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x104" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(DAT_0002d478)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }" { (expression_statement "DAT_0002d124 = xmalloc(iVar2);" (assignment_expression "DAT_0002d124 = xmalloc(iVar2)" identifier = (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);" (assignment_expression "DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x108)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x108" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(DAT_0002d478,DAT_0002d124)" ( identifier , identifier )))) ;) (if_statement "if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }" if (parenthesized_expression "(-1 < DAT_0002d128)" ( (binary_expression "-1 < DAT_0002d128" number_literal < identifier) )) (compound_statement "{\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }" { (expression_statement "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);" (assignment_expression "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x1b0)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x1b0" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" ( identifier , identifier , identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }" { (expression_statement "DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);" (assignment_expression "DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" identifier = (call_expression "xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" identifier (argument_list "(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" ( identifier , (binary_expression "(DAT_0002d128 + iVar2) * 4 + 4" (binary_expression "(DAT_0002d128 + iVar2) * 4" (parenthesized_expression "(DAT_0002d128 + iVar2)" ( (binary_expression "DAT_0002d128 + iVar2" identifier + identifier) )) * number_literal) + number_literal) )))) ;) (expression_statement "iVar1 = DAT_0002d124 + DAT_0002d128 * 4;" (assignment_expression "iVar1 = DAT_0002d124 + DAT_0002d128 * 4" identifier = (binary_expression "DAT_0002d124 + DAT_0002d128 * 4" identifier + (binary_expression "DAT_0002d128 * 4" identifier * number_literal))) ;) (expression_statement "DAT_0002d128 = DAT_0002d128 + iVar2;" (assignment_expression "DAT_0002d128 = DAT_0002d128 + iVar2" identifier = (binary_expression "DAT_0002d128 + iVar2" identifier + identifier)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);" do (compound_statement "{\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          }" { (expression_statement "*(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;" (assignment_expression "*(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18" (pointer_expression "*(int *)(iVar1 + iVar3 * 4)" * (cast_expression "(int *)(iVar1 + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3 * 4)" ( (binary_expression "iVar1 + iVar3 * 4" identifier + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = (binary_expression "local_20[0] + iVar3 * 0x18" (subscript_expression "local_20[0]" identifier [ number_literal ]) + (binary_expression "iVar3 * 0x18" identifier * number_literal))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar2 * 4)" * (cast_expression "(undefined4 *)(iVar1 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "DAT_0002d120 = 1;" (assignment_expression "DAT_0002d120 = 1" identifier = number_literal) ;) (expression_statement "DAT_0002d48c = 0;" (assignment_expression "DAT_0002d48c = 0" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_get_arch(DAT_0002d478);" (assignment_expression "iVar2 = bfd_get_arch(DAT_0002d478)" identifier = (call_expression "bfd_get_arch(DAT_0002d478)" identifier (argument_list "(DAT_0002d478)" ( identifier )))) ;) (if_statement "if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" if (parenthesized_expression "(iVar2 == 3)" ( (binary_expression "iVar2 == 3" identifier == number_literal) )) (compound_statement "{\n          DAT_0002d48c = 2;\n        }" { (expression_statement "DAT_0002d48c = 2;" (assignment_expression "DAT_0002d48c = 2" identifier = number_literal) ;) }) (else_clause "else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" else (if_statement "if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" if (parenthesized_expression "(iVar2 == 0x20)" ( (binary_expression "iVar2 == 0x20" identifier == number_literal) )) (compound_statement "{\n          DAT_0002d120 = 4;\n        }" { (expression_statement "DAT_0002d120 = 4;" (assignment_expression "DAT_0002d120 = 4" identifier = number_literal) ;) })))) (if_statement "if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }" if (parenthesized_expression "(DAT_0002d490 != 0)" ( (binary_expression "DAT_0002d490 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_00017f10();\n        }" { (expression_statement "FUN_00017f10();" (call_expression "FUN_00017f10()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })) })) (expression_statement "uVar4 = bfd_get_error();" (assignment_expression "uVar4 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = bfd_errmsg(uVar4);" (assignment_expression "uVar4 = bfd_errmsg(uVar4)" identifier = (call_expression "bfd_errmsg(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" * (cast_expression "(FILE **)PTR_stderr_0002bfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s: %s: %s\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) comment (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "pcVar5 = "%s: %s: not in executable format\n";" (assignment_expression "pcVar5 = "%s: %s: not in executable format\n"" identifier = (string_literal ""%s: %s: not in executable format\n"" " string_content escape_sequence ")) ;) (labeled_statement "LAB_000188db:\n  uVar4 = DAT_0002d494;" statement_identifier : (expression_statement "uVar4 = DAT_0002d494;" (assignment_expression "uVar4 = DAT_0002d494" identifier = identifier) ;)) (expression_statement "pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);" (assignment_expression "pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494)" identifier = (cast_expression "(char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof",pcVar5,5,&DAT_0002d494)" identifier (argument_list "("gprof",pcVar5,5,&DAT_0002d494)" ( (string_literal ""gprof"" " string_content ") , identifier , number_literal , (pointer_expression "&DAT_0002d494" & identifier) ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1)" identifier (argument_list "(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1)" ( (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" * (cast_expression "(FILE **)PTR_stderr_0002bfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) comment (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid core_init(char *aout_name)\n\n{\n  char *pcVar1;\n  int iVar2;\n  long lVar3;\n  asymbol **ppaVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  asymbol *synthsyms;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  core_bfd = (bfd *)bfd_openr(aout_name,0);\n  if (core_bfd == (bfd *)0x0) {\n    perror(aout_name);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  iVar2 = bfd_check_format(core_bfd,1);\n  if (iVar2 != 0) {\n    core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");\n    if (core_text_sect == (asection *)0x0) {\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }\n    lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);\n    if (-1 < lVar3) {\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }\n    uVar6 = bfd_get_error();\n    uVar6 = bfd_errmsg(uVar6);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  pcVar7 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  pcVar1 = whoami;\n  pcVar7 = (char *)dcgettext("gprof",pcVar7,5,&whoami);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name);\n                    /* WARNING: Subroutine does not return */\n  done(1);\n}\n\n" comment comment (function_definition "void core_init(char *aout_name)\n\n{\n  char *pcVar1;\n  int iVar2;\n  long lVar3;\n  asymbol **ppaVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  asymbol *synthsyms;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  core_bfd = (bfd *)bfd_openr(aout_name,0);\n  if (core_bfd == (bfd *)0x0) {\n    perror(aout_name);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  iVar2 = bfd_check_format(core_bfd,1);\n  if (iVar2 != 0) {\n    core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");\n    if (core_text_sect == (asection *)0x0) {\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }\n    lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);\n    if (-1 < lVar3) {\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }\n    uVar6 = bfd_get_error();\n    uVar6 = bfd_errmsg(uVar6);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  pcVar7 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  pcVar1 = whoami;\n  pcVar7 = (char *)dcgettext("gprof",pcVar7,5,&whoami);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name);\n                    /* WARNING: Subroutine does not return */\n  done(1);\n}" primitive_type (function_declarator "core_init(char *aout_name)" identifier (parameter_list "(char *aout_name)" ( (parameter_declaration "char *aout_name" primitive_type (pointer_declarator "*aout_name" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  long lVar3;\n  asymbol **ppaVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  asymbol *synthsyms;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  core_bfd = (bfd *)bfd_openr(aout_name,0);\n  if (core_bfd == (bfd *)0x0) {\n    perror(aout_name);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  iVar2 = bfd_check_format(core_bfd,1);\n  if (iVar2 != 0) {\n    core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");\n    if (core_text_sect == (asection *)0x0) {\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }\n    lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);\n    if (-1 < lVar3) {\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }\n    uVar6 = bfd_get_error();\n    uVar6 = bfd_errmsg(uVar6);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }\n  pcVar7 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  pcVar1 = whoami;\n  pcVar7 = (char *)dcgettext("gprof",pcVar7,5,&whoami);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name);\n                    /* WARNING: Subroutine does not return */\n  done(1);\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "asymbol **ppaVar4;" type_identifier (pointer_declarator "**ppaVar4" * (pointer_declarator "*ppaVar4" * identifier)) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "asymbol *synthsyms;" type_identifier (pointer_declarator "*synthsyms" * identifier) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x186b9;" (assignment_expression "uStack_14 = 0x186b9" identifier = number_literal) ;) (expression_statement "core_bfd = (bfd *)bfd_openr(aout_name,0);" (assignment_expression "core_bfd = (bfd *)bfd_openr(aout_name,0)" identifier = (cast_expression "(bfd *)bfd_openr(aout_name,0)" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_openr(aout_name,0)" identifier (argument_list "(aout_name,0)" ( identifier , number_literal ))))) ;) (if_statement "if (core_bfd == (bfd *)0x0) {\n    perror(aout_name);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }" if (parenthesized_expression "(core_bfd == (bfd *)0x0)" ( (binary_expression "core_bfd == (bfd *)0x0" identifier == (cast_expression "(bfd *)0x0" ( (type_descriptor "bfd *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    perror(aout_name);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }" { (expression_statement "perror(aout_name);" (call_expression "perror(aout_name)" identifier (argument_list "(aout_name)" ( identifier ))) ;) comment (expression_statement "done(1);" (call_expression "done(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar2 = bfd_check_format(core_bfd,1);" (assignment_expression "iVar2 = bfd_check_format(core_bfd,1)" identifier = (call_expression "bfd_check_format(core_bfd,1)" identifier (argument_list "(core_bfd,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");\n    if (core_text_sect == (asection *)0x0) {\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }\n    lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);\n    if (-1 < lVar3) {\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }\n    uVar6 = bfd_get_error();\n    uVar6 = bfd_errmsg(uVar6);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");\n    if (core_text_sect == (asection *)0x0) {\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }\n    lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);\n    if (-1 < lVar3) {\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }\n    uVar6 = bfd_get_error();\n    uVar6 = bfd_errmsg(uVar6);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);\n                    /* WARNING: Subroutine does not return */\n    done(1);\n  }" { (expression_statement "core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text");" (assignment_expression "core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,".text")" identifier = (cast_expression "(asection *)bfd_get_section_by_name(core_bfd,".text")" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_get_section_by_name(core_bfd,".text")" identifier (argument_list "(core_bfd,".text")" ( identifier , (string_literal "".text"" " string_content ") ))))) ;) (if_statement "if (core_text_sect == (asection *)0x0) {\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }" if (parenthesized_expression "(core_text_sect == (asection *)0x0)" ( (binary_expression "core_text_sect == (asection *)0x0" identifier == (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");\n      if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }\n    }" { (expression_statement "core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$");" (assignment_expression "core_text_sect = (asection *)bfd_get_section_by_name(core_bfd,"$CODE$")" identifier = (cast_expression "(asection *)bfd_get_section_by_name(core_bfd,"$CODE$")" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_get_section_by_name(core_bfd,"$CODE$")" identifier (argument_list "(core_bfd,"$CODE$")" ( identifier , (string_literal ""$CODE$"" " string_content ") ))))) ;) (if_statement "if (core_text_sect == (asection *)0x0) {\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }" if (parenthesized_expression "(core_text_sect == (asection *)0x0)" ( (binary_expression "core_text_sect == (asection *)0x0" identifier == (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar7 = "%s: can\'t find .text section in %s\n";\n        core_text_sect = (asection *)0x0;\n        goto LAB_000188db;\n      }" { (expression_statement "pcVar7 = "%s: can\'t find .text section in %s\n";" (assignment_expression "pcVar7 = "%s: can\'t find .text section in %s\n"" identifier = (string_literal ""%s: can\'t find .text section in %s\n"" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "core_text_sect = (asection *)0x0;" (assignment_expression "core_text_sect = (asection *)0x0" identifier = (cast_expression "(asection *)0x0" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_000188db;" goto statement_identifier ;) })) })) (expression_statement "lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd);" (assignment_expression "lVar3 = (*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd)" identifier = (call_expression "(*core_bfd->xvec->_bfd_get_symtab_upper_bound)(core_bfd)" (parenthesized_expression "(*core_bfd->xvec->_bfd_get_symtab_upper_bound)" ( (pointer_expression "*core_bfd->xvec->_bfd_get_symtab_upper_bound" * (field_expression "core_bfd->xvec->_bfd_get_symtab_upper_bound" (field_expression "core_bfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(core_bfd)" ( identifier )))) ;) (if_statement "if (-1 < lVar3) {\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }" if (parenthesized_expression "(-1 < lVar3)" ( (binary_expression "-1 < lVar3" number_literal < identifier) )) (compound_statement "{\n      core_syms = (asymbol **)xmalloc(lVar3);\n      core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);\n      if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }\n    }" { (expression_statement "core_syms = (asymbol **)xmalloc(lVar3);" (assignment_expression "core_syms = (asymbol **)xmalloc(lVar3)" identifier = (cast_expression "(asymbol **)xmalloc(lVar3)" ( (type_descriptor "asymbol **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(lVar3)" identifier (argument_list "(lVar3)" ( identifier ))))) ;) (expression_statement "core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms);" (assignment_expression "core_num_syms = (*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms)" identifier = (call_expression "(*core_bfd->xvec->_bfd_canonicalize_symtab)(core_bfd,core_syms)" (parenthesized_expression "(*core_bfd->xvec->_bfd_canonicalize_symtab)" ( (pointer_expression "*core_bfd->xvec->_bfd_canonicalize_symtab" * (field_expression "core_bfd->xvec->_bfd_canonicalize_symtab" (field_expression "core_bfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(core_bfd,core_syms)" ( identifier , identifier )))) ;) (if_statement "if (-1 < core_num_syms) {\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }" if (parenthesized_expression "(-1 < core_num_syms)" ( (binary_expression "-1 < core_num_syms" number_literal < identifier) )) (compound_statement "{\n        lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);\n        if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }\n        min_insn_size = 1;\n        offset_to_code = 0;\n        iVar2 = bfd_get_arch(core_bfd);\n        if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }\n        if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }\n        return;\n      }" { (expression_statement "lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms);" (assignment_expression "lVar3 = (*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms)" identifier = (call_expression "(*core_bfd->xvec->_bfd_get_synthetic_symtab)\n                          (core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms)" (parenthesized_expression "(*core_bfd->xvec->_bfd_get_synthetic_symtab)" ( (pointer_expression "*core_bfd->xvec->_bfd_get_synthetic_symtab" * (field_expression "core_bfd->xvec->_bfd_get_synthetic_symtab" (field_expression "core_bfd->xvec" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(core_bfd,core_num_syms,core_syms,0,(bfd_symbol **)0x0,&synthsyms)" ( identifier , identifier , identifier , number_literal , (cast_expression "(bfd_symbol **)0x0" ( (type_descriptor "bfd_symbol **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (pointer_expression "&synthsyms" & identifier) )))) ;) (if_statement "if (0 < lVar3) {\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }" if (parenthesized_expression "(0 < lVar3)" ( (binary_expression "0 < lVar3" number_literal < identifier) )) (compound_statement "{\n          ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);\n          iVar2 = core_num_syms;\n          core_num_syms = core_num_syms + lVar3;\n          iVar5 = 0;\n          core_syms = ppaVar4;\n          do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);\n          ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;\n        }" { (expression_statement "ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4);" (assignment_expression "ppaVar4 = (asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4)" identifier = (cast_expression "(asymbol **)xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4)" ( (type_descriptor "asymbol **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xrealloc(core_syms,(core_num_syms + lVar3) * 4 + 4)" identifier (argument_list "(core_syms,(core_num_syms + lVar3) * 4 + 4)" ( identifier , (binary_expression "(core_num_syms + lVar3) * 4 + 4" (binary_expression "(core_num_syms + lVar3) * 4" (parenthesized_expression "(core_num_syms + lVar3)" ( (binary_expression "core_num_syms + lVar3" identifier + identifier) )) * number_literal) + number_literal) ))))) ;) (expression_statement "iVar2 = core_num_syms;" (assignment_expression "iVar2 = core_num_syms" identifier = identifier) ;) (expression_statement "core_num_syms = core_num_syms + lVar3;" (assignment_expression "core_num_syms = core_num_syms + lVar3" identifier = (binary_expression "core_num_syms + lVar3" identifier + identifier)) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "core_syms = ppaVar4;" (assignment_expression "core_syms = ppaVar4" identifier = identifier) ;) (do_statement "do {\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          } while (lVar3 != iVar5);" do (compound_statement "{\n            ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;\n            iVar5 = iVar5 + 1;\n          }" { (expression_statement "ppaVar4[iVar2 + iVar5] = synthsyms + iVar5;" (assignment_expression "ppaVar4[iVar2 + iVar5] = synthsyms + iVar5" (subscript_expression "ppaVar4[iVar2 + iVar5]" identifier [ (binary_expression "iVar2 + iVar5" identifier + identifier) ]) = (binary_expression "synthsyms + iVar5" identifier + identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar3 != iVar5)" ( (binary_expression "lVar3 != iVar5" identifier != identifier) )) ;) (expression_statement "ppaVar4[iVar2 + lVar3] = (asymbol *)0x0;" (assignment_expression "ppaVar4[iVar2 + lVar3] = (asymbol *)0x0" (subscript_expression "ppaVar4[iVar2 + lVar3]" identifier [ (binary_expression "iVar2 + lVar3" identifier + identifier) ]) = (cast_expression "(asymbol *)0x0" ( (type_descriptor "asymbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "min_insn_size = 1;" (assignment_expression "min_insn_size = 1" identifier = number_literal) ;) (expression_statement "offset_to_code = 0;" (assignment_expression "offset_to_code = 0" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_get_arch(core_bfd);" (assignment_expression "iVar2 = bfd_get_arch(core_bfd)" identifier = (call_expression "bfd_get_arch(core_bfd)" identifier (argument_list "(core_bfd)" ( identifier )))) ;) (if_statement "if (iVar2 == 3) {\n          offset_to_code = 2;\n        }\n        else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }" if (parenthesized_expression "(iVar2 == 3)" ( (binary_expression "iVar2 == 3" identifier == number_literal) )) (compound_statement "{\n          offset_to_code = 2;\n        }" { (expression_statement "offset_to_code = 2;" (assignment_expression "offset_to_code = 2" identifier = number_literal) ;) }) (else_clause "else if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }" else (if_statement "if (iVar2 == 0x20) {\n          min_insn_size = 4;\n        }" if (parenthesized_expression "(iVar2 == 0x20)" ( (binary_expression "iVar2 == 0x20" identifier == number_literal) )) (compound_statement "{\n          min_insn_size = 4;\n        }" { (expression_statement "min_insn_size = 4;" (assignment_expression "min_insn_size = 4" identifier = number_literal) ;) })))) (if_statement "if (function_mapping_file != (char *)0x0) {\n          read_function_mappings(function_mapping_file);\n        }" if (parenthesized_expression "(function_mapping_file != (char *)0x0)" ( (binary_expression "function_mapping_file != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          read_function_mappings(function_mapping_file);\n        }" { (expression_statement "read_function_mappings(function_mapping_file);" (call_expression "read_function_mappings(function_mapping_file)" identifier (argument_list "(function_mapping_file)" ( identifier ))) ;) })) (return_statement "return;" return ;) })) })) (expression_statement "uVar6 = bfd_get_error();" (assignment_expression "uVar6 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar6 = bfd_errmsg(uVar6);" (assignment_expression "uVar6 = bfd_errmsg(uVar6)" identifier = (call_expression "bfd_errmsg(uVar6)" identifier (argument_list "(uVar6)" ( identifier )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6)" identifier (argument_list "(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6)" ( (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" * (cast_expression "(FILE **)PTR_stderr_0002bfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s: %s: %s\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) comment (expression_statement "done(1);" (call_expression "done(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "pcVar7 = "%s: %s: not in executable format\n";" (assignment_expression "pcVar7 = "%s: %s: not in executable format\n"" identifier = (string_literal ""%s: %s: not in executable format\n"" " string_content escape_sequence ")) ;) (labeled_statement "LAB_000188db:\n  pcVar1 = whoami;" statement_identifier : (expression_statement "pcVar1 = whoami;" (assignment_expression "pcVar1 = whoami" identifier = identifier) ;)) (expression_statement "pcVar7 = (char *)dcgettext("gprof",pcVar7,5,&whoami);" (assignment_expression "pcVar7 = (char *)dcgettext("gprof",pcVar7,5,&whoami)" identifier = (cast_expression "(char *)dcgettext("gprof",pcVar7,5,&whoami)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof",pcVar7,5,&whoami)" identifier (argument_list "("gprof",pcVar7,5,&whoami)" ( (string_literal ""gprof"" " string_content ") , identifier , number_literal , (pointer_expression "&whoami" & identifier) ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name)" identifier (argument_list "(*(FILE **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name)" ( (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" * (cast_expression "(FILE **)PTR_stderr_0002bfcc" ( (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 ))) ;) })))
(translation_unit "void FUN_000186b0(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    \n  FUN_0001a990(1);\n}\n\n" (function_definition "void FUN_000186b0(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    \n  FUN_0001a990(1);\n}" primitive_type (function_declarator "FUN_000186b0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    \n  FUN_0001a990(1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x186b9;" (assignment_expression "uStack_14 = 0x186b9" identifier = number_literal) ;) (expression_statement "DAT_0002d478 = bfd_openr(param_1,0);" (assignment_expression "DAT_0002d478 = bfd_openr(param_1,0)" identifier = (call_expression "bfd_openr(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }" if (parenthesized_expression "(DAT_0002d478 == 0)" ( (binary_expression "DAT_0002d478 == 0" identifier == number_literal) )) (compound_statement "{\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }" { (expression_statement "perror(param_1);" (call_expression "perror(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "iVar2 = bfd_check_format(DAT_0002d478,1);" (assignment_expression "iVar2 = bfd_check_format(DAT_0002d478,1)" identifier = (call_expression "bfd_check_format(DAT_0002d478,1)" identifier (argument_list "(DAT_0002d478,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }" { (expression_statement "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");" (assignment_expression "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text")" identifier = (call_expression "bfd_get_section_by_name(DAT_0002d478,".text")" identifier (argument_list "(DAT_0002d478,".text")" ( identifier , (string_literal "".text"" " string_content ") )))) ;) (if_statement "if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }" if (parenthesized_expression "(DAT_0002d488 == 0)" ( (binary_expression "DAT_0002d488 == 0" identifier == number_literal) )) (compound_statement "{\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }" { (expression_statement "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");" (assignment_expression "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$")" identifier = (call_expression "bfd_get_section_by_name(DAT_0002d478,"$CODE$")" identifier (argument_list "(DAT_0002d478,"$CODE$")" ( identifier , (string_literal ""$CODE$"" " string_content ") )))) ;) (if_statement "if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }" if (parenthesized_expression "(DAT_0002d488 == 0)" ( (binary_expression "DAT_0002d488 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }" { (expression_statement "pcVar5 = "%s: can\'t find .text section in %s\n";" (assignment_expression "pcVar5 = "%s: can\'t find .text section in %s\n"" identifier = (string_literal ""%s: can\'t find .text section in %s\n"" " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement "DAT_0002d488 = 0;" (assignment_expression "DAT_0002d488 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000188db;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);" (assignment_expression "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x104)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x104" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(DAT_0002d478)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }" { (expression_statement "DAT_0002d124 = xmalloc(iVar2);" (assignment_expression "DAT_0002d124 = xmalloc(iVar2)" identifier = (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);" (assignment_expression "DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x108)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x108" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(DAT_0002d478,DAT_0002d124)" ( identifier , identifier )))) ;) (if_statement "if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }" if (parenthesized_expression "(-1 < DAT_0002d128)" ( (binary_expression "-1 < DAT_0002d128" number_literal < identifier) )) (compound_statement "{\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }" { (expression_statement "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);" (assignment_expression "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" identifier = (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))" ( (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" * (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" * (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x1b0)" ( (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x1b0" (pointer_expression "*(int *)(DAT_0002d478 + 4)" * (cast_expression "(int *)(DAT_0002d478 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0002d478 + 4)" ( (binary_expression "DAT_0002d478 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" ( identifier , identifier , identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }" { (expression_statement "DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);" (assignment_expression "DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" identifier = (call_expression "xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" identifier (argument_list "(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" ( identifier , (binary_expression "(DAT_0002d128 + iVar2) * 4 + 4" (binary_expression "(DAT_0002d128 + iVar2) * 4" (parenthesized_expression "(DAT_0002d128 + iVar2)" ( (binary_expression "DAT_0002d128 + iVar2" identifier + identifier) )) * number_literal) + number_literal) )))) ;) (expression_statement "iVar1 = DAT_0002d124 + DAT_0002d128 * 4;" (assignment_expression "iVar1 = DAT_0002d124 + DAT_0002d128 * 4" identifier = (binary_expression "DAT_0002d124 + DAT_0002d128 * 4" identifier + (binary_expression "DAT_0002d128 * 4" identifier * number_literal))) ;) (expression_statement "DAT_0002d128 = DAT_0002d128 + iVar2;" (assignment_expression "DAT_0002d128 = DAT_0002d128 + iVar2" identifier = (binary_expression "DAT_0002d128 + iVar2" identifier + identifier)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);" do (compound_statement "{\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          }" { (expression_statement "*(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;" (assignment_expression "*(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18" (pointer_expression "*(int *)(iVar1 + iVar3 * 4)" * (cast_expression "(int *)(iVar1 + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3 * 4)" ( (binary_expression "iVar1 + iVar3 * 4" identifier + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = (binary_expression "local_20[0] + iVar3 * 0x18" (subscript_expression "local_20[0]" identifier [ number_literal ]) + (binary_expression "iVar3 * 0x18" identifier * number_literal))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != iVar3)" ( (binary_expression "iVar2 != iVar3" identifier != identifier) )) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar2 * 4)" * (cast_expression "(undefined4 *)(iVar1 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "DAT_0002d120 = 1;" (assignment_expression "DAT_0002d120 = 1" identifier = number_literal) ;) (expression_statement "DAT_0002d48c = 0;" (assignment_expression "DAT_0002d48c = 0" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_get_arch(DAT_0002d478);" (assignment_expression "iVar2 = bfd_get_arch(DAT_0002d478)" identifier = (call_expression "bfd_get_arch(DAT_0002d478)" identifier (argument_list "(DAT_0002d478)" ( identifier )))) ;) (if_statement "if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" if (parenthesized_expression "(iVar2 == 3)" ( (binary_expression "iVar2 == 3" identifier == number_literal) )) (compound_statement "{\n          DAT_0002d48c = 2;\n        }" { (expression_statement "DAT_0002d48c = 2;" (assignment_expression "DAT_0002d48c = 2" identifier = number_literal) ;) }) (else_clause "else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" else (if_statement "if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" if (parenthesized_expression "(iVar2 == 0x20)" ( (binary_expression "iVar2 == 0x20" identifier == number_literal) )) (compound_statement "{\n          DAT_0002d120 = 4;\n        }" { (expression_statement "DAT_0002d120 = 4;" (assignment_expression "DAT_0002d120 = 4" identifier = number_literal) ;) })))) (if_statement "if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }" if (parenthesized_expression "(DAT_0002d490 != 0)" ( (binary_expression "DAT_0002d490 != 0" identifier != number_literal) )) (compound_statement "{\n          FUN_00017f10();\n        }" { (expression_statement "FUN_00017f10();" (call_expression "FUN_00017f10()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })) })) (expression_statement "uVar4 = bfd_get_error();" (assignment_expression "uVar4 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar4 = bfd_errmsg(uVar4);" (assignment_expression "uVar4 = bfd_errmsg(uVar4)" identifier = (call_expression "bfd_errmsg(uVar4)" identifier (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" * (cast_expression "(FILE **)PTR_stderr_0002bfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s: %s: %s\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })) (expression_statement "pcVar5 = "%s: %s: not in executable format\n";" (assignment_expression "pcVar5 = "%s: %s: not in executable format\n"" identifier = (string_literal ""%s: %s: not in executable format\n"" " string_content escape_sequence ")) ;) (labeled_statement "LAB_000188db:\n  uVar4 = DAT_0002d494;" statement_identifier : (expression_statement "uVar4 = DAT_0002d494;" (assignment_expression "uVar4 = DAT_0002d494" identifier = identifier) ;)) (expression_statement "pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);" (assignment_expression "pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494)" identifier = (cast_expression "(char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext("gprof",pcVar5,5,&DAT_0002d494)" identifier (argument_list "("gprof",pcVar5,5,&DAT_0002d494)" ( (string_literal ""gprof"" " string_content ") , identifier , number_literal , (pointer_expression "&DAT_0002d494" & identifier) ))))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1)" identifier (argument_list "(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1)" ( (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" * (cast_expression "(FILE **)PTR_stderr_0002bfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" identifier (argument_list "(1)" ( number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence string_content escape_sequence ")) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) (labeled_statement statement_identifier : (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 ") , IDENT , LIT , (pointer_expression & 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 ))) ;) })))
(function_definition "void FUN_000186b0(char *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    \n  FUN_0001a990(1);\n}" (primitive_type "void") (function_declarator "FUN_000186b0(char *param_1)" (identifier "FUN_000186b0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x186b9;\n  DAT_0002d478 = bfd_openr(param_1,0);\n  if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }\n  iVar2 = bfd_check_format(DAT_0002d478,1);\n  if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }\n  pcVar5 = "%s: %s: not in executable format\n";\nLAB_000188db:\n  uVar4 = DAT_0002d494;\n  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);\n  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);\n                    \n  FUN_0001a990(1);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x186b9;" (assignment_expression "uStack_14 = 0x186b9" (identifier "uStack_14") (= "=") (number_literal "0x186b9")) (; ";")) (expression_statement "DAT_0002d478 = bfd_openr(param_1,0);" (assignment_expression "DAT_0002d478 = bfd_openr(param_1,0)" (identifier "DAT_0002d478") (= "=") (call_expression "bfd_openr(param_1,0)" (identifier "bfd_openr") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (DAT_0002d478 == 0) {\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }" (if "if") (parenthesized_expression "(DAT_0002d478 == 0)" (( "(") (binary_expression "DAT_0002d478 == 0" (identifier "DAT_0002d478") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    perror(param_1);\n                    \n    FUN_0001a990(1);\n  }" ({ "{") (expression_statement "perror(param_1);" (call_expression "perror(param_1)" (identifier "perror") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" (identifier "FUN_0001a990") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = bfd_check_format(DAT_0002d478,1);" (assignment_expression "iVar2 = bfd_check_format(DAT_0002d478,1)" (identifier "iVar2") (= "=") (call_expression "bfd_check_format(DAT_0002d478,1)" (identifier "bfd_check_format") (argument_list "(DAT_0002d478,1)" (( "(") (identifier "DAT_0002d478") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");\n    if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }\n    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);\n    if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }\n    uVar4 = bfd_get_error();\n    uVar4 = bfd_errmsg(uVar4);\n    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);\n                    \n    FUN_0001a990(1);\n  }" ({ "{") (expression_statement "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");" (assignment_expression "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text")" (identifier "DAT_0002d488") (= "=") (call_expression "bfd_get_section_by_name(DAT_0002d478,".text")" (identifier "bfd_get_section_by_name") (argument_list "(DAT_0002d478,".text")" (( "(") (identifier "DAT_0002d478") (, ",") (string_literal "".text"" (" """) (string_content ".text") (" """)) () ")")))) (; ";")) (if_statement "if (DAT_0002d488 == 0) {\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }" (if "if") (parenthesized_expression "(DAT_0002d488 == 0)" (( "(") (binary_expression "DAT_0002d488 == 0" (identifier "DAT_0002d488") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");\n      if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }\n    }" ({ "{") (expression_statement "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");" (assignment_expression "DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$")" (identifier "DAT_0002d488") (= "=") (call_expression "bfd_get_section_by_name(DAT_0002d478,"$CODE$")" (identifier "bfd_get_section_by_name") (argument_list "(DAT_0002d478,"$CODE$")" (( "(") (identifier "DAT_0002d478") (, ",") (string_literal ""$CODE$"" (" """) (string_content "$CODE$") (" """)) () ")")))) (; ";")) (if_statement "if (DAT_0002d488 == 0) {\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }" (if "if") (parenthesized_expression "(DAT_0002d488 == 0)" (( "(") (binary_expression "DAT_0002d488 == 0" (identifier "DAT_0002d488") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar5 = "%s: can\'t find .text section in %s\n";\n        DAT_0002d488 = 0;\n        goto LAB_000188db;\n      }" ({ "{") (expression_statement "pcVar5 = "%s: can\'t find .text section in %s\n";" (assignment_expression "pcVar5 = "%s: can\'t find .text section in %s\n"" (identifier "pcVar5") (= "=") (string_literal ""%s: can\'t find .text section in %s\n"" (" """) (string_content "%s: can") (escape_sequence "\'") (string_content "t find .text section in %s") (escape_sequence "\n") (" """))) (; ";")) (expression_statement "DAT_0002d488 = 0;" (assignment_expression "DAT_0002d488 = 0" (identifier "DAT_0002d488") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000188db;" (goto "goto") (statement_identifier "LAB_000188db") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);" (assignment_expression "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))" (( "(") (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" (* "*") (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" (* "*") (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x104)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x104)" (( "(") (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x104" (pointer_expression "*(int *)(DAT_0002d478 + 4)" (* "*") (cast_expression "(int *)(DAT_0002d478 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002d478 + 4)" (( "(") (binary_expression "DAT_0002d478 + 4" (identifier "DAT_0002d478") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x104")) () ")"))))) () ")")) (argument_list "(DAT_0002d478)" (( "(") (identifier "DAT_0002d478") () ")")))) (; ";")) (if_statement "if (-1 < iVar2) {\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      DAT_0002d124 = xmalloc(iVar2);\n      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);\n      if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }\n    }" ({ "{") (expression_statement "DAT_0002d124 = xmalloc(iVar2);" (assignment_expression "DAT_0002d124 = xmalloc(iVar2)" (identifier "DAT_0002d124") (= "=") (call_expression "xmalloc(iVar2)" (identifier "xmalloc") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);" (assignment_expression "DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124)" (identifier "DAT_0002d128") (= "=") (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))" (( "(") (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" (* "*") (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" (* "*") (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x108)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x108)" (( "(") (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x108" (pointer_expression "*(int *)(DAT_0002d478 + 4)" (* "*") (cast_expression "(int *)(DAT_0002d478 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002d478 + 4)" (( "(") (binary_expression "DAT_0002d478 + 4" (identifier "DAT_0002d478") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x108")) () ")"))))) () ")")) (argument_list "(DAT_0002d478,DAT_0002d124)" (( "(") (identifier "DAT_0002d478") (, ",") (identifier "DAT_0002d124") () ")")))) (; ";")) (if_statement "if (-1 < DAT_0002d128) {\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }" (if "if") (parenthesized_expression "(-1 < DAT_0002d128)" (( "(") (binary_expression "-1 < DAT_0002d128" (number_literal "-1") (< "<") (identifier "DAT_0002d128")) () ")")) (compound_statement "{\n        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);\n        if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }\n        DAT_0002d120 = 1;\n        DAT_0002d48c = 0;\n        iVar2 = bfd_get_arch(DAT_0002d478);\n        if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }\n        if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }\n        return;\n      }" ({ "{") (expression_statement "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);" (assignment_expression "iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))\n                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" (parenthesized_expression "(**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))" (( "(") (pointer_expression "**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" (* "*") (pointer_expression "*(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" (* "*") (cast_expression "(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_0002d478 + 4) + 0x1b0)" (( "(") (binary_expression "*(int *)(DAT_0002d478 + 4) + 0x1b0" (pointer_expression "*(int *)(DAT_0002d478 + 4)" (* "*") (cast_expression "(int *)(DAT_0002d478 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0002d478 + 4)" (( "(") (binary_expression "DAT_0002d478 + 4" (identifier "DAT_0002d478") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x1b0")) () ")"))))) () ")")) (argument_list "(DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20)" (( "(") (identifier "DAT_0002d478") (, ",") (identifier "DAT_0002d128") (, ",") (identifier "DAT_0002d124") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "local_20") () ")")))) (; ";")) (if_statement "if (0 < iVar2) {\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);\n          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;\n          DAT_0002d128 = DAT_0002d128 + iVar2;\n          iVar3 = 0;\n          do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);\n          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n        }" ({ "{") (expression_statement "DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);" (assignment_expression "DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" (identifier "DAT_0002d124") (= "=") (call_expression "xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" (identifier "xrealloc") (argument_list "(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4)" (( "(") (identifier "DAT_0002d124") (, ",") (binary_expression "(DAT_0002d128 + iVar2) * 4 + 4" (binary_expression "(DAT_0002d128 + iVar2) * 4" (parenthesized_expression "(DAT_0002d128 + iVar2)" (( "(") (binary_expression "DAT_0002d128 + iVar2" (identifier "DAT_0002d128") (+ "+") (identifier "iVar2")) () ")")) (* "*") (number_literal "4")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar1 = DAT_0002d124 + DAT_0002d128 * 4;" (assignment_expression "iVar1 = DAT_0002d124 + DAT_0002d128 * 4" (identifier "iVar1") (= "=") (binary_expression "DAT_0002d124 + DAT_0002d128 * 4" (identifier "DAT_0002d124") (+ "+") (binary_expression "DAT_0002d128 * 4" (identifier "DAT_0002d128") (* "*") (number_literal "4")))) (; ";")) (expression_statement "DAT_0002d128 = DAT_0002d128 + iVar2;" (assignment_expression "DAT_0002d128 = DAT_0002d128 + iVar2" (identifier "DAT_0002d128") (= "=") (binary_expression "DAT_0002d128 + iVar2" (identifier "DAT_0002d128") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          } while (iVar2 != iVar3);" (do "do") (compound_statement "{\n            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;\n            iVar3 = iVar3 + 1;\n          }" ({ "{") (expression_statement "*(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;" (assignment_expression "*(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18" (pointer_expression "*(int *)(iVar1 + iVar3 * 4)" (* "*") (cast_expression "(int *)(iVar1 + iVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar3 * 4)" (( "(") (binary_expression "iVar1 + iVar3 * 4" (identifier "iVar1") (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (binary_expression "local_20[0] + iVar3 * 0x18" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (binary_expression "iVar3 * 0x18" (identifier "iVar3") (* "*") (number_literal "0x18")))) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != iVar3)" (( "(") (binary_expression "iVar2 != iVar3" (identifier "iVar2") (!= "!=") (identifier "iVar3")) () ")")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar2 * 4)" (( "(") (binary_expression "iVar1 + iVar2 * 4" (identifier "iVar1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "DAT_0002d120 = 1;" (assignment_expression "DAT_0002d120 = 1" (identifier "DAT_0002d120") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_0002d48c = 0;" (assignment_expression "DAT_0002d48c = 0" (identifier "DAT_0002d48c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = bfd_get_arch(DAT_0002d478);" (assignment_expression "iVar2 = bfd_get_arch(DAT_0002d478)" (identifier "iVar2") (= "=") (call_expression "bfd_get_arch(DAT_0002d478)" (identifier "bfd_get_arch") (argument_list "(DAT_0002d478)" (( "(") (identifier "DAT_0002d478") () ")")))) (; ";")) (if_statement "if (iVar2 == 3) {\n          DAT_0002d48c = 2;\n        }\n        else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" (if "if") (parenthesized_expression "(iVar2 == 3)" (( "(") (binary_expression "iVar2 == 3" (identifier "iVar2") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n          DAT_0002d48c = 2;\n        }" ({ "{") (expression_statement "DAT_0002d48c = 2;" (assignment_expression "DAT_0002d48c = 2" (identifier "DAT_0002d48c") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" (else "else") (if_statement "if (iVar2 == 0x20) {\n          DAT_0002d120 = 4;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0x20)" (( "(") (binary_expression "iVar2 == 0x20" (identifier "iVar2") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n          DAT_0002d120 = 4;\n        }" ({ "{") (expression_statement "DAT_0002d120 = 4;" (assignment_expression "DAT_0002d120 = 4" (identifier "DAT_0002d120") (= "=") (number_literal "4")) (; ";")) (} "}"))))) (if_statement "if (DAT_0002d490 != 0) {\n          FUN_00017f10();\n        }" (if "if") (parenthesized_expression "(DAT_0002d490 != 0)" (( "(") (binary_expression "DAT_0002d490 != 0" (identifier "DAT_0002d490") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00017f10();\n        }" ({ "{") (expression_statement "FUN_00017f10();" (call_expression "FUN_00017f10()" (identifier "FUN_00017f10") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar4 = bfd_get_error();" (assignment_expression "uVar4 = bfd_get_error()" (identifier "uVar4") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = bfd_errmsg(uVar4);" (assignment_expression "uVar4 = bfd_errmsg(uVar4)" (identifier "uVar4") (= "=") (call_expression "bfd_errmsg(uVar4)" (identifier "bfd_errmsg") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" (* "*") (cast_expression "(FILE **)PTR_stderr_0002bfcc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0002bfcc"))) (, ",") (string_literal ""%s: %s: %s\n"" (" """) (string_content "%s: %s: %s") (escape_sequence "\n") (" """)) (, ",") (identifier "DAT_0002d494") (, ",") (identifier "param_1") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" (identifier "FUN_0001a990") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar5 = "%s: %s: not in executable format\n";" (assignment_expression "pcVar5 = "%s: %s: not in executable format\n"" (identifier "pcVar5") (= "=") (string_literal ""%s: %s: not in executable format\n"" (" """) (string_content "%s: %s: not in executable format") (escape_sequence "\n") (" """))) (; ";")) (labeled_statement "LAB_000188db:\n  uVar4 = DAT_0002d494;" (statement_identifier "LAB_000188db") (: ":") (expression_statement "uVar4 = DAT_0002d494;" (assignment_expression "uVar4 = DAT_0002d494" (identifier "uVar4") (= "=") (identifier "DAT_0002d494")) (; ";"))) (expression_statement "pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);" (assignment_expression "pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494)" (identifier "pcVar5") (= "=") (cast_expression "(char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext("gprof",pcVar5,5,&DAT_0002d494)" (identifier "dcgettext") (argument_list "("gprof",pcVar5,5,&DAT_0002d494)" (( "(") (string_literal ""gprof"" (" """) (string_content "gprof") (" """)) (, ",") (identifier "pcVar5") (, ",") (number_literal "5") (, ",") (pointer_expression "&DAT_0002d494" (& "&") (identifier "DAT_0002d494")) () ")"))))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0002bfcc" (* "*") (cast_expression "(FILE **)PTR_stderr_0002bfcc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0002bfcc"))) (, ",") (identifier "pcVar5") (, ",") (identifier "uVar4") (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_0001a990(1);" (call_expression "FUN_0001a990(1)" (identifier "FUN_0001a990") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (} "}")))

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

void function_1(char *aout_name)

{
  char *pcVar1;
  int var_6;
  long var_9;
  type_1 **ppaVar4;
  int var_13;
  type_2 uVar6;
  char *pcVar7;
  type_1 *var_14;
  type_2 uStack_14;
  
  uStack_14 = 0x186b9;
  var_2 = (type_3 *)var_1(aout_name,0);
  if (var_2 == (type_3 *)0x0) {
    var_3(aout_name);
                    /* WARNING: Subroutine does not return */
    var_4(1);
  }
  var_6 = var_5(var_2,1);
  if (var_6 != 0) {
    var_8 = (type_4 *)var_7(var_2,".text");
    if (var_8 == (type_4 *)0x0) {
      var_8 = (type_4 *)var_7(var_2,"$CODE$");
      if (var_8 == (type_4 *)0x0) {
        pcVar7 = "%s: can\'t find .text section in %s\n";
        var_8 = (type_4 *)0x0;
        goto LAB_000188db;
      }
    }
    var_9 = (*var_2->xvec->_bfd_get_symtab_upper_bound)(var_2);
    if (-1 < var_9) {
      core_syms = (type_1 **)var_10(var_9);
      var_11 = (*var_2->xvec->_bfd_canonicalize_symtab)(var_2,core_syms);
      if (-1 < var_11) {
        var_9 = (*var_2->xvec->_bfd_get_synthetic_symtab)
                          (var_2,var_11,core_syms,0,(type_5 **)0x0,&var_14);
        if (0 < var_9) {
          ppaVar4 = (type_1 **)var_12(core_syms,(var_11 + var_9) * 4 + 4);
          var_6 = var_11;
          var_11 = var_11 + var_9;
          var_13 = 0;
          core_syms = ppaVar4;
          do {
            ppaVar4[var_6 + var_13] = var_14 + var_13;
            var_13 = var_13 + 1;
          } while (var_9 != var_13);
          ppaVar4[var_6 + var_9] = (type_1 *)0x0;
        }
        min_insn_size = 1;
        offset_to_code = 0;
        var_6 = var_15(var_2);
        if (var_6 == 3) {
          offset_to_code = 2;
        }
        else if (var_6 == 0x20) {
          min_insn_size = 4;
        }
        if (var_16 != (char *)0x0) {
          var_17(var_16);
        }
        return;
      }
    }
    uVar6 = var_18();
    uVar6 = var_19(uVar6);
    var_20(*(type_6 **)PTR_stderr_0002bfcc,"%s: %s: %s\n",whoami,aout_name,uVar6);
                    /* WARNING: Subroutine does not return */
    var_4(1);
  }
  pcVar7 = "%s: %s: not in executable format\n";
LAB_000188db:
  pcVar1 = whoami;
  pcVar7 = (char *)var_21("gprof",pcVar7,5,&whoami);
  var_20(*(type_6 **)PTR_stderr_0002bfcc,pcVar7,pcVar1,aout_name);
                    /* WARNING: Subroutine does not return */
  var_4(1);
}


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

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

void MASKED(char *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x186b9;
  DAT_0002d478 = bfd_openr(param_1,0);
  if (DAT_0002d478 == 0) {
    perror(param_1);
                    /* WARNING: Subroutine does not return */
    FUN_0001a990(1);
  }
  iVar2 = bfd_check_format(DAT_0002d478,1);
  if (iVar2 != 0) {
    DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,".text");
    if (DAT_0002d488 == 0) {
      DAT_0002d488 = bfd_get_section_by_name(DAT_0002d478,"$CODE$");
      if (DAT_0002d488 == 0) {
        pcVar5 = "%s: can\'t find .text section in %s\n";
        DAT_0002d488 = 0;
        goto LAB_000188db;
      }
    }
    iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x104))(DAT_0002d478);
    if (-1 < iVar2) {
      DAT_0002d124 = xmalloc(iVar2);
      DAT_0002d128 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x108))(DAT_0002d478,DAT_0002d124);
      if (-1 < DAT_0002d128) {
        iVar2 = (**(code **)(*(int *)(DAT_0002d478 + 4) + 0x1b0))
                          (DAT_0002d478,DAT_0002d128,DAT_0002d124,0,0,local_20);
        if (0 < iVar2) {
          DAT_0002d124 = xrealloc(DAT_0002d124,(DAT_0002d128 + iVar2) * 4 + 4);
          iVar1 = DAT_0002d124 + DAT_0002d128 * 4;
          DAT_0002d128 = DAT_0002d128 + iVar2;
          iVar3 = 0;
          do {
            *(int *)(iVar1 + iVar3 * 4) = local_20[0] + iVar3 * 0x18;
            iVar3 = iVar3 + 1;
          } while (iVar2 != iVar3);
          *(undefined4 *)(iVar1 + iVar2 * 4) = 0;
        }
        DAT_0002d120 = 1;
        DAT_0002d48c = 0;
        iVar2 = bfd_get_arch(DAT_0002d478);
        if (iVar2 == 3) {
          DAT_0002d48c = 2;
        }
        else if (iVar2 == 0x20) {
          DAT_0002d120 = 4;
        }
        if (DAT_0002d490 != 0) {
          FUN_00017f10();
        }
        return;
      }
    }
    uVar4 = bfd_get_error();
    uVar4 = bfd_errmsg(uVar4);
    fprintf(*(FILE **)PTR_stderr_0002bfcc,"%s: %s: %s\n",DAT_0002d494,param_1,uVar4);
                    /* WARNING: Subroutine does not return */
    FUN_0001a990(1);
  }
  pcVar5 = "%s: %s: not in executable format\n";
LAB_000188db:
  uVar4 = DAT_0002d494;
  pcVar5 = (char *)dcgettext("gprof",pcVar5,5,&DAT_0002d494);
  fprintf(*(FILE **)PTR_stderr_0002bfcc,pcVar5,uVar4,param_1);
                    /* WARNING: Subroutine does not return */
  FUN_0001a990(1);
}

