
int do_display_target(bfd_target *targ,void *data)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  char *pcVar4;
  char *pcVar5;
  int iVar6;
  uint uVar7;
  undefined *puVar8;
  undefined *puVar9;
  char *pcVar10;
  
  iVar1 = *(int *)((int)data + 8) + 1;
  uVar7 = iVar1 * 0x5c;
  *(int *)((int)data + 8) = iVar1;
  if (*(uint *)((int)data + 0xc) < uVar7) {
    if (iVar1 < 0x40) {
      iVar1 = 0x2e00;
    }
    else {
      iVar1 = iVar1 * 0xb8;
    }
    iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);
    *(int *)((int)data + 0x10) = iVar2;
    (*(code *)PTR_memset_000261d0)
              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));
    *(int *)((int)data + 0xc) = iVar1;
    uVar7 = *(int *)((int)data + 8) * 0x5c;
  }
  puVar9 = PTR_dcgettext_00026250;
  puVar8 = PTR_00026104 + 0x5a88;
  *(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c) = targ->name;
  uVar3 = (*(code *)puVar9)(0,puVar8,5);
  pcVar10 = targ->name;
  pcVar4 = endian_string(targ->header_byteorder);
  pcVar5 = endian_string(targ->byteorder);
  (*(code *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5);
                    /* WARNING: Load size is inaccurate */
  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*data,targ->name);
  if (iVar1 == 0) {
                    /* WARNING: Load size is inaccurate */
    bfd_nonfatal(*data);
    *(undefined4 *)((int)data + 4) = 1;
    return 1;
  }
  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);
  if (iVar2 == 0) {
    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();
    if (iVar2 != 5) {
      bfd_nonfatal(targ->name);
      *(undefined4 *)((int)data + 4) = 1;
    }
  }
  else {
    iVar2 = 2;
    puVar9 = PTR_00026104 + 0x5aa4;
    do {
      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {
        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);
        (*(code *)PTR_printf_00026284)(puVar9,uVar3);
        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;
        iVar2 = iVar2 + 1;
        *(undefined1 *)(iVar6 + -0x5a) = 1;
        if (iVar2 == 0x59) goto LAB_0001291c;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 != 0x59);
  }
LAB_0001291c:
  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);
  return *(int *)((int)data + 4);
}



undefined4 FUN_0001272c(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  uint uVar7;
  undefined *puVar8;
  undefined *puVar9;
  undefined4 uVar10;
  
  iVar1 = param_2[2] + 1;
  uVar7 = iVar1 * 0x5c;
  param_2[2] = iVar1;
  if ((uint)param_2[3] < uVar7) {
    if (iVar1 < 0x40) {
      iVar1 = 0x2e00;
    }
    else {
      iVar1 = iVar1 * 0xb8;
    }
    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);
    param_2[4] = iVar2;
    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);
    param_2[3] = iVar1;
    uVar7 = param_2[2] * 0x5c;
  }
  puVar9 = PTR_dcgettext_00026250;
  puVar8 = PTR_00026104 + 0x5a88;
  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;
  uVar3 = (*(code *)puVar9)(0,puVar8,5);
  uVar10 = *param_1;
  uVar4 = FUN_00012608(param_1[3]);
  uVar5 = FUN_00012608(param_1[2]);
  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);
  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);
  if (iVar1 == 0) {
    bfd_nonfatal(*param_2);
    param_2[1] = 1;
    return 1;
  }
  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);
  if (iVar2 == 0) {
    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();
    if (iVar2 != 5) {
      bfd_nonfatal(*param_1);
      param_2[1] = 1;
    }
  }
  else {
    iVar2 = 2;
    puVar9 = PTR_00026104 + 0x5aa4;
    do {
      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {
        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);
        (*(code *)PTR_printf_00026284)(puVar9,uVar3);
        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;
        iVar2 = iVar2 + 1;
        *(undefined1 *)(iVar6 + -0x5a) = 1;
        if (iVar2 == 0x59) goto LAB_0001291c;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 != 0x59);
  }
LAB_0001291c:
  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);
  return param_2[1];
}


lui gp,0x2
addiu gp,gp,-0x465c
addu gp,gp,t9
lw v0,0x8(a1)
li v1,0x5c
addiu sp,sp,-0x38
addiu v0,v0,0x1
sw s2,0x20(sp)
or s2,a0,zero
mul v1,v0,v1
sw gp,0x10(sp)
sw s3,0x24(sp)
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw v0,0x8(a1)
lw a0,0xc(a1)
sltu a0,a0,v1
beq a0,zero,0x000127dc
_or s3,a1,zero
slti v1,v0,0x40
beq v1,zero,0x00012950
_li s0,0xb8
li s0,0x2e00
lw t9,-0x7e88(gp)
or a1,s0,zero
jalr t9
_lw a0,0x10(s3)
or a1,zero,zero
lw gp,0x10(sp)
lw a0,0xc(s3)
sw v0,0x10(s3)
lw t9,-0x7f00(gp)
subu a2,s0,a0
jalr t9
_addu a0,v0,a0
li v0,0x5c
lw v1,0x8(s3)
lw gp,0x10(sp)
sw s0,0xc(s3)
mul v1,v1,v0
lw v0,0x10(s3)
li a2,0x5
lw a1,-0x7fcc(gp)
or a0,zero,zero
lw a3,0x0(s2)
addu v1,v0,v1
lw t9,-0x7e80(gp)
addiu a1,a1,0x5a88
jalr t9
_sw a3,-0x5c(v1)
lw gp,0x10(sp)
or s4,v0,zero
lw a0,0xc(s2)
lw s0,-0x7fcc(gp)
addiu s0,s0,0x2608
or t9,s0,zero
bal 0x00012608
_lw s5,0x0(s2)
or t9,s0,zero
lw a0,0x8(s2)
bal 0x00012608
_or s1,v0,zero
or a2,s1,zero
lw gp,0x10(sp)
or a1,s5,zero
or a0,s4,zero
lw t9,-0x7e4c(gp)
jalr t9
_or a3,v0,zero
lw gp,0x10(sp)
lw a1,0x0(s2)
lw t9,-0x7f14(gp)
jalr t9
_lw a0,0x0(s3)
lw gp,0x10(sp)
beq v0,zero,0x0001298c
_or s1,v0,zero
lw t9,-0x7ed4(gp)
li a1,0x1
jalr t9
_or a0,v0,zero
beq v0,zero,0x00012958
_lw gp,0x10(sp)
lw s4,-0x7fcc(gp)
li s0,0x2
li s6,0x5c
li s5,0x1
addiu s4,s4,0x5aa4
b 0x000128b0
_li s2,0x59
addiu s0,s0,0x1
beq s0,s2,0x0001291c
_lw t9,-0x7ee4(gp)
lw v0,0x4(s1)
or a2,zero,zero
or a1,s0,zero
lw t9,0x154(v0)
jalr t9
_or a0,s1,zero
beq v0,zero,0x000128a4
_lw gp,0x10(sp)
lw t9,-0x7ef4(gp)
or a1,zero,zero
jalr t9
_or a0,s0,zero
or a0,s4,zero
lw gp,0x10(sp)
lw t9,-0x7e4c(gp)
jalr t9
_or a1,v0,zero
lw v0,0x8(s3)
lw v1,0x10(s3)
lw gp,0x10(sp)
mul a0,v0,s6
addu v0,a0,v1
addu v0,v0,s0
addiu s0,s0,0x1
bne s0,s2,0x000128b0
_sb s5,-0x5a(v0)
lw t9,-0x7ee4(gp)
jalr t9
_or a0,s1,zero
lw ra,0x34(sp)
lw v0,0x4(s3)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
b 0x00012798
_mul s0,v0,s0
lw t9,-0x7e9c(gp)
jalr t9
_nop
li v1,0x5
beq v0,v1,0x00012918
_lw gp,0x10(sp)
lw t9,-0x7fb0(gp)
bal 0x00012660
_lw a0,0x0(s2)
li v0,0x1
lw gp,0x10(sp)
b 0x00012918
_sw v0,0x4(s3)
lw t9,-0x7fb0(gp)
bal 0x00012660
_lw a0,0x0(s3)
li v1,0x1
lw ra,0x34(sp)
li v0,0x1
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sw v1,0x4(s3)
lw s3,0x24(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 FUN_0001272c(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}\n\n" (function_definition "undefined4 FUN_0001272c(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}" type_identifier (function_declarator "FUN_0001272c(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (expression_statement "iVar1 = param_2[2] + 1;" (assignment_expression "iVar1 = param_2[2] + 1" identifier = (binary_expression "param_2[2] + 1" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "uVar7 = iVar1 * 0x5c;" (assignment_expression "uVar7 = iVar1 * 0x5c" identifier = (binary_expression "iVar1 * 0x5c" identifier * number_literal)) ;) (expression_statement "param_2[2] = iVar1;" (assignment_expression "param_2[2] = iVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }" if (parenthesized_expression "((uint)param_2[3] < uVar7)" ( (binary_expression "(uint)param_2[3] < uVar7" (cast_expression "(uint)param_2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[3]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }" { (if_statement "if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }" if (parenthesized_expression "(iVar1 < 0x40)" ( (binary_expression "iVar1 < 0x40" identifier < number_literal) )) (compound_statement "{\n      iVar1 = 0x2e00;\n    }" { (expression_statement "iVar1 = 0x2e00;" (assignment_expression "iVar1 = 0x2e00" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = iVar1 * 0xb8;\n    }" else (compound_statement "{\n      iVar1 = iVar1 * 0xb8;\n    }" { (expression_statement "iVar1 = iVar1 * 0xb8;" (assignment_expression "iVar1 = iVar1 * 0xb8" identifier = (binary_expression "iVar1 * 0xb8" identifier * number_literal)) ;) }))) (expression_statement "iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1)" identifier = (call_expression "(*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1)" (parenthesized_expression "(*(code *)PTR_xrealloc_00026248)" ( (pointer_expression "*(code *)PTR_xrealloc_00026248" * (cast_expression "(code *)PTR_xrealloc_00026248" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[4],iVar1)" ( (subscript_expression "param_2[4]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "param_2[4] = iVar2;" (assignment_expression "param_2[4] = iVar2" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);" (call_expression "(*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3])" (parenthesized_expression "(*(code *)PTR_memset_000261d0)" ( (pointer_expression "*(code *)PTR_memset_000261d0" * (cast_expression "(code *)PTR_memset_000261d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + param_2[3],0,iVar1 - param_2[3])" ( (binary_expression "iVar2 + param_2[3]" identifier + (subscript_expression "param_2[3]" identifier [ number_literal ])) , number_literal , (binary_expression "iVar1 - param_2[3]" identifier - (subscript_expression "param_2[3]" identifier [ number_literal ])) ))) ;) (expression_statement "param_2[3] = iVar1;" (assignment_expression "param_2[3] = iVar1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar7 = param_2[2] * 0x5c;" (assignment_expression "uVar7 = param_2[2] * 0x5c" identifier = (binary_expression "param_2[2] * 0x5c" (subscript_expression "param_2[2]" identifier [ number_literal ]) * number_literal)) ;) })) (expression_statement "puVar9 = PTR_dcgettext_00026250;" (assignment_expression "puVar9 = PTR_dcgettext_00026250" identifier = identifier) ;) (expression_statement "puVar8 = PTR_00026104 + 0x5a88;" (assignment_expression "puVar8 = PTR_00026104 + 0x5a88" identifier = (binary_expression "PTR_00026104 + 0x5a88" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;" (assignment_expression "*(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1" (pointer_expression "*(undefined4 *)(param_2[4] + uVar7 + -0x5c)" * (cast_expression "(undefined4 *)(param_2[4] + uVar7 + -0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + uVar7 + -0x5c)" ( (binary_expression "param_2[4] + uVar7 + -0x5c" (binary_expression "param_2[4] + uVar7" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = (*(code *)puVar9)(0,puVar8,5);" (assignment_expression "uVar3 = (*(code *)puVar9)(0,puVar8,5)" identifier = (call_expression "(*(code *)puVar9)(0,puVar8,5)" (parenthesized_expression "(*(code *)puVar9)" ( (pointer_expression "*(code *)puVar9" * (cast_expression "(code *)puVar9" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar8,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "uVar10 = *param_1;" (assignment_expression "uVar10 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = FUN_00012608(param_1[3]);" (assignment_expression "uVar4 = FUN_00012608(param_1[3])" identifier = (call_expression "FUN_00012608(param_1[3])" identifier (argument_list "(param_1[3])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar5 = FUN_00012608(param_1[2]);" (assignment_expression "uVar5 = FUN_00012608(param_1[2])" identifier = (call_expression "FUN_00012608(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "(*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);" (call_expression "(*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" ( (pointer_expression "*(code *)PTR_printf_00026284" * (cast_expression "(code *)PTR_printf_00026284" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar10,uVar4,uVar5)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1)" identifier = (call_expression "(*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1)" (parenthesized_expression "(*(code *)PTR_bfd_openw_000261bc)" ( (pointer_expression "*(code *)PTR_bfd_openw_000261bc" * (cast_expression "(code *)PTR_bfd_openw_000261bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_2,*param_1)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }" { (expression_statement "bfd_nonfatal(*param_2);" (call_expression "bfd_nonfatal(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);" (assignment_expression "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" identifier = (call_expression "(*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" (parenthesized_expression "(*(code *)PTR_bfd_set_format_000261fc)" ( (pointer_expression "*(code *)PTR_bfd_set_format_000261fc" * (cast_expression "(code *)PTR_bfd_set_format_000261fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_bfd_get_error_00026234)();" (assignment_expression "iVar2 = (*(code *)PTR_bfd_get_error_00026234)()" identifier = (call_expression "(*(code *)PTR_bfd_get_error_00026234)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_00026234)" ( (pointer_expression "*(code *)PTR_bfd_get_error_00026234" * (cast_expression "(code *)PTR_bfd_get_error_00026234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }" { (expression_statement "bfd_nonfatal(*param_1);" (call_expression "bfd_nonfatal(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" else (compound_statement "{\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "puVar9 = PTR_00026104 + 0x5aa4;" (assignment_expression "puVar9 = PTR_00026104 + 0x5aa4" identifier = (binary_expression "PTR_00026104 + 0x5aa4" identifier + number_literal)) ;) (do_statement "do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);" do (compound_statement "{\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    }" { (while_statement "while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" while (parenthesized_expression "(iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0)" ( (comma_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0" (assignment_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" identifier = (call_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" (parenthesized_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))" ( (pointer_expression "**(code **)(*(int *)(iVar1 + 4) + 0x154)" * (pointer_expression "*(code **)(*(int *)(iVar1 + 4) + 0x154)" * (cast_expression "(code **)(*(int *)(iVar1 + 4) + 0x154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 4) + 0x154)" ( (binary_expression "*(int *)(iVar1 + 4) + 0x154" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar1,iVar2,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) )) (compound_statement "{\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" { (expression_statement "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);" (assignment_expression "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" identifier = (call_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" (parenthesized_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)" ( (pointer_expression "*(code *)PTR_bfd_printable_arch_mach_000261dc" * (cast_expression "(code *)PTR_bfd_printable_arch_mach_000261dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR_printf_00026284)(puVar9,uVar3);" (call_expression "(*(code *)PTR_printf_00026284)(puVar9,uVar3)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" ( (pointer_expression "*(code *)PTR_printf_00026284" * (cast_expression "(code *)PTR_printf_00026284" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,uVar3)" ( identifier , identifier ))) ;) (expression_statement "iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;" (assignment_expression "iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2" identifier = (binary_expression "param_2[2] * 0x5c + param_2[4] + iVar2" (binary_expression "param_2[2] * 0x5c + param_2[4]" (binary_expression "param_2[2] * 0x5c" (subscript_expression "param_2[2]" identifier [ number_literal ]) * number_literal) + (subscript_expression "param_2[4]" identifier [ number_literal ])) + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar6 + -0x5a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + -0x5a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + -0x5a)" * (cast_expression "(undefined1 *)(iVar6 + -0x5a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + -0x5a)" ( (binary_expression "iVar6 + -0x5a" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar2 == 0x59) goto LAB_0001291c;" if (parenthesized_expression "(iVar2 == 0x59)" ( (binary_expression "iVar2 == 0x59" identifier == number_literal) )) (goto_statement "goto LAB_0001291c;" goto statement_identifier ;)) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0x59)" ( (binary_expression "iVar2 != 0x59" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" statement_identifier : (expression_statement "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" (call_expression "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1)" (parenthesized_expression "(*(code *)PTR_bfd_close_all_done_000261ec)" ( (pointer_expression "*(code *)PTR_bfd_close_all_done_000261ec" * (cast_expression "(code *)PTR_bfd_close_all_done_000261ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;)) (return_statement "return param_2[1];" return (subscript_expression "param_2[1]" identifier [ number_literal ]) ;) })))
(translation_unit "int do_display_target(bfd_target *targ,void *data)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  char *pcVar10;\n  \n  iVar1 = *(int *)((int)data + 8) + 1;\n  uVar7 = iVar1 * 0x5c;\n  *(int *)((int)data + 8) = iVar1;\n  if (*(uint *)((int)data + 0xc) < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);\n    *(int *)((int)data + 0x10) = iVar2;\n    (*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));\n    *(int *)((int)data + 0xc) = iVar1;\n    uVar7 = *(int *)((int)data + 8) * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c) = targ->name;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  pcVar10 = targ->name;\n  pcVar4 = endian_string(targ->header_byteorder);\n  pcVar5 = endian_string(targ->byteorder);\n  (*(code *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5);\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*data,targ->name);\n  if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n    bfd_nonfatal(*data);\n    *(undefined4 *)((int)data + 4) = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return *(int *)((int)data + 4);\n}\n\n" (function_definition "int do_display_target(bfd_target *targ,void *data)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  char *pcVar10;\n  \n  iVar1 = *(int *)((int)data + 8) + 1;\n  uVar7 = iVar1 * 0x5c;\n  *(int *)((int)data + 8) = iVar1;\n  if (*(uint *)((int)data + 0xc) < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);\n    *(int *)((int)data + 0x10) = iVar2;\n    (*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));\n    *(int *)((int)data + 0xc) = iVar1;\n    uVar7 = *(int *)((int)data + 8) * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c) = targ->name;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  pcVar10 = targ->name;\n  pcVar4 = endian_string(targ->header_byteorder);\n  pcVar5 = endian_string(targ->byteorder);\n  (*(code *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5);\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*data,targ->name);\n  if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n    bfd_nonfatal(*data);\n    *(undefined4 *)((int)data + 4) = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return *(int *)((int)data + 4);\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  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  char *pcVar10;\n  \n  iVar1 = *(int *)((int)data + 8) + 1;\n  uVar7 = iVar1 * 0x5c;\n  *(int *)((int)data + 8) = iVar1;\n  if (*(uint *)((int)data + 0xc) < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);\n    *(int *)((int)data + 0x10) = iVar2;\n    (*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));\n    *(int *)((int)data + 0xc) = iVar1;\n    uVar7 = *(int *)((int)data + 8) * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c) = targ->name;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  pcVar10 = targ->name;\n  pcVar4 = endian_string(targ->header_byteorder);\n  pcVar5 = endian_string(targ->byteorder);\n  (*(code *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5);\n                    /* WARNING: Load size is inaccurate */\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*data,targ->name);\n  if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n    bfd_nonfatal(*data);\n    *(undefined4 *)((int)data + 4) = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return *(int *)((int)data + 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "iVar1 = *(int *)((int)data + 8) + 1;" (assignment_expression "iVar1 = *(int *)((int)data + 8) + 1" identifier = (binary_expression "*(int *)((int)data + 8) + 1" (pointer_expression "*(int *)((int)data + 8)" * (cast_expression "(int *)((int)data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "uVar7 = iVar1 * 0x5c;" (assignment_expression "uVar7 = iVar1 * 0x5c" identifier = (binary_expression "iVar1 * 0x5c" identifier * number_literal)) ;) (expression_statement "*(int *)((int)data + 8) = iVar1;" (assignment_expression "*(int *)((int)data + 8) = iVar1" (pointer_expression "*(int *)((int)data + 8)" * (cast_expression "(int *)((int)data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)((int)data + 0xc) < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);\n    *(int *)((int)data + 0x10) = iVar2;\n    (*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));\n    *(int *)((int)data + 0xc) = iVar1;\n    uVar7 = *(int *)((int)data + 8) * 0x5c;\n  }" if (parenthesized_expression "(*(uint *)((int)data + 0xc) < uVar7)" ( (binary_expression "*(uint *)((int)data + 0xc) < uVar7" (pointer_expression "*(uint *)((int)data + 0xc)" * (cast_expression "(uint *)((int)data + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xc)" ( (binary_expression "(int)data + 0xc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) < identifier) )) (compound_statement "{\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);\n    *(int *)((int)data + 0x10) = iVar2;\n    (*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));\n    *(int *)((int)data + 0xc) = iVar1;\n    uVar7 = *(int *)((int)data + 8) * 0x5c;\n  }" { (if_statement "if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }" if (parenthesized_expression "(iVar1 < 0x40)" ( (binary_expression "iVar1 < 0x40" identifier < number_literal) )) (compound_statement "{\n      iVar1 = 0x2e00;\n    }" { (expression_statement "iVar1 = 0x2e00;" (assignment_expression "iVar1 = 0x2e00" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = iVar1 * 0xb8;\n    }" else (compound_statement "{\n      iVar1 = iVar1 * 0xb8;\n    }" { (expression_statement "iVar1 = iVar1 * 0xb8;" (assignment_expression "iVar1 = iVar1 * 0xb8" identifier = (binary_expression "iVar1 * 0xb8" identifier * number_literal)) ;) }))) (expression_statement "iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1)" identifier = (call_expression "(*(code *)PTR_xrealloc_00026248)(*(undefined4 *)((int)data + 0x10),iVar1)" (parenthesized_expression "(*(code *)PTR_xrealloc_00026248)" ( (pointer_expression "*(code *)PTR_xrealloc_00026248" * (cast_expression "(code *)PTR_xrealloc_00026248" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)((int)data + 0x10),iVar1)" ( (pointer_expression "*(undefined4 *)((int)data + 0x10)" * (cast_expression "(undefined4 *)((int)data + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "*(int *)((int)data + 0x10) = iVar2;" (assignment_expression "*(int *)((int)data + 0x10) = iVar2" (pointer_expression "*(int *)((int)data + 0x10)" * (cast_expression "(int *)((int)data + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc));" (call_expression "(*(code *)PTR_memset_000261d0)\n              (iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc))" (parenthesized_expression "(*(code *)PTR_memset_000261d0)" ( (pointer_expression "*(code *)PTR_memset_000261d0" * (cast_expression "(code *)PTR_memset_000261d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + *(int *)((int)data + 0xc),0,iVar1 - *(int *)((int)data + 0xc))" ( (binary_expression "iVar2 + *(int *)((int)data + 0xc)" identifier + (pointer_expression "*(int *)((int)data + 0xc)" * (cast_expression "(int *)((int)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xc)" ( (binary_expression "(int)data + 0xc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) , number_literal , (binary_expression "iVar1 - *(int *)((int)data + 0xc)" identifier - (pointer_expression "*(int *)((int)data + 0xc)" * (cast_expression "(int *)((int)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xc)" ( (binary_expression "(int)data + 0xc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) ;) (expression_statement "*(int *)((int)data + 0xc) = iVar1;" (assignment_expression "*(int *)((int)data + 0xc) = iVar1" (pointer_expression "*(int *)((int)data + 0xc)" * (cast_expression "(int *)((int)data + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0xc)" ( (binary_expression "(int)data + 0xc" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "uVar7 = *(int *)((int)data + 8) * 0x5c;" (assignment_expression "uVar7 = *(int *)((int)data + 8) * 0x5c" identifier = (binary_expression "*(int *)((int)data + 8) * 0x5c" (pointer_expression "*(int *)((int)data + 8)" * (cast_expression "(int *)((int)data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * number_literal)) ;) })) (expression_statement "puVar9 = PTR_dcgettext_00026250;" (assignment_expression "puVar9 = PTR_dcgettext_00026250" identifier = identifier) ;) (expression_statement "puVar8 = PTR_00026104 + 0x5a88;" (assignment_expression "puVar8 = PTR_00026104 + 0x5a88" identifier = (binary_expression "PTR_00026104 + 0x5a88" identifier + number_literal)) ;) (expression_statement "*(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c) = targ->name;" (assignment_expression "*(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c) = targ->name" (pointer_expression "*(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c)" * (cast_expression "(char **)(*(int *)((int)data + 0x10) + uVar7 + -0x5c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)data + 0x10) + uVar7 + -0x5c)" ( (binary_expression "*(int *)((int)data + 0x10) + uVar7 + -0x5c" (binary_expression "*(int *)((int)data + 0x10) + uVar7" (pointer_expression "*(int *)((int)data + 0x10)" * (cast_expression "(int *)((int)data + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + identifier) + number_literal) )))) = (field_expression "targ->name" identifier -> field_identifier)) ;) (expression_statement "uVar3 = (*(code *)puVar9)(0,puVar8,5);" (assignment_expression "uVar3 = (*(code *)puVar9)(0,puVar8,5)" identifier = (call_expression "(*(code *)puVar9)(0,puVar8,5)" (parenthesized_expression "(*(code *)puVar9)" ( (pointer_expression "*(code *)puVar9" * (cast_expression "(code *)puVar9" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar8,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "pcVar10 = targ->name;" (assignment_expression "pcVar10 = targ->name" identifier = (field_expression "targ->name" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = endian_string(targ->header_byteorder);" (assignment_expression "pcVar4 = 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 "pcVar5 = endian_string(targ->byteorder);" (assignment_expression "pcVar5 = endian_string(targ->byteorder)" identifier = (call_expression "endian_string(targ->byteorder)" identifier (argument_list "(targ->byteorder)" ( (field_expression "targ->byteorder" identifier -> field_identifier) )))) ;) (expression_statement "(*(code *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5);" (call_expression "(*(code *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" ( (pointer_expression "*(code *)PTR_printf_00026284" * (cast_expression "(code *)PTR_printf_00026284" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,pcVar10,pcVar4,pcVar5)" ( identifier , identifier , identifier , identifier ))) ;) comment (expression_statement "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*data,targ->name);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*data,targ->name)" identifier = (call_expression "(*(code *)PTR_bfd_openw_000261bc)(*data,targ->name)" (parenthesized_expression "(*(code *)PTR_bfd_openw_000261bc)" ( (pointer_expression "*(code *)PTR_bfd_openw_000261bc" * (cast_expression "(code *)PTR_bfd_openw_000261bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*data,targ->name)" ( (pointer_expression "*data" * identifier) , (field_expression "targ->name" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Load size is inaccurate */\n    bfd_nonfatal(*data);\n    *(undefined4 *)((int)data + 4) = 1;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    bfd_nonfatal(*data);\n    *(undefined4 *)((int)data + 4) = 1;\n    return 1;\n  }" { comment (expression_statement "bfd_nonfatal(*data);" (call_expression "bfd_nonfatal(*data)" identifier (argument_list "(*data)" ( (pointer_expression "*data" * identifier) ))) ;) (expression_statement "*(undefined4 *)((int)data + 4) = 1;" (assignment_expression "*(undefined4 *)((int)data + 4) = 1" (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);" (assignment_expression "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" identifier = (call_expression "(*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" (parenthesized_expression "(*(code *)PTR_bfd_set_format_000261fc)" ( (pointer_expression "*(code *)PTR_bfd_set_format_000261fc" * (cast_expression "(code *)PTR_bfd_set_format_000261fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 1;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_bfd_get_error_00026234)();" (assignment_expression "iVar2 = (*(code *)PTR_bfd_get_error_00026234)()" identifier = (call_expression "(*(code *)PTR_bfd_get_error_00026234)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_00026234)" ( (pointer_expression "*(code *)PTR_bfd_get_error_00026234" * (cast_expression "(code *)PTR_bfd_get_error_00026234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 5) {\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 1;\n    }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n      bfd_nonfatal(targ->name);\n      *(undefined4 *)((int)data + 4) = 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 *)((int)data + 4) = 1;" (assignment_expression "*(undefined4 *)((int)data + 4) = 1" (pointer_expression "*(undefined4 *)((int)data + 4)" * (cast_expression "(undefined4 *)((int)data + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" else (compound_statement "{\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "puVar9 = PTR_00026104 + 0x5aa4;" (assignment_expression "puVar9 = PTR_00026104 + 0x5aa4" identifier = (binary_expression "PTR_00026104 + 0x5aa4" identifier + number_literal)) ;) (do_statement "do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);" do (compound_statement "{\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    }" { (while_statement "while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" while (parenthesized_expression "(iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0)" ( (comma_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0" (assignment_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" identifier = (call_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" (parenthesized_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))" ( (pointer_expression "**(code **)(*(int *)(iVar1 + 4) + 0x154)" * (pointer_expression "*(code **)(*(int *)(iVar1 + 4) + 0x154)" * (cast_expression "(code **)(*(int *)(iVar1 + 4) + 0x154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 4) + 0x154)" ( (binary_expression "*(int *)(iVar1 + 4) + 0x154" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar1,iVar2,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) )) (compound_statement "{\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" { (expression_statement "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);" (assignment_expression "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" identifier = (call_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" (parenthesized_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)" ( (pointer_expression "*(code *)PTR_bfd_printable_arch_mach_000261dc" * (cast_expression "(code *)PTR_bfd_printable_arch_mach_000261dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR_printf_00026284)(puVar9,uVar3);" (call_expression "(*(code *)PTR_printf_00026284)(puVar9,uVar3)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" ( (pointer_expression "*(code *)PTR_printf_00026284" * (cast_expression "(code *)PTR_printf_00026284" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,uVar3)" ( identifier , identifier ))) ;) (expression_statement "iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2;" (assignment_expression "iVar6 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2" identifier = (binary_expression "*(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + iVar2" (binary_expression "*(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10)" (binary_expression "*(int *)((int)data + 8) * 0x5c" (pointer_expression "*(int *)((int)data + 8)" * (cast_expression "(int *)((int)data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 8)" ( (binary_expression "(int)data + 8" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * number_literal) + (pointer_expression "*(int *)((int)data + 0x10)" * (cast_expression "(int *)((int)data + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 0x10)" ( (binary_expression "(int)data + 0x10" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar6 + -0x5a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + -0x5a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + -0x5a)" * (cast_expression "(undefined1 *)(iVar6 + -0x5a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + -0x5a)" ( (binary_expression "iVar6 + -0x5a" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar2 == 0x59) goto LAB_0001291c;" if (parenthesized_expression "(iVar2 == 0x59)" ( (binary_expression "iVar2 == 0x59" identifier == number_literal) )) (goto_statement "goto LAB_0001291c;" goto statement_identifier ;)) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0x59)" ( (binary_expression "iVar2 != 0x59" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" statement_identifier : (expression_statement "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" (call_expression "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1)" (parenthesized_expression "(*(code *)PTR_bfd_close_all_done_000261ec)" ( (pointer_expression "*(code *)PTR_bfd_close_all_done_000261ec" * (cast_expression "(code *)PTR_bfd_close_all_done_000261ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;)) (return_statement "return *(int *)((int)data + 4);" return (pointer_expression "*(int *)((int)data + 4)" * (cast_expression "(int *)((int)data + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)data + 4)" ( (binary_expression "(int)data + 4" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })))
(translation_unit "undefined4 FUN_0001272c(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}\n\n" (function_definition "undefined4 FUN_0001272c(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}" type_identifier (function_declarator "FUN_0001272c(undefined4 *param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (expression_statement "iVar1 = param_2[2] + 1;" (assignment_expression "iVar1 = param_2[2] + 1" identifier = (binary_expression "param_2[2] + 1" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "uVar7 = iVar1 * 0x5c;" (assignment_expression "uVar7 = iVar1 * 0x5c" identifier = (binary_expression "iVar1 * 0x5c" identifier * number_literal)) ;) (expression_statement "param_2[2] = iVar1;" (assignment_expression "param_2[2] = iVar1" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }" if (parenthesized_expression "((uint)param_2[3] < uVar7)" ( (binary_expression "(uint)param_2[3] < uVar7" (cast_expression "(uint)param_2[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[3]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }" { (if_statement "if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }" if (parenthesized_expression "(iVar1 < 0x40)" ( (binary_expression "iVar1 < 0x40" identifier < number_literal) )) (compound_statement "{\n      iVar1 = 0x2e00;\n    }" { (expression_statement "iVar1 = 0x2e00;" (assignment_expression "iVar1 = 0x2e00" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = iVar1 * 0xb8;\n    }" else (compound_statement "{\n      iVar1 = iVar1 * 0xb8;\n    }" { (expression_statement "iVar1 = iVar1 * 0xb8;" (assignment_expression "iVar1 = iVar1 * 0xb8" identifier = (binary_expression "iVar1 * 0xb8" identifier * number_literal)) ;) }))) (expression_statement "iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1)" identifier = (call_expression "(*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1)" (parenthesized_expression "(*(code *)PTR_xrealloc_00026248)" ( (pointer_expression "*(code *)PTR_xrealloc_00026248" * (cast_expression "(code *)PTR_xrealloc_00026248" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[4],iVar1)" ( (subscript_expression "param_2[4]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "param_2[4] = iVar2;" (assignment_expression "param_2[4] = iVar2" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);" (call_expression "(*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3])" (parenthesized_expression "(*(code *)PTR_memset_000261d0)" ( (pointer_expression "*(code *)PTR_memset_000261d0" * (cast_expression "(code *)PTR_memset_000261d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + param_2[3],0,iVar1 - param_2[3])" ( (binary_expression "iVar2 + param_2[3]" identifier + (subscript_expression "param_2[3]" identifier [ number_literal ])) , number_literal , (binary_expression "iVar1 - param_2[3]" identifier - (subscript_expression "param_2[3]" identifier [ number_literal ])) ))) ;) (expression_statement "param_2[3] = iVar1;" (assignment_expression "param_2[3] = iVar1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar7 = param_2[2] * 0x5c;" (assignment_expression "uVar7 = param_2[2] * 0x5c" identifier = (binary_expression "param_2[2] * 0x5c" (subscript_expression "param_2[2]" identifier [ number_literal ]) * number_literal)) ;) })) (expression_statement "puVar9 = PTR_dcgettext_00026250;" (assignment_expression "puVar9 = PTR_dcgettext_00026250" identifier = identifier) ;) (expression_statement "puVar8 = PTR_00026104 + 0x5a88;" (assignment_expression "puVar8 = PTR_00026104 + 0x5a88" identifier = (binary_expression "PTR_00026104 + 0x5a88" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;" (assignment_expression "*(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1" (pointer_expression "*(undefined4 *)(param_2[4] + uVar7 + -0x5c)" * (cast_expression "(undefined4 *)(param_2[4] + uVar7 + -0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[4] + uVar7 + -0x5c)" ( (binary_expression "param_2[4] + uVar7 + -0x5c" (binary_expression "param_2[4] + uVar7" (subscript_expression "param_2[4]" identifier [ number_literal ]) + identifier) + number_literal) )))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = (*(code *)puVar9)(0,puVar8,5);" (assignment_expression "uVar3 = (*(code *)puVar9)(0,puVar8,5)" identifier = (call_expression "(*(code *)puVar9)(0,puVar8,5)" (parenthesized_expression "(*(code *)puVar9)" ( (pointer_expression "*(code *)puVar9" * (cast_expression "(code *)puVar9" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,puVar8,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "uVar10 = *param_1;" (assignment_expression "uVar10 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = FUN_00012608(param_1[3]);" (assignment_expression "uVar4 = FUN_00012608(param_1[3])" identifier = (call_expression "FUN_00012608(param_1[3])" identifier (argument_list "(param_1[3])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar5 = FUN_00012608(param_1[2]);" (assignment_expression "uVar5 = FUN_00012608(param_1[2])" identifier = (call_expression "FUN_00012608(param_1[2])" identifier (argument_list "(param_1[2])" ( (subscript_expression "param_1[2]" identifier [ number_literal ]) )))) ;) (expression_statement "(*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);" (call_expression "(*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" ( (pointer_expression "*(code *)PTR_printf_00026284" * (cast_expression "(code *)PTR_printf_00026284" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar10,uVar4,uVar5)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1)" identifier = (call_expression "(*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1)" (parenthesized_expression "(*(code *)PTR_bfd_openw_000261bc)" ( (pointer_expression "*(code *)PTR_bfd_openw_000261bc" * (cast_expression "(code *)PTR_bfd_openw_000261bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_2,*param_1)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }" { (expression_statement "bfd_nonfatal(*param_2);" (call_expression "bfd_nonfatal(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))) ;) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);" (assignment_expression "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" identifier = (call_expression "(*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" (parenthesized_expression "(*(code *)PTR_bfd_set_format_000261fc)" ( (pointer_expression "*(code *)PTR_bfd_set_format_000261fc" * (cast_expression "(code *)PTR_bfd_set_format_000261fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }" { (expression_statement "iVar2 = (*(code *)PTR_bfd_get_error_00026234)();" (assignment_expression "iVar2 = (*(code *)PTR_bfd_get_error_00026234)()" identifier = (call_expression "(*(code *)PTR_bfd_get_error_00026234)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_00026234)" ( (pointer_expression "*(code *)PTR_bfd_get_error_00026234" * (cast_expression "(code *)PTR_bfd_get_error_00026234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }" if (parenthesized_expression "(iVar2 != 5)" ( (binary_expression "iVar2 != 5" identifier != number_literal) )) (compound_statement "{\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }" { (expression_statement "bfd_nonfatal(*param_1);" (call_expression "bfd_nonfatal(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" else (compound_statement "{\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (expression_statement "puVar9 = PTR_00026104 + 0x5aa4;" (assignment_expression "puVar9 = PTR_00026104 + 0x5aa4" identifier = (binary_expression "PTR_00026104 + 0x5aa4" identifier + number_literal)) ;) (do_statement "do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);" do (compound_statement "{\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    }" { (while_statement "while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" while (parenthesized_expression "(iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0)" ( (comma_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0" (assignment_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" identifier = (call_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" (parenthesized_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))" ( (pointer_expression "**(code **)(*(int *)(iVar1 + 4) + 0x154)" * (pointer_expression "*(code **)(*(int *)(iVar1 + 4) + 0x154)" * (cast_expression "(code **)(*(int *)(iVar1 + 4) + 0x154)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(iVar1 + 4) + 0x154)" ( (binary_expression "*(int *)(iVar1 + 4) + 0x154" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar1,iVar2,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) )) (compound_statement "{\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" { (expression_statement "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);" (assignment_expression "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" identifier = (call_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" (parenthesized_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)" ( (pointer_expression "*(code *)PTR_bfd_printable_arch_mach_000261dc" * (cast_expression "(code *)PTR_bfd_printable_arch_mach_000261dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0)" ( identifier , number_literal )))) ;) (expression_statement "(*(code *)PTR_printf_00026284)(puVar9,uVar3);" (call_expression "(*(code *)PTR_printf_00026284)(puVar9,uVar3)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" ( (pointer_expression "*(code *)PTR_printf_00026284" * (cast_expression "(code *)PTR_printf_00026284" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9,uVar3)" ( identifier , identifier ))) ;) (expression_statement "iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;" (assignment_expression "iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2" identifier = (binary_expression "param_2[2] * 0x5c + param_2[4] + iVar2" (binary_expression "param_2[2] * 0x5c + param_2[4]" (binary_expression "param_2[2] * 0x5c" (subscript_expression "param_2[2]" identifier [ number_literal ]) * number_literal) + (subscript_expression "param_2[4]" identifier [ number_literal ])) + identifier)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar6 + -0x5a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + -0x5a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + -0x5a)" * (cast_expression "(undefined1 *)(iVar6 + -0x5a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + -0x5a)" ( (binary_expression "iVar6 + -0x5a" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar2 == 0x59) goto LAB_0001291c;" if (parenthesized_expression "(iVar2 == 0x59)" ( (binary_expression "iVar2 == 0x59" identifier == number_literal) )) (goto_statement "goto LAB_0001291c;" goto statement_identifier ;)) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != 0x59)" ( (binary_expression "iVar2 != 0x59" identifier != number_literal) )) ;) }))) (labeled_statement "LAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" statement_identifier : (expression_statement "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" (call_expression "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1)" (parenthesized_expression "(*(code *)PTR_bfd_close_all_done_000261ec)" ( (pointer_expression "*(code *)PTR_bfd_close_all_done_000261ec" * (cast_expression "(code *)PTR_bfd_close_all_done_000261ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;)) (return_statement "return param_2[1];" return (subscript_expression "param_2[1]" identifier [ 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 TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) , LIT , (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression 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 ]) + IDENT) + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , (pointer_expression * IDENT) )))) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) + (subscript_expression IDENT [ LIT ])) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "undefined4 FUN_0001272c(undefined4 *param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}" (type_identifier "undefined4") (function_declarator "FUN_0001272c(undefined4 *param_1,undefined4 *param_2)" (identifier "FUN_0001272c") (parameter_list "(undefined4 *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  int iVar6;\n  uint uVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 uVar10;\n  \n  iVar1 = param_2[2] + 1;\n  uVar7 = iVar1 * 0x5c;\n  param_2[2] = iVar1;\n  if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }\n  puVar9 = PTR_dcgettext_00026250;\n  puVar8 = PTR_00026104 + 0x5a88;\n  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;\n  uVar3 = (*(code *)puVar9)(0,puVar8,5);\n  uVar10 = *param_1;\n  uVar4 = FUN_00012608(param_1[3]);\n  uVar5 = FUN_00012608(param_1[2]);\n  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);\n  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);\n  if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }\n  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);\n  if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }\nLAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);\n  return param_2[1];\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (expression_statement "iVar1 = param_2[2] + 1;" (assignment_expression "iVar1 = param_2[2] + 1" (identifier "iVar1") (= "=") (binary_expression "param_2[2] + 1" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = iVar1 * 0x5c;" (assignment_expression "uVar7 = iVar1 * 0x5c" (identifier "uVar7") (= "=") (binary_expression "iVar1 * 0x5c" (identifier "iVar1") (* "*") (number_literal "0x5c"))) (; ";")) (expression_statement "param_2[2] = iVar1;" (assignment_expression "param_2[2] = iVar1" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if ((uint)param_2[3] < uVar7) {\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }" (if "if") (parenthesized_expression "((uint)param_2[3] < uVar7)" (( "(") (binary_expression "(uint)param_2[3] < uVar7" (cast_expression "(uint)param_2[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (< "<") (identifier "uVar7")) () ")")) (compound_statement "{\n    if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }\n    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);\n    param_2[4] = iVar2;\n    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);\n    param_2[3] = iVar1;\n    uVar7 = param_2[2] * 0x5c;\n  }" ({ "{") (if_statement "if (iVar1 < 0x40) {\n      iVar1 = 0x2e00;\n    }\n    else {\n      iVar1 = iVar1 * 0xb8;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0x40)" (( "(") (binary_expression "iVar1 < 0x40" (identifier "iVar1") (< "<") (number_literal "0x40")) () ")")) (compound_statement "{\n      iVar1 = 0x2e00;\n    }" ({ "{") (expression_statement "iVar1 = 0x2e00;" (assignment_expression "iVar1 = 0x2e00" (identifier "iVar1") (= "=") (number_literal "0x2e00")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = iVar1 * 0xb8;\n    }" (else "else") (compound_statement "{\n      iVar1 = iVar1 * 0xb8;\n    }" ({ "{") (expression_statement "iVar1 = iVar1 * 0xb8;" (assignment_expression "iVar1 = iVar1 * 0xb8" (identifier "iVar1") (= "=") (binary_expression "iVar1 * 0xb8" (identifier "iVar1") (* "*") (number_literal "0xb8"))) (; ";")) (} "}")))) (expression_statement "iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1)" (parenthesized_expression "(*(code *)PTR_xrealloc_00026248)" (( "(") (pointer_expression "*(code *)PTR_xrealloc_00026248" (* "*") (cast_expression "(code *)PTR_xrealloc_00026248" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xrealloc_00026248"))) () ")")) (argument_list "(param_2[4],iVar1)" (( "(") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "param_2[4] = iVar2;" (assignment_expression "param_2[4] = iVar2" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "(*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);" (call_expression "(*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3])" (parenthesized_expression "(*(code *)PTR_memset_000261d0)" (( "(") (pointer_expression "*(code *)PTR_memset_000261d0" (* "*") (cast_expression "(code *)PTR_memset_000261d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000261d0"))) () ")")) (argument_list "(iVar2 + param_2[3],0,iVar1 - param_2[3])" (( "(") (binary_expression "iVar2 + param_2[3]" (identifier "iVar2") (+ "+") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (, ",") (number_literal "0") (, ",") (binary_expression "iVar1 - param_2[3]" (identifier "iVar1") (- "-") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) () ")"))) (; ";")) (expression_statement "param_2[3] = iVar1;" (assignment_expression "param_2[3] = iVar1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "uVar7 = param_2[2] * 0x5c;" (assignment_expression "uVar7 = param_2[2] * 0x5c" (identifier "uVar7") (= "=") (binary_expression "param_2[2] * 0x5c" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (* "*") (number_literal "0x5c"))) (; ";")) (} "}"))) (expression_statement "puVar9 = PTR_dcgettext_00026250;" (assignment_expression "puVar9 = PTR_dcgettext_00026250" (identifier "puVar9") (= "=") (identifier "PTR_dcgettext_00026250")) (; ";")) (expression_statement "puVar8 = PTR_00026104 + 0x5a88;" (assignment_expression "puVar8 = PTR_00026104 + 0x5a88" (identifier "puVar8") (= "=") (binary_expression "PTR_00026104 + 0x5a88" (identifier "PTR_00026104") (+ "+") (number_literal "0x5a88"))) (; ";")) (expression_statement "*(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;" (assignment_expression "*(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1" (pointer_expression "*(undefined4 *)(param_2[4] + uVar7 + -0x5c)" (* "*") (cast_expression "(undefined4 *)(param_2[4] + uVar7 + -0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[4] + uVar7 + -0x5c)" (( "(") (binary_expression "param_2[4] + uVar7 + -0x5c" (binary_expression "param_2[4] + uVar7" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "uVar7")) (+ "+") (number_literal "-0x5c")) () ")")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar3 = (*(code *)puVar9)(0,puVar8,5);" (assignment_expression "uVar3 = (*(code *)puVar9)(0,puVar8,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar9)(0,puVar8,5)" (parenthesized_expression "(*(code *)puVar9)" (( "(") (pointer_expression "*(code *)puVar9" (* "*") (cast_expression "(code *)puVar9" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9"))) () ")")) (argument_list "(0,puVar8,5)" (( "(") (number_literal "0") (, ",") (identifier "puVar8") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar10 = *param_1;" (assignment_expression "uVar10 = *param_1" (identifier "uVar10") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = FUN_00012608(param_1[3]);" (assignment_expression "uVar4 = FUN_00012608(param_1[3])" (identifier "uVar4") (= "=") (call_expression "FUN_00012608(param_1[3])" (identifier "FUN_00012608") (argument_list "(param_1[3])" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (expression_statement "uVar5 = FUN_00012608(param_1[2]);" (assignment_expression "uVar5 = FUN_00012608(param_1[2])" (identifier "uVar5") (= "=") (call_expression "FUN_00012608(param_1[2])" (identifier "FUN_00012608") (argument_list "(param_1[2])" (( "(") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);" (call_expression "(*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" (( "(") (pointer_expression "*(code *)PTR_printf_00026284" (* "*") (cast_expression "(code *)PTR_printf_00026284" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_printf_00026284"))) () ")")) (argument_list "(uVar3,uVar10,uVar4,uVar5)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar10") (, ",") (identifier "uVar4") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);" (assignment_expression "iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1)" (parenthesized_expression "(*(code *)PTR_bfd_openw_000261bc)" (( "(") (pointer_expression "*(code *)PTR_bfd_openw_000261bc" (* "*") (cast_expression "(code *)PTR_bfd_openw_000261bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_openw_000261bc"))) () ")")) (argument_list "(*param_2,*param_1)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bfd_nonfatal(*param_2);\n    param_2[1] = 1;\n    return 1;\n  }" ({ "{") (expression_statement "bfd_nonfatal(*param_2);" (call_expression "bfd_nonfatal(*param_2)" (identifier "bfd_nonfatal") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);" (assignment_expression "iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_bfd_set_format_000261fc)(iVar1,1)" (parenthesized_expression "(*(code *)PTR_bfd_set_format_000261fc)" (( "(") (pointer_expression "*(code *)PTR_bfd_set_format_000261fc" (* "*") (cast_expression "(code *)PTR_bfd_set_format_000261fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_set_format_000261fc"))) () ")")) (argument_list "(iVar1,1)" (( "(") (identifier "iVar1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }\n  else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();\n    if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_bfd_get_error_00026234)();" (assignment_expression "iVar2 = (*(code *)PTR_bfd_get_error_00026234)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_bfd_get_error_00026234)()" (parenthesized_expression "(*(code *)PTR_bfd_get_error_00026234)" (( "(") (pointer_expression "*(code *)PTR_bfd_get_error_00026234" (* "*") (cast_expression "(code *)PTR_bfd_get_error_00026234" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_get_error_00026234"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 5) {\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }" (if "if") (parenthesized_expression "(iVar2 != 5)" (( "(") (binary_expression "iVar2 != 5" (identifier "iVar2") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      bfd_nonfatal(*param_1);\n      param_2[1] = 1;\n    }" ({ "{") (expression_statement "bfd_nonfatal(*param_1);" (call_expression "bfd_nonfatal(*param_1)" (identifier "bfd_nonfatal") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "param_2[1] = 1;" (assignment_expression "param_2[1] = 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" (else "else") (compound_statement "{\n    iVar2 = 2;\n    puVar9 = PTR_00026104 + 0x5aa4;\n    do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);\n  }" ({ "{") (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" (identifier "iVar2") (= "=") (number_literal "2")) (; ";")) (expression_statement "puVar9 = PTR_00026104 + 0x5aa4;" (assignment_expression "puVar9 = PTR_00026104 + 0x5aa4" (identifier "puVar9") (= "=") (binary_expression "PTR_00026104 + 0x5aa4" (identifier "PTR_00026104") (+ "+") (number_literal "0x5aa4"))) (; ";")) (do_statement "do {\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 != 0x59);" (do "do") (compound_statement "{\n      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }\n      iVar2 = iVar2 + 1;\n    }" ({ "{") (while_statement "while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" (while "while") (parenthesized_expression "(iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0)" (( "(") (comma_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0" (assignment_expression "iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" (identifier "iVar6") (= "=") (call_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0)" (parenthesized_expression "(**(code **)(*(int *)(iVar1 + 4) + 0x154))" (( "(") (pointer_expression "**(code **)(*(int *)(iVar1 + 4) + 0x154)" (* "*") (pointer_expression "*(code **)(*(int *)(iVar1 + 4) + 0x154)" (* "*") (cast_expression "(code **)(*(int *)(iVar1 + 4) + 0x154)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(iVar1 + 4) + 0x154)" (( "(") (binary_expression "*(int *)(iVar1 + 4) + 0x154" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x154")) () ")"))))) () ")")) (argument_list "(iVar1,iVar2,0)" (( "(") (identifier "iVar1") (, ",") (identifier "iVar2") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);\n        (*(code *)PTR_printf_00026284)(puVar9,uVar3);\n        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;\n        iVar2 = iVar2 + 1;\n        *(undefined1 *)(iVar6 + -0x5a) = 1;\n        if (iVar2 == 0x59) goto LAB_0001291c;\n      }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);" (assignment_expression "uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0)" (parenthesized_expression "(*(code *)PTR_bfd_printable_arch_mach_000261dc)" (( "(") (pointer_expression "*(code *)PTR_bfd_printable_arch_mach_000261dc" (* "*") (cast_expression "(code *)PTR_bfd_printable_arch_mach_000261dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_printable_arch_mach_000261dc"))) () ")")) (argument_list "(iVar2,0)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_printf_00026284)(puVar9,uVar3);" (call_expression "(*(code *)PTR_printf_00026284)(puVar9,uVar3)" (parenthesized_expression "(*(code *)PTR_printf_00026284)" (( "(") (pointer_expression "*(code *)PTR_printf_00026284" (* "*") (cast_expression "(code *)PTR_printf_00026284" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_printf_00026284"))) () ")")) (argument_list "(puVar9,uVar3)" (( "(") (identifier "puVar9") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;" (assignment_expression "iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2" (identifier "iVar6") (= "=") (binary_expression "param_2[2] * 0x5c + param_2[4] + iVar2" (binary_expression "param_2[2] * 0x5c + param_2[4]" (binary_expression "param_2[2] * 0x5c" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (* "*") (number_literal "0x5c")) (+ "+") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(iVar6 + -0x5a) = 1;" (assignment_expression "*(undefined1 *)(iVar6 + -0x5a) = 1" (pointer_expression "*(undefined1 *)(iVar6 + -0x5a)" (* "*") (cast_expression "(undefined1 *)(iVar6 + -0x5a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + -0x5a)" (( "(") (binary_expression "iVar6 + -0x5a" (identifier "iVar6") (+ "+") (number_literal "-0x5a")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar2 == 0x59) goto LAB_0001291c;" (if "if") (parenthesized_expression "(iVar2 == 0x59)" (( "(") (binary_expression "iVar2 == 0x59" (identifier "iVar2") (== "==") (number_literal "0x59")) () ")")) (goto_statement "goto LAB_0001291c;" (goto "goto") (statement_identifier "LAB_0001291c") (; ";"))) (} "}"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 0x59)" (( "(") (binary_expression "iVar2 != 0x59" (identifier "iVar2") (!= "!=") (number_literal "0x59")) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_0001291c:\n  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" (statement_identifier "LAB_0001291c") (: ":") (expression_statement "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);" (call_expression "(*(code *)PTR_bfd_close_all_done_000261ec)(iVar1)" (parenthesized_expression "(*(code *)PTR_bfd_close_all_done_000261ec)" (( "(") (pointer_expression "*(code *)PTR_bfd_close_all_done_000261ec" (* "*") (cast_expression "(code *)PTR_bfd_close_all_done_000261ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bfd_close_all_done_000261ec"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";"))) (return_statement "return param_2[1];" (return "return") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (; ";")) (} "}")))

int function_1(type_1 *targ,void *data)

{
  int var_1;
  int var_3;
  type_2 uVar3;
  char *pcVar4;
  char *pcVar5;
  int var_7;
  type_3 var_2;
  type_4 *puVar8;
  type_4 *puVar9;
  char *pcVar10;
  
  var_1 = *(int *)((int)data + 8) + 1;
  var_2 = var_1 * 0x5c;
  *(int *)((int)data + 8) = var_1;
  if (*(type_3 *)((int)data + 0xc) < var_2) {
    if (var_1 < 0x40) {
      var_1 = 0x2e00;
    }
    else {
      var_1 = var_1 * 0xb8;
    }
    var_3 = (*(type_5 *)PTR_xrealloc_00026248)(*(type_2 *)((int)data + 0x10),var_1);
    *(int *)((int)data + 0x10) = var_3;
    (*(type_5 *)PTR_memset_000261d0)
              (var_3 + *(int *)((int)data + 0xc),0,var_1 - *(int *)((int)data + 0xc));
    *(int *)((int)data + 0xc) = var_1;
    var_2 = *(int *)((int)data + 8) * 0x5c;
  }
  puVar9 = PTR_dcgettext_00026250;
  puVar8 = var_4 + 0x5a88;
  *(char **)(*(int *)((int)data + 0x10) + var_2 + -0x5c) = targ->name;
  uVar3 = (*(type_5 *)puVar9)(0,puVar8,5);
  pcVar10 = targ->name;
  pcVar4 = var_5(targ->header_byteorder);
  pcVar5 = var_5(targ->byteorder);
  (*(type_5 *)PTR_printf_00026284)(uVar3,pcVar10,pcVar4,pcVar5);
                    /* WARNING: Load size is inaccurate */
  var_1 = (*(type_5 *)PTR_bfd_openw_000261bc)(*data,targ->name);
  if (var_1 == 0) {
                    /* WARNING: Load size is inaccurate */
    var_6(*data);
    *(type_2 *)((int)data + 4) = 1;
    return 1;
  }
  var_3 = (*(type_5 *)PTR_bfd_set_format_000261fc)(var_1,1);
  if (var_3 == 0) {
    var_3 = (*(type_5 *)PTR_bfd_get_error_00026234)();
    if (var_3 != 5) {
      var_6(targ->name);
      *(type_2 *)((int)data + 4) = 1;
    }
  }
  else {
    var_3 = 2;
    puVar9 = var_4 + 0x5aa4;
    do {
      while (var_7 = (**(type_5 **)(*(int *)(var_1 + 4) + 0x154))(var_1,var_3,0), var_7 != 0) {
        uVar3 = (*(type_5 *)PTR_bfd_printable_arch_mach_000261dc)(var_3,0);
        (*(type_5 *)PTR_printf_00026284)(puVar9,uVar3);
        var_7 = *(int *)((int)data + 8) * 0x5c + *(int *)((int)data + 0x10) + var_3;
        var_3 = var_3 + 1;
        *(type_6 *)(var_7 + -0x5a) = 1;
        if (var_3 == 0x59) goto LAB_0001291c;
      }
      var_3 = var_3 + 1;
    } while (var_3 != 0x59);
  }
LAB_0001291c:
  (*(type_5 *)PTR_bfd_close_all_done_000261ec)(var_1);
  return *(int *)((int)data + 4);
}


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

undefined4 MASKED(undefined4 *param_1,undefined4 *param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  int iVar6;
  uint uVar7;
  undefined *puVar8;
  undefined *puVar9;
  undefined4 uVar10;
  
  iVar1 = param_2[2] + 1;
  uVar7 = iVar1 * 0x5c;
  param_2[2] = iVar1;
  if ((uint)param_2[3] < uVar7) {
    if (iVar1 < 0x40) {
      iVar1 = 0x2e00;
    }
    else {
      iVar1 = iVar1 * 0xb8;
    }
    iVar2 = (*(code *)PTR_xrealloc_00026248)(param_2[4],iVar1);
    param_2[4] = iVar2;
    (*(code *)PTR_memset_000261d0)(iVar2 + param_2[3],0,iVar1 - param_2[3]);
    param_2[3] = iVar1;
    uVar7 = param_2[2] * 0x5c;
  }
  puVar9 = PTR_dcgettext_00026250;
  puVar8 = PTR_00026104 + 0x5a88;
  *(undefined4 *)(param_2[4] + uVar7 + -0x5c) = *param_1;
  uVar3 = (*(code *)puVar9)(0,puVar8,5);
  uVar10 = *param_1;
  uVar4 = FUN_00012608(param_1[3]);
  uVar5 = FUN_00012608(param_1[2]);
  (*(code *)PTR_printf_00026284)(uVar3,uVar10,uVar4,uVar5);
  iVar1 = (*(code *)PTR_bfd_openw_000261bc)(*param_2,*param_1);
  if (iVar1 == 0) {
    bfd_nonfatal(*param_2);
    param_2[1] = 1;
    return 1;
  }
  iVar2 = (*(code *)PTR_bfd_set_format_000261fc)(iVar1,1);
  if (iVar2 == 0) {
    iVar2 = (*(code *)PTR_bfd_get_error_00026234)();
    if (iVar2 != 5) {
      bfd_nonfatal(*param_1);
      param_2[1] = 1;
    }
  }
  else {
    iVar2 = 2;
    puVar9 = PTR_00026104 + 0x5aa4;
    do {
      while (iVar6 = (**(code **)(*(int *)(iVar1 + 4) + 0x154))(iVar1,iVar2,0), iVar6 != 0) {
        uVar3 = (*(code *)PTR_bfd_printable_arch_mach_000261dc)(iVar2,0);
        (*(code *)PTR_printf_00026284)(puVar9,uVar3);
        iVar6 = param_2[2] * 0x5c + param_2[4] + iVar2;
        iVar2 = iVar2 + 1;
        *(undefined1 *)(iVar6 + -0x5a) = 1;
        if (iVar2 == 0x59) goto LAB_0001291c;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 != 0x59);
  }
LAB_0001291c:
  (*(code *)PTR_bfd_close_all_done_000261ec)(iVar1);
  return param_2[1];
}

