
int do_display_target(bfd_target *targ,void *data)

{
  bfd_endian endian;
  char *pcVar1;
  int iVar2;
  long lVar3;
  char *pcVar4;
  char *pcVar5;
  char *__format;
  long lVar6;
  undefined8 uVar7;
  ulong uVar8;
  int iVar9;
  display_target *param;
  
  iVar2 = *(int *)((long)data + 0xc) + 1;
  *(int *)((long)data + 0xc) = iVar2;
  uVar8 = (long)iVar2 * 0x60;
  if (*(ulong *)((long)data + 0x10) < uVar8) {
    lVar6 = 0x3000;
    if (0x3f < iVar2) {
      lVar6 = (long)iVar2 * 0xc0;
    }
    lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));
    *(long *)((long)data + 0x18) = lVar3;
    memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));
    *(long *)((long)data + 0x10) = lVar6;
    uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;
  }
  endian = targ->byteorder;
  *(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8) = targ->name;
  pcVar4 = endian_string(endian);
  pcVar5 = endian_string(targ->header_byteorder);
  pcVar1 = targ->name;
  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);
  printf(__format,pcVar1,pcVar5,pcVar4);
                    /* WARNING: Load size is inaccurate */
  lVar6 = bfd_openw(*data,targ->name);
  if (lVar6 != 0) {
    iVar9 = 2;
    iVar2 = bfd_set_format(lVar6,1);
    if (iVar2 == 0) {
      iVar2 = bfd_get_error();
      if (iVar2 != 5) {
        bfd_nonfatal(targ->name);
        *(undefined4 *)((long)data + 8) = 1;
      }
    }
    else {
      do {
        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);
        if (iVar2 != 0) {
          uVar7 = bfd_printable_arch_mach(iVar9,0);
          printf("  %s\n",uVar7);
          *(undefined1 *)
           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +
           (ulong)(iVar9 - 2)) = 1;
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 != 0x59);
    }
    bfd_close_all_done(lVar6);
    return *(int *)((long)data + 8);
  }
                    /* WARNING: Load size is inaccurate */
  bfd_nonfatal(*data);
  *(undefined4 *)((long)data + 8) = 1;
  return 1;
}



undefined4 FUN_00103100(undefined8 *param_1,undefined8 *param_2)

{
  undefined4 uVar1;
  int iVar2;
  long lVar3;
  undefined8 uVar4;
  undefined8 uVar5;
  char *__format;
  long lVar6;
  undefined8 uVar7;
  ulong uVar8;
  int iVar9;
  
  iVar2 = *(int *)((long)param_2 + 0xc) + 1;
  *(int *)((long)param_2 + 0xc) = iVar2;
  uVar8 = (long)iVar2 * 0x60;
  if ((ulong)param_2[2] < uVar8) {
    lVar6 = 0x3000;
    if (0x3f < iVar2) {
      lVar6 = (long)iVar2 * 0xc0;
    }
    lVar3 = xrealloc(param_2[3]);
    param_2[3] = lVar3;
    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);
    param_2[2] = lVar6;
    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;
  }
  uVar1 = *(undefined4 *)((long)param_1 + 0xc);
  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;
  uVar4 = FUN_00103030(uVar1);
  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));
  uVar7 = *param_1;
  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);
  printf(__format,uVar7,uVar5,uVar4);
  lVar6 = bfd_openw(*param_2,*param_1);
  if (lVar6 != 0) {
    iVar9 = 2;
    iVar2 = bfd_set_format(lVar6,1);
    if (iVar2 == 0) {
      iVar2 = bfd_get_error();
      if (iVar2 != 5) {
        FUN_00103080(*param_1);
        *(undefined4 *)(param_2 + 1) = 1;
      }
    }
    else {
      do {
        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);
        if (iVar2 != 0) {
          uVar7 = bfd_printable_arch_mach(iVar9,0);
          printf("  %s\n",uVar7);
          *(undefined1 *)
           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =
               1;
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 != 0x59);
    }
    bfd_close_all_done(lVar6);
    return *(undefined4 *)(param_2 + 1);
  }
  FUN_00103080(*param_2);
  *(undefined4 *)(param_2 + 1) = 1;
  return 1;
}


PUSH R14
MOV R14,RDI
PUSH R13
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
MOV EAX,dword ptr [RSI + 0xc]
ADD EAX,0x1
MOVSXD RDX,EAX
MOV dword ptr [RSI + 0xc],EAX
LEA RCX,[RDX + RDX*0x2]
MOV RDX,RCX
SHL RDX,0x5
CMP qword ptr [RSI + 0x10],RDX
JNC 0x00103173
SHL RCX,0x6
MOV EBX,0x3000
CMP EAX,0x3f
MOV RDI,qword ptr [RSI + 0x18]
CMOVG RBX,RCX
MOV RSI,RBX
CALL 0x001021c0
MOV RDI,qword ptr [R12 + 0x10]
MOV RDX,RBX
XOR ESI,ESI
MOV qword ptr [R12 + 0x18],RAX
SUB RDX,RDI
ADD RDI,RAX
CALL 0x00102210
MOVSXD RAX,dword ptr [R12 + 0xc]
MOV qword ptr [R12 + 0x10],RBX
LEA RDX,[RAX + RAX*0x2]
SHL RDX,0x5
MOV RCX,qword ptr [R14]
MOV RAX,qword ptr [R12 + 0x18]
MOV EDI,dword ptr [R14 + 0xc]
MOV qword ptr [RAX + RDX*0x1 + -0x60],RCX
CALL 0x00103030
MOV EDI,dword ptr [R14 + 0x10]
MOV R13,RAX
CALL 0x00103030
MOV RBX,qword ptr [R14]
MOV EDX,0x5
XOR EDI,EDI
LEA RSI,[0x1056e8]
MOV RBP,RAX
CALL 0x00102180
MOV RDX,RBP
MOV RCX,R13
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001021b0
MOV RSI,qword ptr [R14]
MOV RDI,qword ptr [R12]
CALL 0x001023a0
MOV RBP,RAX
TEST RAX,RAX
JZ 0x0010326f
MOV ESI,0x1
MOV RDI,RAX
MOV EBX,0x2
CALL 0x001022e0
LEA R13,[0x105702]
TEST EAX,EAX
JNZ 0x00103258
CALL 0x00102220
CMP EAX,0x5
JNZ 0x0010328f
MOV RDI,RBP
CALL 0x00102310
POP RBX
MOV EAX,dword ptr [R12 + 0x8]
POP RBP
POP R12
POP R13
POP R14
RET
XOR ESI,ESI
MOV EDI,EBX
CALL 0x00102330
MOV RDI,R13
MOV RSI,RAX
XOR EAX,EAX
CALL 0x001021b0
MOVSXD RAX,dword ptr [R12 + 0xc]
LEA EDX,[RBX + -0x2]
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x5
ADD RAX,qword ptr [R12 + 0x18]
MOV byte ptr [RAX + RDX*0x1 + -0x58],0x1
ADD EBX,0x1
CMP EBX,0x59
JZ 0x00103204
MOV RAX,qword ptr [RBP + 0x8]
XOR EDX,EDX
MOV ESI,EBX
MOV RDI,RBP
CALL qword ptr [RAX + 0x290]
TEST EAX,EAX
JZ 0x00103250
JMP 0x00103220
MOV RDI,qword ptr [R12]
CALL 0x00103080
POP RBX
MOV EAX,0x1
POP RBP
MOV dword ptr [R12 + 0x8],0x1
POP R12
POP R13
POP R14
RET
MOV RDI,qword ptr [R14]
CALL 0x00103080
MOV dword ptr [R12 + 0x8],0x1
JMP 0x00103204
(translation_unit "undefined4 FUN_00103100(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00103100(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_00103100(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)((long)param_2 + 0xc) + 1;" (assignment_expression "iVar2 = *(int *)((long)param_2 + 0xc) + 1" identifier = (binary_expression "*(int *)((long)param_2 + 0xc) + 1" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_2 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)param_2 + 0xc) = iVar2" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = (long)iVar2 * 0x60;" (assignment_expression "uVar8 = (long)iVar2 * 0x60" identifier = (binary_expression "(long)iVar2 * 0x60" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }" if (parenthesized_expression "((ulong)param_2[2] < uVar8)" ( (binary_expression "(ulong)param_2[2] < uVar8" (cast_expression "(ulong)param_2[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }" { (expression_statement "lVar6 = 0x3000;" (assignment_expression "lVar6 = 0x3000" identifier = number_literal) ;) (if_statement "if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }" if (parenthesized_expression "(0x3f < iVar2)" ( (binary_expression "0x3f < iVar2" number_literal < identifier) )) (compound_statement "{\n      lVar6 = (long)iVar2 * 0xc0;\n    }" { (expression_statement "lVar6 = (long)iVar2 * 0xc0;" (assignment_expression "lVar6 = (long)iVar2 * 0xc0" identifier = (binary_expression "(long)iVar2 * 0xc0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) })) (expression_statement "lVar3 = xrealloc(param_2[3]);" (assignment_expression "lVar3 = xrealloc(param_2[3])" identifier = (call_expression "xrealloc(param_2[3])" identifier (argument_list "(param_2[3])" ( (subscript_expression "param_2[3]" identifier [ number_literal ]) )))) ;) (expression_statement "param_2[3] = lVar3;" (assignment_expression "param_2[3] = lVar3" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);" (call_expression "memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2])" identifier (argument_list "((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2])" ( (cast_expression "(void *)(param_2[2] + lVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + lVar3)" ( (binary_expression "param_2[2] + lVar3" (subscript_expression "param_2[2]" identifier [ number_literal ]) + identifier) ))) , number_literal , (binary_expression "lVar6 - param_2[2]" identifier - (subscript_expression "param_2[2]" identifier [ number_literal ])) ))) ;) (expression_statement "param_2[2] = lVar6;" (assignment_expression "param_2[2] = lVar6" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;" (assignment_expression "uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60" identifier = (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)param_2 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal)) ;) })) (expression_statement "uVar1 = *(undefined4 *)((long)param_1 + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)((long)param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + 0xc)" * (cast_expression "(undefined4 *)((long)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;" (assignment_expression "*(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1" (pointer_expression "*(undefined8 *)(param_2[3] + -0x60 + uVar8)" * (cast_expression "(undefined8 *)(param_2[3] + -0x60 + uVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[3] + -0x60 + uVar8)" ( (binary_expression "param_2[3] + -0x60 + uVar8" (binary_expression "param_2[3] + -0x60" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = FUN_00103030(uVar1);" (assignment_expression "uVar4 = FUN_00103030(uVar1)" identifier = (call_expression "FUN_00103030(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));" (assignment_expression "uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2))" identifier = (call_expression "FUN_00103030(*(undefined4 *)(param_1 + 2))" identifier (argument_list "(*(undefined4 *)(param_1 + 2))" ( (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s\n (header %s, data %s)\n",5)" identifier (argument_list "(0,"%s\n (header %s, data %s)\n",5)" ( number_literal , (string_literal ""%s\n (header %s, data %s)\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "printf(__format,uVar7,uVar5,uVar4);" (call_expression "printf(__format,uVar7,uVar5,uVar4)" identifier (argument_list "(__format,uVar7,uVar5,uVar4)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "lVar6 = bfd_openw(*param_2,*param_1);" (assignment_expression "lVar6 = bfd_openw(*param_2,*param_1)" identifier = (call_expression "bfd_openw(*param_2,*param_1)" identifier (argument_list "(*param_2,*param_1)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }" if (parenthesized_expression "(lVar6 != 0)" ( (binary_expression "lVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }" { (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_set_format(lVar6,1);" (assignment_expression "iVar2 = bfd_set_format(lVar6,1)" identifier = (call_expression "bfd_set_format(lVar6,1)" identifier (argument_list "(lVar6,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }" { (expression_statement "iVar2 = bfd_get_error();" (assignment_expression "iVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }" { (expression_statement "FUN_00103080(*param_1);" (call_expression "FUN_00103080(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*(undefined4 *)(param_2 + 1) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 1) = 1" (pointer_expression "*(undefined4 *)(param_2 + 1)" * (cast_expression "(undefined4 *)(param_2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" else (compound_statement "{\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" { (do_statement "do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);" do (compound_statement "{\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      }" { (expression_statement "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);" (assignment_expression "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" identifier = (call_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" (parenthesized_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))" ( (pointer_expression "**(code **)(*(long *)(lVar6 + 8) + 0x290)" * (pointer_expression "*(code **)(*(long *)(lVar6 + 8) + 0x290)" * (cast_expression "(code **)(*(long *)(lVar6 + 8) + 0x290)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(lVar6 + 8) + 0x290)" ( (binary_expression "*(long *)(lVar6 + 8) + 0x290" (pointer_expression "*(long *)(lVar6 + 8)" * (cast_expression "(long *)(lVar6 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(lVar6,iVar9,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }" { (expression_statement "uVar7 = bfd_printable_arch_mach(iVar9,0);" (assignment_expression "uVar7 = bfd_printable_arch_mach(iVar9,0)" identifier = (call_expression "bfd_printable_arch_mach(iVar9,0)" identifier (argument_list "(iVar9,0)" ( identifier , number_literal )))) ;) (expression_statement "printf("  %s\n",uVar7);" (call_expression "printf("  %s\n",uVar7)" identifier (argument_list "("  %s\n",uVar7)" ( (string_literal ""  %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;" (assignment_expression "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1" (pointer_expression "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" * (cast_expression "(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" ( (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3]" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)param_2 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (subscript_expression "param_2[3]" identifier [ number_literal ])) + number_literal) + (call_expression "(ulong)(iVar9 - 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar9 - 2)" ( (binary_expression "iVar9 - 2" identifier - number_literal) )))) )))) = number_literal) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 != 0x59)" ( (binary_expression "iVar9 != 0x59" identifier != number_literal) )) ;) }))) (expression_statement "bfd_close_all_done(lVar6);" (call_expression "bfd_close_all_done(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (return_statement "return *(undefined4 *)(param_2 + 1);" return (pointer_expression "*(undefined4 *)(param_2 + 1)" * (cast_expression "(undefined4 *)(param_2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00103080(*param_2);" (call_expression "FUN_00103080(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "*(undefined4 *)(param_2 + 1) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 1) = 1" (pointer_expression "*(undefined4 *)(param_2 + 1)" * (cast_expression "(undefined4 *)(param_2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int do_display_target(bfd_target *targ,void *data)\n\n{\n  bfd_endian endian;\n  char *pcVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  display_target *param;\n  \n  iVar2 = *(int *)((long)data + 0xc) + 1;\n  *(int *)((long)data + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if (*(ulong *)((long)data + 0x10) < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));\n    *(long *)((long)data + 0x18) = lVar3;\n    memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));\n    *(long *)((long)data + 0x10) = lVar6;\n    uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;\n  }\n  endian = targ->byteorder;\n  *(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8) = targ->name;\n  pcVar4 = endian_string(endian);\n  pcVar5 = endian_string(targ->header_byteorder);\n  pcVar1 = targ->name;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,pcVar1,pcVar5,pcVar4);\n                    /* WARNING: Load size is inaccurate */\n  lVar6 = bfd_openw(*data,targ->name);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(int *)((long)data + 8);\n  }\n                    /* WARNING: Load size is inaccurate */\n  bfd_nonfatal(*data);\n  *(undefined4 *)((long)data + 8) = 1;\n  return 1;\n}\n\n" (function_definition "int do_display_target(bfd_target *targ,void *data)\n\n{\n  bfd_endian endian;\n  char *pcVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  display_target *param;\n  \n  iVar2 = *(int *)((long)data + 0xc) + 1;\n  *(int *)((long)data + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if (*(ulong *)((long)data + 0x10) < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));\n    *(long *)((long)data + 0x18) = lVar3;\n    memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));\n    *(long *)((long)data + 0x10) = lVar6;\n    uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;\n  }\n  endian = targ->byteorder;\n  *(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8) = targ->name;\n  pcVar4 = endian_string(endian);\n  pcVar5 = endian_string(targ->header_byteorder);\n  pcVar1 = targ->name;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,pcVar1,pcVar5,pcVar4);\n                    /* WARNING: Load size is inaccurate */\n  lVar6 = bfd_openw(*data,targ->name);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(int *)((long)data + 8);\n  }\n                    /* WARNING: Load size is inaccurate */\n  bfd_nonfatal(*data);\n  *(undefined4 *)((long)data + 8) = 1;\n  return 1;\n}" primitive_type (function_declarator "do_display_target(bfd_target *targ,void *data)" identifier (parameter_list "(bfd_target *targ,void *data)" ( (parameter_declaration "bfd_target *targ" type_identifier (pointer_declarator "*targ" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  bfd_endian endian;\n  char *pcVar1;\n  int iVar2;\n  long lVar3;\n  char *pcVar4;\n  char *pcVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  display_target *param;\n  \n  iVar2 = *(int *)((long)data + 0xc) + 1;\n  *(int *)((long)data + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if (*(ulong *)((long)data + 0x10) < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));\n    *(long *)((long)data + 0x18) = lVar3;\n    memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));\n    *(long *)((long)data + 0x10) = lVar6;\n    uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;\n  }\n  endian = targ->byteorder;\n  *(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8) = targ->name;\n  pcVar4 = endian_string(endian);\n  pcVar5 = endian_string(targ->header_byteorder);\n  pcVar1 = targ->name;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,pcVar1,pcVar5,pcVar4);\n                    /* WARNING: Load size is inaccurate */\n  lVar6 = bfd_openw(*data,targ->name);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(int *)((long)data + 8);\n  }\n                    /* WARNING: Load size is inaccurate */\n  bfd_nonfatal(*data);\n  *(undefined4 *)((long)data + 8) = 1;\n  return 1;\n}" { (declaration "bfd_endian endian;" type_identifier identifier ;) (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 "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "display_target *param;" type_identifier (pointer_declarator "*param" * identifier) ;) (expression_statement "iVar2 = *(int *)((long)data + 0xc) + 1;" (assignment_expression "iVar2 = *(int *)((long)data + 0xc) + 1" identifier = (binary_expression "*(int *)((long)data + 0xc) + 1" (pointer_expression "*(int *)((long)data + 0xc)" * (cast_expression "(int *)((long)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0xc)" ( (binary_expression "(long)data + 0xc" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)data + 0xc) = iVar2;" (assignment_expression "*(int *)((long)data + 0xc) = iVar2" (pointer_expression "*(int *)((long)data + 0xc)" * (cast_expression "(int *)((long)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0xc)" ( (binary_expression "(long)data + 0xc" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = (long)iVar2 * 0x60;" (assignment_expression "uVar8 = (long)iVar2 * 0x60" identifier = (binary_expression "(long)iVar2 * 0x60" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if (*(ulong *)((long)data + 0x10) < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));\n    *(long *)((long)data + 0x18) = lVar3;\n    memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));\n    *(long *)((long)data + 0x10) = lVar6;\n    uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;\n  }" if (parenthesized_expression "(*(ulong *)((long)data + 0x10) < uVar8)" ( (binary_expression "*(ulong *)((long)data + 0x10) < uVar8" (pointer_expression "*(ulong *)((long)data + 0x10)" * (cast_expression "(ulong *)((long)data + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x10)" ( (binary_expression "(long)data + 0x10" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < identifier) )) (compound_statement "{\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));\n    *(long *)((long)data + 0x18) = lVar3;\n    memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));\n    *(long *)((long)data + 0x10) = lVar6;\n    uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;\n  }" { (expression_statement "lVar6 = 0x3000;" (assignment_expression "lVar6 = 0x3000" identifier = number_literal) ;) (if_statement "if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }" if (parenthesized_expression "(0x3f < iVar2)" ( (binary_expression "0x3f < iVar2" number_literal < identifier) )) (compound_statement "{\n      lVar6 = (long)iVar2 * 0xc0;\n    }" { (expression_statement "lVar6 = (long)iVar2 * 0xc0;" (assignment_expression "lVar6 = (long)iVar2 * 0xc0" identifier = (binary_expression "(long)iVar2 * 0xc0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) })) (expression_statement "lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18));" (assignment_expression "lVar3 = xrealloc(*(undefined8 *)((long)data + 0x18))" identifier = (call_expression "xrealloc(*(undefined8 *)((long)data + 0x18))" identifier (argument_list "(*(undefined8 *)((long)data + 0x18))" ( (pointer_expression "*(undefined8 *)((long)data + 0x18)" * (cast_expression "(undefined8 *)((long)data + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x18)" ( (binary_expression "(long)data + 0x18" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) )))) ;) (expression_statement "*(long *)((long)data + 0x18) = lVar3;" (assignment_expression "*(long *)((long)data + 0x18) = lVar3" (pointer_expression "*(long *)((long)data + 0x18)" * (cast_expression "(long *)((long)data + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x18)" ( (binary_expression "(long)data + 0x18" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10));" (call_expression "memset((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10))" identifier (argument_list "((void *)(*(long *)((long)data + 0x10) + lVar3),0,lVar6 - *(long *)((long)data + 0x10))" ( (cast_expression "(void *)(*(long *)((long)data + 0x10) + lVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)data + 0x10) + lVar3)" ( (binary_expression "*(long *)((long)data + 0x10) + lVar3" (pointer_expression "*(long *)((long)data + 0x10)" * (cast_expression "(long *)((long)data + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x10)" ( (binary_expression "(long)data + 0x10" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + identifier) ))) , number_literal , (binary_expression "lVar6 - *(long *)((long)data + 0x10)" identifier - (pointer_expression "*(long *)((long)data + 0x10)" * (cast_expression "(long *)((long)data + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x10)" ( (binary_expression "(long)data + 0x10" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ))) ;) (expression_statement "*(long *)((long)data + 0x10) = lVar6;" (assignment_expression "*(long *)((long)data + 0x10) = lVar6" (pointer_expression "*(long *)((long)data + 0x10)" * (cast_expression "(long *)((long)data + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x10)" ( (binary_expression "(long)data + 0x10" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = (long)*(int *)((long)data + 0xc) * 0x60;" (assignment_expression "uVar8 = (long)*(int *)((long)data + 0xc) * 0x60" identifier = (binary_expression "(long)*(int *)((long)data + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)data + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)data + 0xc)" * (cast_expression "(int *)((long)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0xc)" ( (binary_expression "(long)data + 0xc" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal)) ;) })) (expression_statement "endian = targ->byteorder;" (assignment_expression "endian = targ->byteorder" identifier = (field_expression "targ->byteorder" identifier -> field_identifier)) ;) (expression_statement "*(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8) = targ->name;" (assignment_expression "*(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8) = targ->name" (pointer_expression "*(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8)" * (cast_expression "(char **)(*(long *)((long)data + 0x18) + -0x60 + uVar8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)((long)data + 0x18) + -0x60 + uVar8)" ( (binary_expression "*(long *)((long)data + 0x18) + -0x60 + uVar8" (binary_expression "*(long *)((long)data + 0x18) + -0x60" (pointer_expression "*(long *)((long)data + 0x18)" * (cast_expression "(long *)((long)data + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x18)" ( (binary_expression "(long)data + 0x18" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) + identifier) )))) = (field_expression "targ->name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = endian_string(endian);" (assignment_expression "pcVar4 = endian_string(endian)" identifier = (call_expression "endian_string(endian)" identifier (argument_list "(endian)" ( identifier )))) ;) (expression_statement "pcVar5 = endian_string(targ->header_byteorder);" (assignment_expression "pcVar5 = endian_string(targ->header_byteorder)" identifier = (call_expression "endian_string(targ->header_byteorder)" identifier (argument_list "(targ->header_byteorder)" ( (field_expression "targ->header_byteorder" identifier -> field_identifier) )))) ;) (expression_statement "pcVar1 = targ->name;" (assignment_expression "pcVar1 = targ->name" identifier = (field_expression "targ->name" identifier -> field_identifier)) ;) (expression_statement "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s\n (header %s, data %s)\n",5)" identifier (argument_list "(0,"%s\n (header %s, data %s)\n",5)" ( number_literal , (string_literal ""%s\n (header %s, data %s)\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "printf(__format,pcVar1,pcVar5,pcVar4);" (call_expression "printf(__format,pcVar1,pcVar5,pcVar4)" identifier (argument_list "(__format,pcVar1,pcVar5,pcVar4)" ( identifier , identifier , identifier , identifier ))) ;) comment (expression_statement "lVar6 = bfd_openw(*data,targ->name);" (assignment_expression "lVar6 = bfd_openw(*data,targ->name)" identifier = (call_expression "bfd_openw(*data,targ->name)" identifier (argument_list "(*data,targ->name)" ( (pointer_expression "*data" * identifier) , (field_expression "targ->name" identifier -> field_identifier) )))) ;) (if_statement "if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(int *)((long)data + 8);\n  }" if (parenthesized_expression "(lVar6 != 0)" ( (binary_expression "lVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(int *)((long)data + 8);\n  }" { (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_set_format(lVar6,1);" (assignment_expression "iVar2 = bfd_set_format(lVar6,1)" identifier = (call_expression "bfd_set_format(lVar6,1)" identifier (argument_list "(lVar6,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }\n    }" { (expression_statement "iVar2 = bfd_get_error();" (assignment_expression "iVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 5) {\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n        bfd_nonfatal(targ->name);\n        *(undefined4 *)((long)data + 8) = 1;\n      }" { (expression_statement "bfd_nonfatal(targ->name);" (call_expression "bfd_nonfatal(targ->name)" identifier (argument_list "(targ->name)" ( (field_expression "targ->name" identifier -> field_identifier) ))) ;) (expression_statement "*(undefined4 *)((long)data + 8) = 1;" (assignment_expression "*(undefined4 *)((long)data + 8) = 1" (pointer_expression "*(undefined4 *)((long)data + 8)" * (cast_expression "(undefined4 *)((long)data + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 8)" ( (binary_expression "(long)data + 8" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" else (compound_statement "{\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" { (do_statement "do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);" do (compound_statement "{\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }\n        iVar9 = iVar9 + 1;\n      }" { (expression_statement "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);" (assignment_expression "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" identifier = (call_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" (parenthesized_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))" ( (pointer_expression "**(code **)(*(long *)(lVar6 + 8) + 0x290)" * (pointer_expression "*(code **)(*(long *)(lVar6 + 8) + 0x290)" * (cast_expression "(code **)(*(long *)(lVar6 + 8) + 0x290)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(lVar6 + 8) + 0x290)" ( (binary_expression "*(long *)(lVar6 + 8) + 0x290" (pointer_expression "*(long *)(lVar6 + 8)" * (cast_expression "(long *)(lVar6 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(lVar6,iVar9,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;\n        }" { (expression_statement "uVar7 = bfd_printable_arch_mach(iVar9,0);" (assignment_expression "uVar7 = bfd_printable_arch_mach(iVar9,0)" identifier = (call_expression "bfd_printable_arch_mach(iVar9,0)" identifier (argument_list "(iVar9,0)" ( identifier , number_literal )))) ;) (expression_statement "printf("  %s\n",uVar7);" (call_expression "printf("  %s\n",uVar7)" identifier (argument_list "("  %s\n",uVar7)" ( (string_literal ""  %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "*(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1;" (assignment_expression "*(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)) = 1" (pointer_expression "*(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2))" * (cast_expression "(undefined1 *)\n           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2))" ( (binary_expression "(long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +\n           (ulong)(iVar9 - 2)" (binary_expression "(long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58" (binary_expression "(long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18)" (binary_expression "(long)*(int *)((long)data + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)data + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)data + 0xc)" * (cast_expression "(int *)((long)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0xc)" ( (binary_expression "(long)data + 0xc" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (pointer_expression "*(long *)((long)data + 0x18)" * (cast_expression "(long *)((long)data + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 0x18)" ( (binary_expression "(long)data + 0x18" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + number_literal) + (call_expression "(ulong)(iVar9 - 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar9 - 2)" ( (binary_expression "iVar9 - 2" identifier - number_literal) )))) )))) = number_literal) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 != 0x59)" ( (binary_expression "iVar9 != 0x59" identifier != number_literal) )) ;) }))) (expression_statement "bfd_close_all_done(lVar6);" (call_expression "bfd_close_all_done(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (return_statement "return *(int *)((long)data + 8);" return (pointer_expression "*(int *)((long)data + 8)" * (cast_expression "(int *)((long)data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 8)" ( (binary_expression "(long)data + 8" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ;) })) comment (expression_statement "bfd_nonfatal(*data);" (call_expression "bfd_nonfatal(*data)" identifier (argument_list "(*data)" ( (pointer_expression "*data" * identifier) ))) ;) (expression_statement "*(undefined4 *)((long)data + 8) = 1;" (assignment_expression "*(undefined4 *)((long)data + 8) = 1" (pointer_expression "*(undefined4 *)((long)data + 8)" * (cast_expression "(undefined4 *)((long)data + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)data + 8)" ( (binary_expression "(long)data + 8" (cast_expression "(long)data" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00103100(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00103100(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}" type_identifier (function_declarator "FUN_00103100(undefined8 *param_1,undefined8 *param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 *param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)((long)param_2 + 0xc) + 1;" (assignment_expression "iVar2 = *(int *)((long)param_2 + 0xc) + 1" identifier = (binary_expression "*(int *)((long)param_2 + 0xc) + 1" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_2 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)param_2 + 0xc) = iVar2" (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = (long)iVar2 * 0x60;" (assignment_expression "uVar8 = (long)iVar2 * 0x60" identifier = (binary_expression "(long)iVar2 * 0x60" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }" if (parenthesized_expression "((ulong)param_2[2] < uVar8)" ( (binary_expression "(ulong)param_2[2] < uVar8" (cast_expression "(ulong)param_2[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }" { (expression_statement "lVar6 = 0x3000;" (assignment_expression "lVar6 = 0x3000" identifier = number_literal) ;) (if_statement "if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }" if (parenthesized_expression "(0x3f < iVar2)" ( (binary_expression "0x3f < iVar2" number_literal < identifier) )) (compound_statement "{\n      lVar6 = (long)iVar2 * 0xc0;\n    }" { (expression_statement "lVar6 = (long)iVar2 * 0xc0;" (assignment_expression "lVar6 = (long)iVar2 * 0xc0" identifier = (binary_expression "(long)iVar2 * 0xc0" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) })) (expression_statement "lVar3 = xrealloc(param_2[3]);" (assignment_expression "lVar3 = xrealloc(param_2[3])" identifier = (call_expression "xrealloc(param_2[3])" identifier (argument_list "(param_2[3])" ( (subscript_expression "param_2[3]" identifier [ number_literal ]) )))) ;) (expression_statement "param_2[3] = lVar3;" (assignment_expression "param_2[3] = lVar3" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);" (call_expression "memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2])" identifier (argument_list "((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2])" ( (cast_expression "(void *)(param_2[2] + lVar3)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + lVar3)" ( (binary_expression "param_2[2] + lVar3" (subscript_expression "param_2[2]" identifier [ number_literal ]) + identifier) ))) , number_literal , (binary_expression "lVar6 - param_2[2]" identifier - (subscript_expression "param_2[2]" identifier [ number_literal ])) ))) ;) (expression_statement "param_2[2] = lVar6;" (assignment_expression "param_2[2] = lVar6" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;" (assignment_expression "uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60" identifier = (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)param_2 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal)) ;) })) (expression_statement "uVar1 = *(undefined4 *)((long)param_1 + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)((long)param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)((long)param_1 + 0xc)" * (cast_expression "(undefined4 *)((long)param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xc)" ( (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;" (assignment_expression "*(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1" (pointer_expression "*(undefined8 *)(param_2[3] + -0x60 + uVar8)" * (cast_expression "(undefined8 *)(param_2[3] + -0x60 + uVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[3] + -0x60 + uVar8)" ( (binary_expression "param_2[3] + -0x60 + uVar8" (binary_expression "param_2[3] + -0x60" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal) + identifier) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = FUN_00103030(uVar1);" (assignment_expression "uVar4 = FUN_00103030(uVar1)" identifier = (call_expression "FUN_00103030(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));" (assignment_expression "uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2))" identifier = (call_expression "FUN_00103030(*(undefined4 *)(param_1 + 2))" identifier (argument_list "(*(undefined4 *)(param_1 + 2))" ( (pointer_expression "*(undefined4 *)(param_1 + 2)" * (cast_expression "(undefined4 *)(param_1 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) )))) ;) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%s\n (header %s, data %s)\n",5)" identifier (argument_list "(0,"%s\n (header %s, data %s)\n",5)" ( number_literal , (string_literal ""%s\n (header %s, data %s)\n"" " string_content escape_sequence string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "printf(__format,uVar7,uVar5,uVar4);" (call_expression "printf(__format,uVar7,uVar5,uVar4)" identifier (argument_list "(__format,uVar7,uVar5,uVar4)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "lVar6 = bfd_openw(*param_2,*param_1);" (assignment_expression "lVar6 = bfd_openw(*param_2,*param_1)" identifier = (call_expression "bfd_openw(*param_2,*param_1)" identifier (argument_list "(*param_2,*param_1)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }" if (parenthesized_expression "(lVar6 != 0)" ( (binary_expression "lVar6 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }" { (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" identifier = number_literal) ;) (expression_statement "iVar2 = bfd_set_format(lVar6,1);" (assignment_expression "iVar2 = bfd_set_format(lVar6,1)" identifier = (call_expression "bfd_set_format(lVar6,1)" identifier (argument_list "(lVar6,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }" { (expression_statement "iVar2 = bfd_get_error();" (assignment_expression "iVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }" { (expression_statement "FUN_00103080(*param_1);" (call_expression "FUN_00103080(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*(undefined4 *)(param_2 + 1) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 1) = 1" (pointer_expression "*(undefined4 *)(param_2 + 1)" * (cast_expression "(undefined4 *)(param_2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" else (compound_statement "{\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" { (do_statement "do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);" do (compound_statement "{\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      }" { (expression_statement "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);" (assignment_expression "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" identifier = (call_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" (parenthesized_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))" ( (pointer_expression "**(code **)(*(long *)(lVar6 + 8) + 0x290)" * (pointer_expression "*(code **)(*(long *)(lVar6 + 8) + 0x290)" * (cast_expression "(code **)(*(long *)(lVar6 + 8) + 0x290)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(lVar6 + 8) + 0x290)" ( (binary_expression "*(long *)(lVar6 + 8) + 0x290" (pointer_expression "*(long *)(lVar6 + 8)" * (cast_expression "(long *)(lVar6 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(lVar6,iVar9,0)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }" { (expression_statement "uVar7 = bfd_printable_arch_mach(iVar9,0);" (assignment_expression "uVar7 = bfd_printable_arch_mach(iVar9,0)" identifier = (call_expression "bfd_printable_arch_mach(iVar9,0)" identifier (argument_list "(iVar9,0)" ( identifier , number_literal )))) ;) (expression_statement "printf("  %s\n",uVar7);" (call_expression "printf("  %s\n",uVar7)" identifier (argument_list "("  %s\n",uVar7)" ( (string_literal ""  %s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;" (assignment_expression "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1" (pointer_expression "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" * (cast_expression "(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" ( (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3]" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)param_2 + 0xc)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)param_2 + 0xc)" * (cast_expression "(int *)((long)param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0xc)" ( (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal) + (subscript_expression "param_2[3]" identifier [ number_literal ])) + number_literal) + (call_expression "(ulong)(iVar9 - 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar9 - 2)" ( (binary_expression "iVar9 - 2" identifier - number_literal) )))) )))) = number_literal) ;) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar9 != 0x59)" ( (binary_expression "iVar9 != 0x59" identifier != number_literal) )) ;) }))) (expression_statement "bfd_close_all_done(lVar6);" (call_expression "bfd_close_all_done(lVar6)" identifier (argument_list "(lVar6)" ( identifier ))) ;) (return_statement "return *(undefined4 *)(param_2 + 1);" return (pointer_expression "*(undefined4 *)(param_2 + 1)" * (cast_expression "(undefined4 *)(param_2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00103080(*param_2);" (call_expression "FUN_00103080(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "*(undefined4 *)(param_2 + 1) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 1) = 1" (pointer_expression "*(undefined4 *)(param_2 + 1)" * (cast_expression "(undefined4 *)(param_2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) ))) , LIT , (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) * LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) + IDENT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) }) (else_clause else (compound_statement { (do_statement do (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) * LIT) + (subscript_expression IDENT [ LIT ])) + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) )))) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00103100(undefined8 *param_1,undefined8 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00103100(undefined8 *param_1,undefined8 *param_2)" (identifier "FUN_00103100") (parameter_list "(undefined8 *param_1,undefined8 *param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined8 uVar4;\n  undefined8 uVar5;\n  char *__format;\n  long lVar6;\n  undefined8 uVar7;\n  ulong uVar8;\n  int iVar9;\n  \n  iVar2 = *(int *)((long)param_2 + 0xc) + 1;\n  *(int *)((long)param_2 + 0xc) = iVar2;\n  uVar8 = (long)iVar2 * 0x60;\n  if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }\n  uVar1 = *(undefined4 *)((long)param_1 + 0xc);\n  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;\n  uVar4 = FUN_00103030(uVar1);\n  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));\n  uVar7 = *param_1;\n  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);\n  printf(__format,uVar7,uVar5,uVar4);\n  lVar6 = bfd_openw(*param_2,*param_1);\n  if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }\n  FUN_00103080(*param_2);\n  *(undefined4 *)(param_2 + 1) = 1;\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (declaration "ulong uVar8;" (type_identifier "ulong") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (expression_statement "iVar2 = *(int *)((long)param_2 + 0xc) + 1;" (assignment_expression "iVar2 = *(int *)((long)param_2 + 0xc) + 1" (identifier "iVar2") (= "=") (binary_expression "*(int *)((long)param_2 + 0xc) + 1" (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)((long)param_2 + 0xc) = iVar2;" (assignment_expression "*(int *)((long)param_2 + 0xc) = iVar2" (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "uVar8 = (long)iVar2 * 0x60;" (assignment_expression "uVar8 = (long)iVar2 * 0x60" (identifier "uVar8") (= "=") (binary_expression "(long)iVar2 * 0x60" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "0x60"))) (; ";")) (if_statement "if ((ulong)param_2[2] < uVar8) {\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }" (if "if") (parenthesized_expression "((ulong)param_2[2] < uVar8)" (( "(") (binary_expression "(ulong)param_2[2] < uVar8" (cast_expression "(ulong)param_2[2]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "uVar8")) () ")")) (compound_statement "{\n    lVar6 = 0x3000;\n    if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }\n    lVar3 = xrealloc(param_2[3]);\n    param_2[3] = lVar3;\n    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);\n    param_2[2] = lVar6;\n    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;\n  }" ({ "{") (expression_statement "lVar6 = 0x3000;" (assignment_expression "lVar6 = 0x3000" (identifier "lVar6") (= "=") (number_literal "0x3000")) (; ";")) (if_statement "if (0x3f < iVar2) {\n      lVar6 = (long)iVar2 * 0xc0;\n    }" (if "if") (parenthesized_expression "(0x3f < iVar2)" (( "(") (binary_expression "0x3f < iVar2" (number_literal "0x3f") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n      lVar6 = (long)iVar2 * 0xc0;\n    }" ({ "{") (expression_statement "lVar6 = (long)iVar2 * 0xc0;" (assignment_expression "lVar6 = (long)iVar2 * 0xc0" (identifier "lVar6") (= "=") (binary_expression "(long)iVar2 * 0xc0" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "0xc0"))) (; ";")) (} "}"))) (expression_statement "lVar3 = xrealloc(param_2[3]);" (assignment_expression "lVar3 = xrealloc(param_2[3])" (identifier "lVar3") (= "=") (call_expression "xrealloc(param_2[3])" (identifier "xrealloc") (argument_list "(param_2[3])" (( "(") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (expression_statement "param_2[3] = lVar3;" (assignment_expression "param_2[3] = lVar3" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "lVar3")) (; ";")) (expression_statement "memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);" (call_expression "memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2])" (identifier "memset") (argument_list "((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2])" (( "(") (cast_expression "(void *)(param_2[2] + lVar3)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + lVar3)" (( "(") (binary_expression "param_2[2] + lVar3" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (identifier "lVar3")) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "lVar6 - param_2[2]" (identifier "lVar6") (- "-") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";")) (expression_statement "param_2[2] = lVar6;" (assignment_expression "param_2[2] = lVar6" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar6")) (; ";")) (expression_statement "uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;" (assignment_expression "uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60" (identifier "uVar8") (= "=") (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")"))))) (* "*") (number_literal "0x60"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined4 *)((long)param_1 + 0xc);" (assignment_expression "uVar1 = *(undefined4 *)((long)param_1 + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)((long)param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)((long)param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xc)" (( "(") (binary_expression "(long)param_1 + 0xc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;" (assignment_expression "*(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1" (pointer_expression "*(undefined8 *)(param_2[3] + -0x60 + uVar8)" (* "*") (cast_expression "(undefined8 *)(param_2[3] + -0x60 + uVar8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[3] + -0x60 + uVar8)" (( "(") (binary_expression "param_2[3] + -0x60 + uVar8" (binary_expression "param_2[3] + -0x60" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "-0x60")) (+ "+") (identifier "uVar8")) () ")")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = FUN_00103030(uVar1);" (assignment_expression "uVar4 = FUN_00103030(uVar1)" (identifier "uVar4") (= "=") (call_expression "FUN_00103030(uVar1)" (identifier "FUN_00103030") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));" (assignment_expression "uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2))" (identifier "uVar5") (= "=") (call_expression "FUN_00103030(*(undefined4 *)(param_1 + 2))" (identifier "FUN_00103030") (argument_list "(*(undefined4 *)(param_1 + 2))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 2)" (* "*") (cast_expression "(undefined4 *)(param_1 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar7 = *param_1;" (assignment_expression "uVar7 = *param_1" (identifier "uVar7") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);" (assignment_expression "__format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" (identifier "__format") (= "=") (cast_expression "(char *)dcgettext(0,"%s\n (header %s, data %s)\n",5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "dcgettext(0,"%s\n (header %s, data %s)\n",5)" (identifier "dcgettext") (argument_list "(0,"%s\n (header %s, data %s)\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%s\n (header %s, data %s)\n"" (" """) (string_content "%s") (escape_sequence "\n") (string_content " (header %s, data %s)") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")"))))) (; ";")) (expression_statement "printf(__format,uVar7,uVar5,uVar4);" (call_expression "printf(__format,uVar7,uVar5,uVar4)" (identifier "printf") (argument_list "(__format,uVar7,uVar5,uVar4)" (( "(") (identifier "__format") (, ",") (identifier "uVar7") (, ",") (identifier "uVar5") (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "lVar6 = bfd_openw(*param_2,*param_1);" (assignment_expression "lVar6 = bfd_openw(*param_2,*param_1)" (identifier "lVar6") (= "=") (call_expression "bfd_openw(*param_2,*param_1)" (identifier "bfd_openw") (argument_list "(*param_2,*param_1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (if_statement "if (lVar6 != 0) {\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }" (if "if") (parenthesized_expression "(lVar6 != 0)" (( "(") (binary_expression "lVar6 != 0" (identifier "lVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar9 = 2;\n    iVar2 = bfd_set_format(lVar6,1);\n    if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }\n    bfd_close_all_done(lVar6);\n    return *(undefined4 *)(param_2 + 1);\n  }" ({ "{") (expression_statement "iVar9 = 2;" (assignment_expression "iVar9 = 2" (identifier "iVar9") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar2 = bfd_set_format(lVar6,1);" (assignment_expression "iVar2 = bfd_set_format(lVar6,1)" (identifier "iVar2") (= "=") (call_expression "bfd_set_format(lVar6,1)" (identifier "bfd_set_format") (argument_list "(lVar6,1)" (( "(") (identifier "lVar6") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }\n    else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = bfd_get_error();\n      if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }\n    }" ({ "{") (expression_statement "iVar2 = bfd_get_error();" (assignment_expression "iVar2 = bfd_get_error()" (identifier "iVar2") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 5) {\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }" (if "if") (parenthesized_expression "(iVar2 != 5)" (( "(") (binary_expression "iVar2 != 5" (identifier "iVar2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n        FUN_00103080(*param_1);\n        *(undefined4 *)(param_2 + 1) = 1;\n      }" ({ "{") (expression_statement "FUN_00103080(*param_1);" (call_expression "FUN_00103080(*param_1)" (identifier "FUN_00103080") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 1) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 1) = 1" (pointer_expression "*(undefined4 *)(param_2 + 1)" (* "*") (cast_expression "(undefined4 *)(param_2 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" (else "else") (compound_statement "{\n      do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);\n    }" ({ "{") (do_statement "do {\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      } while (iVar9 != 0x59);" (do "do") (compound_statement "{\n        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);\n        if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }\n        iVar9 = iVar9 + 1;\n      }" ({ "{") (expression_statement "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);" (assignment_expression "iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0)" (parenthesized_expression "(**(code **)(*(long *)(lVar6 + 8) + 0x290))" (( "(") (pointer_expression "**(code **)(*(long *)(lVar6 + 8) + 0x290)" (* "*") (pointer_expression "*(code **)(*(long *)(lVar6 + 8) + 0x290)" (* "*") (cast_expression "(code **)(*(long *)(lVar6 + 8) + 0x290)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(lVar6 + 8) + 0x290)" (( "(") (binary_expression "*(long *)(lVar6 + 8) + 0x290" (pointer_expression "*(long *)(lVar6 + 8)" (* "*") (cast_expression "(long *)(lVar6 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 8)" (( "(") (binary_expression "lVar6 + 8" (identifier "lVar6") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x290")) () ")"))))) () ")")) (argument_list "(lVar6,iVar9,0)" (( "(") (identifier "lVar6") (, ",") (identifier "iVar9") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar7 = bfd_printable_arch_mach(iVar9,0);\n          printf("  %s\n",uVar7);\n          *(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;\n        }" ({ "{") (expression_statement "uVar7 = bfd_printable_arch_mach(iVar9,0);" (assignment_expression "uVar7 = bfd_printable_arch_mach(iVar9,0)" (identifier "uVar7") (= "=") (call_expression "bfd_printable_arch_mach(iVar9,0)" (identifier "bfd_printable_arch_mach") (argument_list "(iVar9,0)" (( "(") (identifier "iVar9") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "printf("  %s\n",uVar7);" (call_expression "printf("  %s\n",uVar7)" (identifier "printf") (argument_list "("  %s\n",uVar7)" (( "(") (string_literal ""  %s\n"" (" """) (string_content "  %s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1;" (assignment_expression "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =\n               1" (pointer_expression "*(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" (* "*") (cast_expression "(undefined1 *)\n           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2))" (( "(") (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3]" (binary_expression "(long)*(int *)((long)param_2 + 0xc) * 0x60" (cast_expression "(long)*(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)((long)param_2 + 0xc)" (* "*") (cast_expression "(int *)((long)param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0xc)" (( "(") (binary_expression "(long)param_2 + 0xc" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")"))))) (* "*") (number_literal "0x60")) (+ "+") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (+ "+") (number_literal "-0x58")) (+ "+") (call_expression "(ulong)(iVar9 - 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar9 - 2)" (( "(") (binary_expression "iVar9 - 2" (identifier "iVar9") (- "-") (number_literal "2")) () ")")))) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar9 != 0x59)" (( "(") (binary_expression "iVar9 != 0x59" (identifier "iVar9") (!= "!=") (number_literal "0x59")) () ")")) (; ";")) (} "}")))) (expression_statement "bfd_close_all_done(lVar6);" (call_expression "bfd_close_all_done(lVar6)" (identifier "bfd_close_all_done") (argument_list "(lVar6)" (( "(") (identifier "lVar6") () ")"))) (; ";")) (return_statement "return *(undefined4 *)(param_2 + 1);" (return "return") (pointer_expression "*(undefined4 *)(param_2 + 1)" (* "*") (cast_expression "(undefined4 *)(param_2 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00103080(*param_2);" (call_expression "FUN_00103080(*param_2)" (identifier "FUN_00103080") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 1) = 1;" (assignment_expression "*(undefined4 *)(param_2 + 1) = 1" (pointer_expression "*(undefined4 *)(param_2 + 1)" (* "*") (cast_expression "(undefined4 *)(param_2 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(type_1 *targ,void *data)

{
  type_2 endian;
  char *pcVar1;
  int var_2;
  long var_5;
  char *pcVar4;
  char *pcVar5;
  char *__format;
  long var_6;
  type_3 uVar7;
  type_4 var_1;
  int var_15;
  type_5 *param;
  
  var_2 = *(int *)((long)data + 0xc) + 1;
  *(int *)((long)data + 0xc) = var_2;
  var_1 = (long)var_2 * 0x60;
  if (*(type_4 *)((long)data + 0x10) < var_1) {
    var_6 = 0x3000;
    if (0x3f < var_2) {
      var_6 = (long)var_2 * 0xc0;
    }
    var_5 = var_3(*(type_3 *)((long)data + 0x18));
    *(long *)((long)data + 0x18) = var_5;
    var_4((void *)(*(long *)((long)data + 0x10) + var_5),0,var_6 - *(long *)((long)data + 0x10));
    *(long *)((long)data + 0x10) = var_6;
    var_1 = (long)*(int *)((long)data + 0xc) * 0x60;
  }
  endian = targ->byteorder;
  *(char **)(*(long *)((long)data + 0x18) + -0x60 + var_1) = targ->name;
  pcVar4 = var_7(endian);
  pcVar5 = var_7(targ->header_byteorder);
  pcVar1 = targ->name;
  __format = (char *)var_8(0,"%s\n (header %s, data %s)\n",5);
  var_9(__format,pcVar1,pcVar5,pcVar4);
                    /* WARNING: Load size is inaccurate */
  var_6 = var_10(*data,targ->name);
  if (var_6 != 0) {
    var_15 = 2;
    var_2 = var_11(var_6,1);
    if (var_2 == 0) {
      var_2 = var_12();
      if (var_2 != 5) {
        var_13(targ->name);
        *(type_6 *)((long)data + 8) = 1;
      }
    }
    else {
      do {
        var_2 = (**(type_7 **)(*(long *)(var_6 + 8) + 0x290))(var_6,var_15,0);
        if (var_2 != 0) {
          uVar7 = var_14(var_15,0);
          var_9("  %s\n",uVar7);
          *(type_8 *)
           ((long)*(int *)((long)data + 0xc) * 0x60 + *(long *)((long)data + 0x18) + -0x58 +
           (type_4)(var_15 - 2)) = 1;
        }
        var_15 = var_15 + 1;
      } while (var_15 != 0x59);
    }
    var_16(var_6);
    return *(int *)((long)data + 8);
  }
                    /* WARNING: Load size is inaccurate */
  var_13(*data);
  *(type_6 *)((long)data + 8) = 1;
  return 1;
}


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

undefined4 MASKED(undefined8 *param_1,undefined8 *param_2)

{
  undefined4 uVar1;
  int iVar2;
  long lVar3;
  undefined8 uVar4;
  undefined8 uVar5;
  char *__format;
  long lVar6;
  undefined8 uVar7;
  ulong uVar8;
  int iVar9;
  
  iVar2 = *(int *)((long)param_2 + 0xc) + 1;
  *(int *)((long)param_2 + 0xc) = iVar2;
  uVar8 = (long)iVar2 * 0x60;
  if ((ulong)param_2[2] < uVar8) {
    lVar6 = 0x3000;
    if (0x3f < iVar2) {
      lVar6 = (long)iVar2 * 0xc0;
    }
    lVar3 = xrealloc(param_2[3]);
    param_2[3] = lVar3;
    memset((void *)(param_2[2] + lVar3),0,lVar6 - param_2[2]);
    param_2[2] = lVar6;
    uVar8 = (long)*(int *)((long)param_2 + 0xc) * 0x60;
  }
  uVar1 = *(undefined4 *)((long)param_1 + 0xc);
  *(undefined8 *)(param_2[3] + -0x60 + uVar8) = *param_1;
  uVar4 = FUN_00103030(uVar1);
  uVar5 = FUN_00103030(*(undefined4 *)(param_1 + 2));
  uVar7 = *param_1;
  __format = (char *)dcgettext(0,"%s\n (header %s, data %s)\n",5);
  printf(__format,uVar7,uVar5,uVar4);
  lVar6 = bfd_openw(*param_2,*param_1);
  if (lVar6 != 0) {
    iVar9 = 2;
    iVar2 = bfd_set_format(lVar6,1);
    if (iVar2 == 0) {
      iVar2 = bfd_get_error();
      if (iVar2 != 5) {
        FUN_00103080(*param_1);
        *(undefined4 *)(param_2 + 1) = 1;
      }
    }
    else {
      do {
        iVar2 = (**(code **)(*(long *)(lVar6 + 8) + 0x290))(lVar6,iVar9,0);
        if (iVar2 != 0) {
          uVar7 = bfd_printable_arch_mach(iVar9,0);
          printf("  %s\n",uVar7);
          *(undefined1 *)
           ((long)*(int *)((long)param_2 + 0xc) * 0x60 + param_2[3] + -0x58 + (ulong)(iVar9 - 2)) =
               1;
        }
        iVar9 = iVar9 + 1;
      } while (iVar9 != 0x59);
    }
    bfd_close_all_done(lVar6);
    return *(undefined4 *)(param_2 + 1);
  }
  FUN_00103080(*param_2);
  *(undefined4 *)(param_2 + 1) = 1;
  return 1;
}

