
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void gldelf32lppc_after_allocation(void)

{
  ulong uVar1;
  output_elf_obj_tdata *poVar2;
  ulong uVar3;
  bfd *pbVar4;
  int iVar5;
  int iVar6;
  char *pcVar7;
  
  iVar5 = bfd_elf_discard_info(link_info.output_bfd,&link_info);
  pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n";
  if (-1 < iVar5) {
    iVar6 = 10;
    do {
      lang_relax_sections(iVar5);
      pbVar4 = link_info.output_bfd;
      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||
         ((link_info._0_1_ & 3) == 2)) {
        return;
      }
      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
      uVar3 = poVar2->program_header_size;
      if (lang_phdr_list == (lang_phdr *)0x0) {
        poVar2->seg_map = (elf_segment_map *)0x0;
      }
      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);
      if (iVar5 == 0) {
        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);
        einfo(pcVar7);
      }
      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
      uVar1 = poVar2->program_header_size;
      if (uVar3 == uVar1) {
        return;
      }
      if ((iVar6 < 7) && (uVar1 <= uVar3)) {
        poVar2->program_header_size = uVar3;
        return;
      }
      iVar5 = 1;
      iVar6 = iVar6 + -1;
    } while (iVar6 != 0);
    pcVar7 = "%F%P: looping in map_segments";
  }
  pcVar7 = (char *)dcgettext(0,pcVar7,5);
  einfo(pcVar7);
  return;
}



void FUN_0013fc40(void)

{
  long lVar1;
  ulong uVar2;
  undefined8 *puVar3;
  ulong uVar4;
  int iVar5;
  undefined8 uVar6;
  int iVar7;
  char *pcVar8;
  
  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);
  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";
  if (-1 < iVar5) {
    iVar7 = 10;
    do {
      FUN_0011d420(iVar5);
      lVar1 = DAT_002a6810;
      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {
        return;
      }
      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);
      uVar4 = puVar3[7];
      if (DAT_002a6750 == 0) {
        *puVar3 = 0;
      }
      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);
      if (iVar5 == 0) {
        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);
        FUN_001283c0(uVar6);
      }
      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);
      uVar2 = *(ulong *)(lVar1 + 0x38);
      if (uVar4 == uVar2) {
        return;
      }
      if ((iVar7 < 7) && (uVar2 <= uVar4)) {
        *(ulong *)(lVar1 + 0x38) = uVar4;
        return;
      }
      iVar5 = 1;
      iVar7 = iVar7 + -1;
    } while (iVar7 != 0);
    pcVar8 = "%F%P: looping in map_segments";
  }
  uVar6 = dcgettext(0,pcVar8,5);
  FUN_001283c0(uVar6);
  return;
}


PUSH R12
MOV RDI,qword ptr [0x002a6810]
LEA RSI,[0x2a67c0]
PUSH RBP
PUSH RBX
CALL 0x0010c5e0
MOV EDX,0x5
LEA RSI,[0x196558]
TEST EAX,EAX
JS 0x0013fd5c
MOV EDI,EAX
MOV EBX,0xa
LEA R12,[0x2a67c0]
JMP 0x0013fcbe
MOV RAX,qword ptr [0x002a6810]
MOV RAX,qword ptr [RAX + 0xf8]
MOV RDX,qword ptr [RAX + 0xc98]
MOV RAX,qword ptr [RDX + 0x38]
CMP RBP,RAX
JZ 0x0013fd7c
CMP EBX,0x6
JG 0x0013fcb0
CMP RBP,RAX
JNC 0x0013fd78
MOV EDI,0x1
SUB EBX,0x1
JZ 0x0013fd50
CALL 0x0011d420
MOV RDI,qword ptr [0x002a6810]
MOV RAX,qword ptr [RDI + 0x8]
CMP dword ptr [RAX + 0x8],0x5
JNZ 0x0013fd7c
MOVZX EAX,byte ptr [R12]
AND EAX,0x3
CMP AL,0x2
JZ 0x0013fd7c
MOV RAX,qword ptr [RDI + 0xf8]
CMP qword ptr [0x002a6750],0x0
MOV RAX,qword ptr [RAX + 0xc98]
MOV RBP,qword ptr [RAX + 0x38]
JZ 0x0013fd40
LEA RSI,[0x2a67c0]
CALL 0x0010c3b0
TEST EAX,EAX
JNZ 0x0013fc80
XOR EDI,EDI
MOV EDX,0x5
LEA RSI,[0x196578]
CALL 0x0010c350
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001283c0
JMP 0x0013fc80
MOV qword ptr [RAX],0x0
JMP 0x0013fd04
MOV EDX,0x5
LEA RSI,[0x196a6e]
XOR EDI,EDI
CALL 0x0010c350
POP RBX
POP RBP
MOV RDI,RAX
POP R12
XOR EAX,EAX
JMP 0x001283c0
MOV qword ptr [RDX + 0x38],RBP
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_0013fc40(void)\n\n{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}\n\n" (function_definition "void FUN_0013fc40(void)\n\n{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}" primitive_type (function_declarator "FUN_0013fc40(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (expression_statement "iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);" (assignment_expression "iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0)" identifier = (call_expression "bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0)" identifier (argument_list "(DAT_002a6810,&DAT_002a67c0)" ( identifier , (pointer_expression "&DAT_002a67c0" & identifier) )))) ;) (expression_statement "pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";" (assignment_expression "pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n"" identifier = (string_literal ""%X%P: .eh_frame/.stab edit: %E\n"" " string_content escape_sequence ")) ;) (if_statement "if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }" { (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" identifier = number_literal) ;) (do_statement "do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);" do (compound_statement "{\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    }" { (expression_statement "FUN_0011d420(iVar5);" (call_expression "FUN_0011d420(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "lVar1 = DAT_002a6810;" (assignment_expression "lVar1 = DAT_002a6810" identifier = identifier) ;) (if_statement "if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }" if (parenthesized_expression "((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2))" ( (binary_expression "(*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)" (parenthesized_expression "(*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5)" ( (binary_expression "*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5" (pointer_expression "*(int *)(*(long *)(DAT_002a6810 + 8) + 8)" * (cast_expression "(int *)(*(long *)(DAT_002a6810 + 8) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(DAT_002a6810 + 8) + 8)" ( (binary_expression "*(long *)(DAT_002a6810 + 8) + 8" (pointer_expression "*(long *)(DAT_002a6810 + 8)" * (cast_expression "(long *)(DAT_002a6810 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002a6810 + 8)" ( (binary_expression "DAT_002a6810 + 8" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "((DAT_002a67c0 & 3) == 2)" ( (binary_expression "(DAT_002a67c0 & 3) == 2" (parenthesized_expression "(DAT_002a67c0 & 3)" ( (binary_expression "DAT_002a67c0 & 3" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);" (assignment_expression "puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" identifier = (pointer_expression "*(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" * (cast_expression "(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (binary_expression "*(long *)(DAT_002a6810 + 0xf8) + 0xc98" (pointer_expression "*(long *)(DAT_002a6810 + 0xf8)" * (cast_expression "(long *)(DAT_002a6810 + 0xf8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002a6810 + 0xf8)" ( (binary_expression "DAT_002a6810 + 0xf8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = puVar3[7];" (assignment_expression "uVar4 = puVar3[7]" identifier = (subscript_expression "puVar3[7]" identifier [ number_literal ])) ;) (if_statement "if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }" if (parenthesized_expression "(DAT_002a6750 == 0)" ( (binary_expression "DAT_002a6750 == 0" identifier == number_literal) )) (compound_statement "{\n        *puVar3 = 0;\n      }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0)" identifier = (call_expression "_bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0)" identifier (argument_list "(lVar1,&DAT_002a67c0)" ( identifier , (pointer_expression "&DAT_002a67c0" & identifier) )))) ;) (if_statement "if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" identifier (argument_list "(0,"%F%P: map sections to segments failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: map sections to segments failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_001283c0(uVar6);" (call_expression "FUN_001283c0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) })) (expression_statement "lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);" (assignment_expression "lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" identifier = (pointer_expression "*(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" * (cast_expression "(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (binary_expression "*(long *)(DAT_002a6810 + 0xf8) + 0xc98" (pointer_expression "*(long *)(DAT_002a6810 + 0xf8)" * (cast_expression "(long *)(DAT_002a6810 + 0xf8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002a6810 + 0xf8)" ( (binary_expression "DAT_002a6810 + 0xf8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar2 = *(ulong *)(lVar1 + 0x38);" (assignment_expression "uVar2 = *(ulong *)(lVar1 + 0x38)" identifier = (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (uVar4 == uVar2) {\n        return;\n      }" if (parenthesized_expression "(uVar4 == uVar2)" ( (binary_expression "uVar4 == uVar2" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }" if (parenthesized_expression "((iVar7 < 7) && (uVar2 <= uVar4))" ( (binary_expression "(iVar7 < 7) && (uVar2 <= uVar4)" (parenthesized_expression "(iVar7 < 7)" ( (binary_expression "iVar7 < 7" identifier < number_literal) )) && (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) ))) )) (compound_statement "{\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }" { (expression_statement "*(ulong *)(lVar1 + 0x38) = uVar4;" (assignment_expression "*(ulong *)(lVar1 + 0x38) = uVar4" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar8 = "%F%P: looping in map_segments";" (assignment_expression "pcVar8 = "%F%P: looping in map_segments"" identifier = (string_literal ""%F%P: looping in map_segments"" " string_content ")) ;) })) (expression_statement "uVar6 = dcgettext(0,pcVar8,5);" (assignment_expression "uVar6 = dcgettext(0,pcVar8,5)" identifier = (call_expression "dcgettext(0,pcVar8,5)" identifier (argument_list "(0,pcVar8,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_001283c0(uVar6);" (call_expression "FUN_001283c0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid gldelf32lppc_after_allocation(void)\n\n{\n  ulong uVar1;\n  output_elf_obj_tdata *poVar2;\n  ulong uVar3;\n  bfd *pbVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  \n  iVar5 = bfd_elf_discard_info(link_info.output_bfd,&link_info);\n  pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar6 = 10;\n    do {\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    pcVar7 = "%F%P: looping in map_segments";\n  }\n  pcVar7 = (char *)dcgettext(0,pcVar7,5);\n  einfo(pcVar7);\n  return;\n}\n\n" comment (function_definition "void gldelf32lppc_after_allocation(void)\n\n{\n  ulong uVar1;\n  output_elf_obj_tdata *poVar2;\n  ulong uVar3;\n  bfd *pbVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  \n  iVar5 = bfd_elf_discard_info(link_info.output_bfd,&link_info);\n  pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar6 = 10;\n    do {\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    pcVar7 = "%F%P: looping in map_segments";\n  }\n  pcVar7 = (char *)dcgettext(0,pcVar7,5);\n  einfo(pcVar7);\n  return;\n}" primitive_type (function_declarator "gldelf32lppc_after_allocation(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  ulong uVar1;\n  output_elf_obj_tdata *poVar2;\n  ulong uVar3;\n  bfd *pbVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  \n  iVar5 = bfd_elf_discard_info(link_info.output_bfd,&link_info);\n  pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar6 = 10;\n    do {\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    pcVar7 = "%F%P: looping in map_segments";\n  }\n  pcVar7 = (char *)dcgettext(0,pcVar7,5);\n  einfo(pcVar7);\n  return;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "output_elf_obj_tdata *poVar2;" type_identifier (pointer_declarator "*poVar2" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "bfd *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "iVar5 = bfd_elf_discard_info(link_info.output_bfd,&link_info);" (assignment_expression "iVar5 = bfd_elf_discard_info(link_info.output_bfd,&link_info)" identifier = (call_expression "bfd_elf_discard_info(link_info.output_bfd,&link_info)" identifier (argument_list "(link_info.output_bfd,&link_info)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) , (pointer_expression "&link_info" & identifier) )))) ;) (expression_statement "pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n";" (assignment_expression "pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n"" identifier = (string_literal ""%X%P: .eh_frame/.stab edit: %E\n"" " string_content escape_sequence ")) ;) (if_statement "if (-1 < iVar5) {\n    iVar6 = 10;\n    do {\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    pcVar7 = "%F%P: looping in map_segments";\n  }" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (compound_statement "{\n    iVar6 = 10;\n    do {\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);\n    pcVar7 = "%F%P: looping in map_segments";\n  }" { (expression_statement "iVar6 = 10;" (assignment_expression "iVar6 = 10" identifier = number_literal) ;) (do_statement "do {\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    } while (iVar6 != 0);" do (compound_statement "{\n      lang_relax_sections(iVar5);\n      pbVar4 = link_info.output_bfd;\n      if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar3 = poVar2->program_header_size;\n      if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);\n      if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }\n      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n      uVar1 = poVar2->program_header_size;\n      if (uVar3 == uVar1) {\n        return;\n      }\n      if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }\n      iVar5 = 1;\n      iVar6 = iVar6 + -1;\n    }" { (expression_statement "lang_relax_sections(iVar5);" (call_expression "lang_relax_sections(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "pbVar4 = link_info.output_bfd;" (assignment_expression "pbVar4 = link_info.output_bfd" identifier = (field_expression "link_info.output_bfd" identifier . field_identifier)) ;) (if_statement "if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)) {\n        return;\n      }" if (parenthesized_expression "(((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2))" ( (binary_expression "((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||\n         ((link_info._0_1_ & 3) == 2)" (parenthesized_expression "((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour)" ( (binary_expression "(link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour" (field_expression "(link_info.output_bfd)->xvec->flavour" (field_expression "(link_info.output_bfd)->xvec" (parenthesized_expression "(link_info.output_bfd)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) )) -> field_identifier) -> field_identifier) != identifier) )) || (parenthesized_expression "((link_info._0_1_ & 3) == 2)" ( (binary_expression "(link_info._0_1_ & 3) == 2" (parenthesized_expression "(link_info._0_1_ & 3)" ( (binary_expression "link_info._0_1_ & 3" (field_expression "link_info._0_1_" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;" (assignment_expression "poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o" identifier = (field_expression "(((link_info.output_bfd)->tdata).elf_obj_data)->o" (parenthesized_expression "(((link_info.output_bfd)->tdata).elf_obj_data)" ( (field_expression "((link_info.output_bfd)->tdata).elf_obj_data" (parenthesized_expression "((link_info.output_bfd)->tdata)" ( (field_expression "(link_info.output_bfd)->tdata" (parenthesized_expression "(link_info.output_bfd)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (expression_statement "uVar3 = poVar2->program_header_size;" (assignment_expression "uVar3 = poVar2->program_header_size" identifier = (field_expression "poVar2->program_header_size" identifier -> field_identifier)) ;) (if_statement "if (lang_phdr_list == (lang_phdr *)0x0) {\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }" if (parenthesized_expression "(lang_phdr_list == (lang_phdr *)0x0)" ( (binary_expression "lang_phdr_list == (lang_phdr *)0x0" identifier == (cast_expression "(lang_phdr *)0x0" ( (type_descriptor "lang_phdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        poVar2->seg_map = (elf_segment_map *)0x0;\n      }" { (expression_statement "poVar2->seg_map = (elf_segment_map *)0x0;" (assignment_expression "poVar2->seg_map = (elf_segment_map *)0x0" (field_expression "poVar2->seg_map" identifier -> field_identifier) = (cast_expression "(elf_segment_map *)0x0" ( (type_descriptor "elf_segment_map *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(pbVar4,&link_info)" identifier = (call_expression "_bfd_elf_map_sections_to_segments(pbVar4,&link_info)" identifier (argument_list "(pbVar4,&link_info)" ( identifier , (pointer_expression "&link_info" & identifier) )))) ;) (if_statement "if (iVar5 == 0) {\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        einfo(pcVar7);\n      }" { (expression_statement "pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);" (assignment_expression "pcVar7 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" identifier (argument_list "(0,"%F%P: map sections to segments failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: map sections to segments failed: %E\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(pcVar7);" (call_expression "einfo(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) })) (expression_statement "poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;" (assignment_expression "poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o" identifier = (field_expression "(((link_info.output_bfd)->tdata).elf_obj_data)->o" (parenthesized_expression "(((link_info.output_bfd)->tdata).elf_obj_data)" ( (field_expression "((link_info.output_bfd)->tdata).elf_obj_data" (parenthesized_expression "((link_info.output_bfd)->tdata)" ( (field_expression "(link_info.output_bfd)->tdata" (parenthesized_expression "(link_info.output_bfd)" ( (field_expression "link_info.output_bfd" identifier . field_identifier) )) -> field_identifier) )) . field_identifier) )) -> field_identifier)) ;) (expression_statement "uVar1 = poVar2->program_header_size;" (assignment_expression "uVar1 = poVar2->program_header_size" identifier = (field_expression "poVar2->program_header_size" identifier -> field_identifier)) ;) (if_statement "if (uVar3 == uVar1) {\n        return;\n      }" if (parenthesized_expression "(uVar3 == uVar1)" ( (binary_expression "uVar3 == uVar1" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((iVar6 < 7) && (uVar1 <= uVar3)) {\n        poVar2->program_header_size = uVar3;\n        return;\n      }" if (parenthesized_expression "((iVar6 < 7) && (uVar1 <= uVar3))" ( (binary_expression "(iVar6 < 7) && (uVar1 <= uVar3)" (parenthesized_expression "(iVar6 < 7)" ( (binary_expression "iVar6 < 7" identifier < number_literal) )) && (parenthesized_expression "(uVar1 <= uVar3)" ( (binary_expression "uVar1 <= uVar3" identifier <= identifier) ))) )) (compound_statement "{\n        poVar2->program_header_size = uVar3;\n        return;\n      }" { (expression_statement "poVar2->program_header_size = uVar3;" (assignment_expression "poVar2->program_header_size = uVar3" (field_expression "poVar2->program_header_size" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar7 = "%F%P: looping in map_segments";" (assignment_expression "pcVar7 = "%F%P: looping in map_segments"" identifier = (string_literal ""%F%P: looping in map_segments"" " string_content ")) ;) })) (expression_statement "pcVar7 = (char *)dcgettext(0,pcVar7,5);" (assignment_expression "pcVar7 = (char *)dcgettext(0,pcVar7,5)" identifier = (cast_expression "(char *)dcgettext(0,pcVar7,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,pcVar7,5)" identifier (argument_list "(0,pcVar7,5)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "einfo(pcVar7);" (call_expression "einfo(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0013fc40(void)\n\n{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}\n\n" (function_definition "void FUN_0013fc40(void)\n\n{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}" primitive_type (function_declarator "FUN_0013fc40(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (expression_statement "iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);" (assignment_expression "iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0)" identifier = (call_expression "bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0)" identifier (argument_list "(DAT_002a6810,&DAT_002a67c0)" ( identifier , (pointer_expression "&DAT_002a67c0" & identifier) )))) ;) (expression_statement "pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";" (assignment_expression "pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n"" identifier = (string_literal ""%X%P: .eh_frame/.stab edit: %E\n"" " string_content escape_sequence ")) ;) (if_statement "if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (compound_statement "{\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }" { (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" identifier = number_literal) ;) (do_statement "do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);" do (compound_statement "{\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    }" { (expression_statement "FUN_0011d420(iVar5);" (call_expression "FUN_0011d420(iVar5)" identifier (argument_list "(iVar5)" ( identifier ))) ;) (expression_statement "lVar1 = DAT_002a6810;" (assignment_expression "lVar1 = DAT_002a6810" identifier = identifier) ;) (if_statement "if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }" if (parenthesized_expression "((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2))" ( (binary_expression "(*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)" (parenthesized_expression "(*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5)" ( (binary_expression "*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5" (pointer_expression "*(int *)(*(long *)(DAT_002a6810 + 8) + 8)" * (cast_expression "(int *)(*(long *)(DAT_002a6810 + 8) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(DAT_002a6810 + 8) + 8)" ( (binary_expression "*(long *)(DAT_002a6810 + 8) + 8" (pointer_expression "*(long *)(DAT_002a6810 + 8)" * (cast_expression "(long *)(DAT_002a6810 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002a6810 + 8)" ( (binary_expression "DAT_002a6810 + 8" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "((DAT_002a67c0 & 3) == 2)" ( (binary_expression "(DAT_002a67c0 & 3) == 2" (parenthesized_expression "(DAT_002a67c0 & 3)" ( (binary_expression "DAT_002a67c0 & 3" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);" (assignment_expression "puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" identifier = (pointer_expression "*(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" * (cast_expression "(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (binary_expression "*(long *)(DAT_002a6810 + 0xf8) + 0xc98" (pointer_expression "*(long *)(DAT_002a6810 + 0xf8)" * (cast_expression "(long *)(DAT_002a6810 + 0xf8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002a6810 + 0xf8)" ( (binary_expression "DAT_002a6810 + 0xf8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = puVar3[7];" (assignment_expression "uVar4 = puVar3[7]" identifier = (subscript_expression "puVar3[7]" identifier [ number_literal ])) ;) (if_statement "if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }" if (parenthesized_expression "(DAT_002a6750 == 0)" ( (binary_expression "DAT_002a6750 == 0" identifier == number_literal) )) (compound_statement "{\n        *puVar3 = 0;\n      }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0)" identifier = (call_expression "_bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0)" identifier (argument_list "(lVar1,&DAT_002a67c0)" ( identifier , (pointer_expression "&DAT_002a67c0" & identifier) )))) ;) (if_statement "if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" identifier = (call_expression "dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" identifier (argument_list "(0,"%F%P: map sections to segments failed: %E\n",5)" ( number_literal , (string_literal ""%F%P: map sections to segments failed: %E\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_001283c0(uVar6);" (call_expression "FUN_001283c0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) })) (expression_statement "lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);" (assignment_expression "lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" identifier = (pointer_expression "*(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" * (cast_expression "(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" ( (binary_expression "*(long *)(DAT_002a6810 + 0xf8) + 0xc98" (pointer_expression "*(long *)(DAT_002a6810 + 0xf8)" * (cast_expression "(long *)(DAT_002a6810 + 0xf8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_002a6810 + 0xf8)" ( (binary_expression "DAT_002a6810 + 0xf8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar2 = *(ulong *)(lVar1 + 0x38);" (assignment_expression "uVar2 = *(ulong *)(lVar1 + 0x38)" identifier = (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (uVar4 == uVar2) {\n        return;\n      }" if (parenthesized_expression "(uVar4 == uVar2)" ( (binary_expression "uVar4 == uVar2" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }" if (parenthesized_expression "((iVar7 < 7) && (uVar2 <= uVar4))" ( (binary_expression "(iVar7 < 7) && (uVar2 <= uVar4)" (parenthesized_expression "(iVar7 < 7)" ( (binary_expression "iVar7 < 7" identifier < number_literal) )) && (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) ))) )) (compound_statement "{\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }" { (expression_statement "*(ulong *)(lVar1 + 0x38) = uVar4;" (assignment_expression "*(ulong *)(lVar1 + 0x38) = uVar4" (pointer_expression "*(ulong *)(lVar1 + 0x38)" * (cast_expression "(ulong *)(lVar1 + 0x38)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x38)" ( (binary_expression "lVar1 + 0x38" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar8 = "%F%P: looping in map_segments";" (assignment_expression "pcVar8 = "%F%P: looping in map_segments"" identifier = (string_literal ""%F%P: looping in map_segments"" " string_content ")) ;) })) (expression_statement "uVar6 = dcgettext(0,pcVar8,5);" (assignment_expression "uVar6 = dcgettext(0,pcVar8,5)" identifier = (call_expression "dcgettext(0,pcVar8,5)" identifier (argument_list "(0,pcVar8,5)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "FUN_001283c0(uVar6);" (call_expression "FUN_001283c0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content escape_sequence ")) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0013fc40(void)\n\n{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013fc40(void)" (identifier "FUN_0013fc40") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  long lVar1;\n  ulong uVar2;\n  undefined8 *puVar3;\n  ulong uVar4;\n  int iVar5;\n  undefined8 uVar6;\n  int iVar7;\n  char *pcVar8;\n  \n  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);\n  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";\n  if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }\n  uVar6 = dcgettext(0,pcVar8,5);\n  FUN_001283c0(uVar6);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (expression_statement "iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);" (assignment_expression "iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0)" (identifier "iVar5") (= "=") (call_expression "bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0)" (identifier "bfd_elf_discard_info") (argument_list "(DAT_002a6810,&DAT_002a67c0)" (( "(") (identifier "DAT_002a6810") (, ",") (pointer_expression "&DAT_002a67c0" (& "&") (identifier "DAT_002a67c0")) () ")")))) (; ";")) (expression_statement "pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";" (assignment_expression "pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n"" (identifier "pcVar8") (= "=") (string_literal ""%X%P: .eh_frame/.stab edit: %E\n"" (" """) (string_content "%X%P: .eh_frame/.stab edit: %E") (escape_sequence "\n") (" """))) (; ";")) (if_statement "if (-1 < iVar5) {\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }" (if "if") (parenthesized_expression "(-1 < iVar5)" (( "(") (binary_expression "-1 < iVar5" (number_literal "-1") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n    iVar7 = 10;\n    do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);\n    pcVar8 = "%F%P: looping in map_segments";\n  }" ({ "{") (expression_statement "iVar7 = 10;" (assignment_expression "iVar7 = 10" (identifier "iVar7") (= "=") (number_literal "10")) (; ";")) (do_statement "do {\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    } while (iVar7 != 0);" (do "do") (compound_statement "{\n      FUN_0011d420(iVar5);\n      lVar1 = DAT_002a6810;\n      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }\n      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar4 = puVar3[7];\n      if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }\n      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);\n      if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }\n      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);\n      uVar2 = *(ulong *)(lVar1 + 0x38);\n      if (uVar4 == uVar2) {\n        return;\n      }\n      if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }\n      iVar5 = 1;\n      iVar7 = iVar7 + -1;\n    }" ({ "{") (expression_statement "FUN_0011d420(iVar5);" (call_expression "FUN_0011d420(iVar5)" (identifier "FUN_0011d420") (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "lVar1 = DAT_002a6810;" (assignment_expression "lVar1 = DAT_002a6810" (identifier "lVar1") (= "=") (identifier "DAT_002a6810")) (; ";")) (if_statement "if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {\n        return;\n      }" (if "if") (parenthesized_expression "((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2))" (( "(") (binary_expression "(*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)" (parenthesized_expression "(*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5)" (( "(") (binary_expression "*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5" (pointer_expression "*(int *)(*(long *)(DAT_002a6810 + 8) + 8)" (* "*") (cast_expression "(int *)(*(long *)(DAT_002a6810 + 8) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(DAT_002a6810 + 8) + 8)" (( "(") (binary_expression "*(long *)(DAT_002a6810 + 8) + 8" (pointer_expression "*(long *)(DAT_002a6810 + 8)" (* "*") (cast_expression "(long *)(DAT_002a6810 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002a6810 + 8)" (( "(") (binary_expression "DAT_002a6810 + 8" (identifier "DAT_002a6810") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "5")) () ")")) (|| "||") (parenthesized_expression "((DAT_002a67c0 & 3) == 2)" (( "(") (binary_expression "(DAT_002a67c0 & 3) == 2" (parenthesized_expression "(DAT_002a67c0 & 3)" (( "(") (binary_expression "DAT_002a67c0 & 3" (identifier "DAT_002a67c0") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);" (assignment_expression "puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (* "*") (cast_expression "(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (( "(") (binary_expression "*(long *)(DAT_002a6810 + 0xf8) + 0xc98" (pointer_expression "*(long *)(DAT_002a6810 + 0xf8)" (* "*") (cast_expression "(long *)(DAT_002a6810 + 0xf8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002a6810 + 0xf8)" (( "(") (binary_expression "DAT_002a6810 + 0xf8" (identifier "DAT_002a6810") (+ "+") (number_literal "0xf8")) () ")")))) (+ "+") (number_literal "0xc98")) () ")"))))) (; ";")) (expression_statement "uVar4 = puVar3[7];" (assignment_expression "uVar4 = puVar3[7]" (identifier "uVar4") (= "=") (subscript_expression "puVar3[7]" (identifier "puVar3") ([ "[") (number_literal "7") (] "]"))) (; ";")) (if_statement "if (DAT_002a6750 == 0) {\n        *puVar3 = 0;\n      }" (if "if") (parenthesized_expression "(DAT_002a6750 == 0)" (( "(") (binary_expression "DAT_002a6750 == 0" (identifier "DAT_002a6750") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *puVar3 = 0;\n      }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0)" (identifier "iVar5") (= "=") (call_expression "_bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0)" (identifier "_bfd_elf_map_sections_to_segments") (argument_list "(lVar1,&DAT_002a67c0)" (( "(") (identifier "lVar1") (, ",") (pointer_expression "&DAT_002a67c0" (& "&") (identifier "DAT_002a67c0")) () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n        FUN_001283c0(uVar6);\n      }" ({ "{") (expression_statement "uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"%F%P: map sections to segments failed: %E\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: map sections to segments failed: %E\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: map sections to segments failed: %E\n"" (" """) (string_content "%F%P: map sections to segments failed: %E") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_001283c0(uVar6);" (call_expression "FUN_001283c0(uVar6)" (identifier "FUN_001283c0") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);" (assignment_expression "lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (* "*") (cast_expression "(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(DAT_002a6810 + 0xf8) + 0xc98)" (( "(") (binary_expression "*(long *)(DAT_002a6810 + 0xf8) + 0xc98" (pointer_expression "*(long *)(DAT_002a6810 + 0xf8)" (* "*") (cast_expression "(long *)(DAT_002a6810 + 0xf8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_002a6810 + 0xf8)" (( "(") (binary_expression "DAT_002a6810 + 0xf8" (identifier "DAT_002a6810") (+ "+") (number_literal "0xf8")) () ")")))) (+ "+") (number_literal "0xc98")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(ulong *)(lVar1 + 0x38);" (assignment_expression "uVar2 = *(ulong *)(lVar1 + 0x38)" (identifier "uVar2") (= "=") (pointer_expression "*(ulong *)(lVar1 + 0x38)" (* "*") (cast_expression "(ulong *)(lVar1 + 0x38)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x38)" (( "(") (binary_expression "lVar1 + 0x38" (identifier "lVar1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (uVar4 == uVar2) {\n        return;\n      }" (if "if") (parenthesized_expression "(uVar4 == uVar2)" (( "(") (binary_expression "uVar4 == uVar2" (identifier "uVar4") (== "==") (identifier "uVar2")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((iVar7 < 7) && (uVar2 <= uVar4)) {\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }" (if "if") (parenthesized_expression "((iVar7 < 7) && (uVar2 <= uVar4))" (( "(") (binary_expression "(iVar7 < 7) && (uVar2 <= uVar4)" (parenthesized_expression "(iVar7 < 7)" (( "(") (binary_expression "iVar7 < 7" (identifier "iVar7") (< "<") (number_literal "7")) () ")")) (&& "&&") (parenthesized_expression "(uVar2 <= uVar4)" (( "(") (binary_expression "uVar2 <= uVar4" (identifier "uVar2") (<= "<=") (identifier "uVar4")) () ")"))) () ")")) (compound_statement "{\n        *(ulong *)(lVar1 + 0x38) = uVar4;\n        return;\n      }" ({ "{") (expression_statement "*(ulong *)(lVar1 + 0x38) = uVar4;" (assignment_expression "*(ulong *)(lVar1 + 0x38) = uVar4" (pointer_expression "*(ulong *)(lVar1 + 0x38)" (* "*") (cast_expression "(ulong *)(lVar1 + 0x38)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x38)" (( "(") (binary_expression "lVar1 + 0x38" (identifier "lVar1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "pcVar8 = "%F%P: looping in map_segments";" (assignment_expression "pcVar8 = "%F%P: looping in map_segments"" (identifier "pcVar8") (= "=") (string_literal ""%F%P: looping in map_segments"" (" """) (string_content "%F%P: looping in map_segments") (" """))) (; ";")) (} "}"))) (expression_statement "uVar6 = dcgettext(0,pcVar8,5);" (assignment_expression "uVar6 = dcgettext(0,pcVar8,5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,pcVar8,5)" (identifier "dcgettext") (argument_list "(0,pcVar8,5)" (( "(") (number_literal "0") (, ",") (identifier "pcVar8") (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_001283c0(uVar6);" (call_expression "FUN_001283c0(uVar6)" (identifier "FUN_001283c0") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  type_1 var_10;
  type_2 *poVar2;
  type_1 var_9;
  type_3 *pbVar4;
  int var_2;
  int var_11;
  char *pcVar7;
  
  var_2 = var_1(link_info.output_bfd,&link_info);
  pcVar7 = "%X%P: .eh_frame/.stab edit: %E\n";
  if (-1 < var_2) {
    var_11 = 10;
    do {
      var_3(var_2);
      pbVar4 = link_info.output_bfd;
      if (((link_info.output_bfd)->xvec->flavour != var_4) ||
         ((link_info._0_1_ & 3) == 2)) {
        return;
      }
      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
      var_9 = poVar2->program_header_size;
      if (var_5 == (type_4 *)0x0) {
        poVar2->seg_map = (type_5 *)0x0;
      }
      var_2 = var_6(pbVar4,&link_info);
      if (var_2 == 0) {
        pcVar7 = (char *)var_7(0,"%F%P: map sections to segments failed: %E\n",5);
        var_8(pcVar7);
      }
      poVar2 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
      var_10 = poVar2->program_header_size;
      if (var_9 == var_10) {
        return;
      }
      if ((var_11 < 7) && (var_10 <= var_9)) {
        poVar2->program_header_size = var_9;
        return;
      }
      var_2 = 1;
      var_11 = var_11 + -1;
    } while (var_11 != 0);
    pcVar7 = "%F%P: looping in map_segments";
  }
  pcVar7 = (char *)var_7(0,pcVar7,5);
  var_8(pcVar7);
  return;
}


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

void MASKED(void)

{
  long lVar1;
  ulong uVar2;
  undefined8 *puVar3;
  ulong uVar4;
  int iVar5;
  undefined8 uVar6;
  int iVar7;
  char *pcVar8;
  
  iVar5 = bfd_elf_discard_info(DAT_002a6810,&DAT_002a67c0);
  pcVar8 = "%X%P: .eh_frame/.stab edit: %E\n";
  if (-1 < iVar5) {
    iVar7 = 10;
    do {
      FUN_0011d420(iVar5);
      lVar1 = DAT_002a6810;
      if ((*(int *)(*(long *)(DAT_002a6810 + 8) + 8) != 5) || ((DAT_002a67c0 & 3) == 2)) {
        return;
      }
      puVar3 = *(undefined8 **)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);
      uVar4 = puVar3[7];
      if (DAT_002a6750 == 0) {
        *puVar3 = 0;
      }
      iVar5 = _bfd_elf_map_sections_to_segments(lVar1,&DAT_002a67c0);
      if (iVar5 == 0) {
        uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);
        FUN_001283c0(uVar6);
      }
      lVar1 = *(long *)(*(long *)(DAT_002a6810 + 0xf8) + 0xc98);
      uVar2 = *(ulong *)(lVar1 + 0x38);
      if (uVar4 == uVar2) {
        return;
      }
      if ((iVar7 < 7) && (uVar2 <= uVar4)) {
        *(ulong *)(lVar1 + 0x38) = uVar4;
        return;
      }
      iVar5 = 1;
      iVar7 = iVar7 + -1;
    } while (iVar7 != 0);
    pcVar8 = "%F%P: looping in map_segments";
  }
  uVar6 = dcgettext(0,pcVar8,5);
  FUN_001283c0(uVar6);
  return;
}

