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

void __regparm3 gldarmelf_linux_eabi_map_segments(bfd_boolean need_layout)

{
  output_elf_obj_tdata *poVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  bfd *pbVar6;
  int iVar7;
  char *pcVar8;
  int local_2c;
  
  local_2c = 10;
  while( true ) {
    lang_relax_sections(need_layout);
    pbVar6 = link_info.output_bfd;
    if (((link_info.output_bfd)->xvec->flavour != bfd_target_elf_flavour) ||
       ((link_info._0_1_ & 3) == 2)) {
      return;
    }
    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
    uVar2 = (uint)poVar1->program_header_size;
    uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);
    if (lang_phdr_list == (lang_phdr *)0x0) {
      poVar1->seg_map = (elf_segment_map *)0x0;
    }
    iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);
    if (iVar7 == 0) {
      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);
      einfo(pcVar8);
    }
    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
    uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);
    uVar5 = (uint)poVar1->program_header_size;
    if (uVar4 == uVar3 && uVar2 == uVar5) break;
    if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {
      *(uint *)&poVar1->program_header_size = uVar2;
      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;
      return;
    }
    local_2c = local_2c + -1;
    need_layout = 1;
    if (local_2c == 0) {
      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);
      einfo(pcVar8);
      return;
    }
  }
  return;
}



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

void __regparm3 FUN_00069a60(undefined4 param_1)

{
  undefined4 *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  int local_2c;
  
  local_2c = 10;
  while( true ) {
    FUN_00028f50(param_1);
    iVar5 = DAT_001c4614;
    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {
      return;
    }
    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);
    uVar2 = puVar1[7];
    uVar3 = puVar1[8];
    if (DAT_001c4598 == 0) {
      *puVar1 = 0;
    }
    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);
    if (iVar5 == 0) {
      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);
      FUN_00034dc0(uVar6);
    }
    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);
    uVar4 = *(uint *)(iVar5 + 0x20);
    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;
    if ((local_2c < 7) &&
       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {
      *(uint *)(iVar5 + 0x1c) = uVar2;
      *(uint *)(iVar5 + 0x20) = uVar3;
      return;
    }
    local_2c = local_2c + -1;
    param_1 = 1;
    if (local_2c == 0) {
      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);
      FUN_00034dc0(uVar6);
      return;
    }
  }
  return;
}


PUSH EBP
MOV EBP,0xa
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017c50
ADD EBX,0x158592
SUB ESP,0x2c
MOV dword ptr [ESP + 0x10],EBP
LEA ECX,[EBX + 0x2598]
LEA EDI,[EBX + 0xffeed234]
LEA ESI,[EBX + 0x25e0]
MOV dword ptr [ESP + 0x1c],EDI
MOV dword ptr [ESP + 0x18],ECX
LEA ESI,[ESI]
SUB ESP,0xc
PUSH EAX
CALL 0x00028f50
MOV EAX,dword ptr [ESI + 0x34]
ADD ESP,0x10
MOV EDX,dword ptr [EAX + 0x4]
CMP dword ptr [EDX + 0x4],0x5
JNZ 0x00069b38
MOVZX EDX,byte ptr [ESI]
AND EDX,0x3
CMP DL,0x2
JZ 0x00069b38
MOV EDX,dword ptr [EAX + 0xa0]
MOV EDX,dword ptr [EDX + 0x9c0]
MOV ECX,dword ptr [EDX + 0x1c]
MOV EBP,dword ptr [EDX + 0x20]
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ECX]
TEST ECX,ECX
JZ 0x00069ba0
SUB ESP,0x8
PUSH ESI
PUSH EAX
CALL 0x000163b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00069b80
MOV EAX,dword ptr [ESI + 0x34]
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX + 0xa0]
MOV EAX,dword ptr [EAX + 0x9c0]
MOV EDI,dword ptr [EAX + 0x20]
MOV ECX,dword ptr [EAX + 0x1c]
MOV dword ptr [ESP + 0x14],EDI
XOR EDX,ECX
XOR EDI,EBP
OR EDI,EDX
JZ 0x00069b38
CMP dword ptr [ESP + 0x10],0x6
JG 0x00069b40
MOV EDX,dword ptr [ESP + 0xc]
CMP EDX,ECX
MOV ECX,EBP
SBB ECX,dword ptr [ESP + 0x14]
JC 0x00069b40
MOV dword ptr [EAX + 0x1c],EDX
MOV dword ptr [EAX + 0x20],EBP
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB dword ptr [ESP + 0x10],0x1
MOV EAX,0x1
JNZ 0x00069a98
SUB ESP,0x4
LEA EAX,[EBX + 0xffeed7c0]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00016380
MOV dword ptr [ESP],EAX
CALL 0x00034dc0
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x5
PUSH dword ptr [ESP + 0x24]
PUSH 0x0
CALL 0x00016380
MOV dword ptr [ESP],EAX
CALL 0x00034dc0
ADD ESP,0x10
JMP 0x00069af8
MOV dword ptr [EDX],0x0
JMP 0x00069ae3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00069a60(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00069a60(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00069a60(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = 10;" (assignment_expression "local_2c = 10" identifier = number_literal) ;) (while_statement "while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }" { (expression_statement "FUN_00028f50(param_1);" (call_expression "FUN_00028f50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) (if_statement "if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }" if (parenthesized_expression "((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2))" ( (binary_expression "(*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)" (parenthesized_expression "(*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5)" ( (binary_expression "*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5" (pointer_expression "*(int *)(*(int *)(DAT_001c4614 + 4) + 4)" * (cast_expression "(int *)(*(int *)(DAT_001c4614 + 4) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c4614 + 4) + 4)" ( (binary_expression "*(int *)(DAT_001c4614 + 4) + 4" (pointer_expression "*(int *)(DAT_001c4614 + 4)" * (cast_expression "(int *)(DAT_001c4614 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c4614 + 4)" ( (binary_expression "DAT_001c4614 + 4" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "((DAT_001c45e0 & 3) == 2)" ( (binary_expression "(DAT_001c45e0 & 3) == 2" (parenthesized_expression "(DAT_001c45e0 & 3)" ( (binary_expression "DAT_001c45e0 & 3" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" * (cast_expression "(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (binary_expression "*(int *)(DAT_001c4614 + 0xa0) + 0x9c0" (pointer_expression "*(int *)(DAT_001c4614 + 0xa0)" * (cast_expression "(int *)(DAT_001c4614 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c4614 + 0xa0)" ( (binary_expression "DAT_001c4614 + 0xa0" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar2 = puVar1[7];" (assignment_expression "uVar2 = puVar1[7]" identifier = (subscript_expression "puVar1[7]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar1[8];" (assignment_expression "uVar3 = puVar1[8]" identifier = (subscript_expression "puVar1[8]" identifier [ number_literal ])) ;) (if_statement "if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }" if (parenthesized_expression "(DAT_001c4598 == 0)" ( (binary_expression "DAT_001c4598 == 0" identifier == number_literal) )) (compound_statement "{\n      *puVar1 = 0;\n    }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0)" identifier = (call_expression "_bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0)" identifier (argument_list "(iVar5,&DAT_001c45e0)" ( identifier , (pointer_expression "&DAT_001c45e0" & identifier) )))) ;) (if_statement "if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(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_00034dc0(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_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) })) (expression_statement "iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);" (assignment_expression "iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" * (cast_expression "(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (binary_expression "*(int *)(DAT_001c4614 + 0xa0) + 0x9c0" (pointer_expression "*(int *)(DAT_001c4614 + 0xa0)" * (cast_expression "(int *)(DAT_001c4614 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c4614 + 0xa0)" ( (binary_expression "DAT_001c4614 + 0xa0" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(iVar5 + 0x20);" (assignment_expression "uVar4 = *(uint *)(iVar5 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar5 + 0x20)" * (cast_expression "(uint *)(iVar5 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;" if (parenthesized_expression "(uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c))" ( (binary_expression "uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)" (binary_expression "uVar4 == uVar3" identifier == identifier) && (binary_expression "uVar2 == *(uint *)(iVar5 + 0x1c)" identifier == (pointer_expression "*(uint *)(iVar5 + 0x1c)" * (cast_expression "(uint *)(iVar5 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))))) )) (break_statement "break;" break ;)) (if_statement "if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }" if (parenthesized_expression "((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4))" ( (binary_expression "(local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)" (parenthesized_expression "(local_2c < 7)" ( (binary_expression "local_2c < 7" identifier < number_literal) )) && (parenthesized_expression "(uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)" ( (binary_expression "uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4" (binary_expression "uVar4 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4" (call_expression "(uint)(uVar2 < *(uint *)(iVar5 + 0x1c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < *(uint *)(iVar5 + 0x1c))" ( (binary_expression "uVar2 < *(uint *)(iVar5 + 0x1c)" identifier < (pointer_expression "*(uint *)(iVar5 + 0x1c)" * (cast_expression "(uint *)(iVar5 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) ))))) ))) <= (binary_expression "uVar3 - uVar4" identifier - identifier))) ))) )) (compound_statement "{\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }" { (expression_statement "*(uint *)(iVar5 + 0x1c) = uVar2;" (assignment_expression "*(uint *)(iVar5 + 0x1c) = uVar2" (pointer_expression "*(uint *)(iVar5 + 0x1c)" * (cast_expression "(uint *)(iVar5 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar5 + 0x20) = uVar3;" (assignment_expression "*(uint *)(iVar5 + 0x20) = uVar3" (pointer_expression "*(uint *)(iVar5 + 0x20)" * (cast_expression "(uint *)(iVar5 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) (if_statement "if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }" if (parenthesized_expression "(local_2c == 0)" ( (binary_expression "local_2c == 0" identifier == number_literal) )) (compound_statement "{\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: looping in map_segments",5)" identifier = (call_expression "dcgettext(0,"%F%P: looping in map_segments",5)" identifier (argument_list "(0,"%F%P: looping in map_segments",5)" ( number_literal , (string_literal ""%F%P: looping in map_segments"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 gldarmelf_linux_eabi_map_segments(bfd_boolean need_layout)\n\n{\n  output_elf_obj_tdata *poVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  bfd *pbVar6;\n  int iVar7;\n  char *pcVar8;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    lang_relax_sections(need_layout);\n    pbVar6 = 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    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar2 = (uint)poVar1->program_header_size;\n    uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);\n    if (lang_phdr_list == (lang_phdr *)0x0) {\n      poVar1->seg_map = (elf_segment_map *)0x0;\n    }\n    iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);\n    if (iVar7 == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }\n    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);\n    uVar5 = (uint)poVar1->program_header_size;\n    if (uVar4 == uVar3 && uVar2 == uVar5) break;\n    if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    need_layout = 1;\n    if (local_2c == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 gldarmelf_linux_eabi_map_segments(bfd_boolean need_layout)\n\n{\n  output_elf_obj_tdata *poVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  bfd *pbVar6;\n  int iVar7;\n  char *pcVar8;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    lang_relax_sections(need_layout);\n    pbVar6 = 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    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar2 = (uint)poVar1->program_header_size;\n    uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);\n    if (lang_phdr_list == (lang_phdr *)0x0) {\n      poVar1->seg_map = (elf_segment_map *)0x0;\n    }\n    iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);\n    if (iVar7 == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }\n    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);\n    uVar5 = (uint)poVar1->program_header_size;\n    if (uVar4 == uVar3 && uVar2 == uVar5) break;\n    if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    need_layout = 1;\n    if (local_2c == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "gldarmelf_linux_eabi_map_segments(bfd_boolean need_layout)" identifier (parameter_list "(bfd_boolean need_layout)" ( (parameter_declaration "bfd_boolean need_layout" type_identifier identifier) ))) (compound_statement "{\n  output_elf_obj_tdata *poVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  bfd *pbVar6;\n  int iVar7;\n  char *pcVar8;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    lang_relax_sections(need_layout);\n    pbVar6 = 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    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar2 = (uint)poVar1->program_header_size;\n    uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);\n    if (lang_phdr_list == (lang_phdr *)0x0) {\n      poVar1->seg_map = (elf_segment_map *)0x0;\n    }\n    iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);\n    if (iVar7 == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }\n    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);\n    uVar5 = (uint)poVar1->program_header_size;\n    if (uVar4 == uVar3 && uVar2 == uVar5) break;\n    if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    need_layout = 1;\n    if (local_2c == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }\n  }\n  return;\n}" { (declaration "output_elf_obj_tdata *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "bfd *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = 10;" (assignment_expression "local_2c = 10" identifier = number_literal) ;) (while_statement "while( true ) {\n    lang_relax_sections(need_layout);\n    pbVar6 = 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    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar2 = (uint)poVar1->program_header_size;\n    uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);\n    if (lang_phdr_list == (lang_phdr *)0x0) {\n      poVar1->seg_map = (elf_segment_map *)0x0;\n    }\n    iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);\n    if (iVar7 == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }\n    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);\n    uVar5 = (uint)poVar1->program_header_size;\n    if (uVar4 == uVar3 && uVar2 == uVar5) break;\n    if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    need_layout = 1;\n    if (local_2c == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    lang_relax_sections(need_layout);\n    pbVar6 = 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    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar2 = (uint)poVar1->program_header_size;\n    uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);\n    if (lang_phdr_list == (lang_phdr *)0x0) {\n      poVar1->seg_map = (elf_segment_map *)0x0;\n    }\n    iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);\n    if (iVar7 == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }\n    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;\n    uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);\n    uVar5 = (uint)poVar1->program_header_size;\n    if (uVar4 == uVar3 && uVar2 == uVar5) break;\n    if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    need_layout = 1;\n    if (local_2c == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }\n  }" { (expression_statement "lang_relax_sections(need_layout);" (call_expression "lang_relax_sections(need_layout)" identifier (argument_list "(need_layout)" ( identifier ))) ;) (expression_statement "pbVar6 = link_info.output_bfd;" (assignment_expression "pbVar6 = 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 "poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;" (assignment_expression "poVar1 = (((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 "uVar2 = (uint)poVar1->program_header_size;" (assignment_expression "uVar2 = (uint)poVar1->program_header_size" identifier = (cast_expression "(uint)poVar1->program_header_size" ( (type_descriptor "uint" type_identifier) ) (field_expression "poVar1->program_header_size" identifier -> field_identifier))) ;) (expression_statement "uVar3 = *(uint *)((int)&poVar1->program_header_size + 4);" (assignment_expression "uVar3 = *(uint *)((int)&poVar1->program_header_size + 4)" identifier = (pointer_expression "*(uint *)((int)&poVar1->program_header_size + 4)" * (cast_expression "(uint *)((int)&poVar1->program_header_size + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&poVar1->program_header_size + 4)" ( (binary_expression "(int)&poVar1->program_header_size + 4" (cast_expression "(int)&poVar1->program_header_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&poVar1->program_header_size" & (field_expression "poVar1->program_header_size" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if (lang_phdr_list == (lang_phdr *)0x0) {\n      poVar1->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      poVar1->seg_map = (elf_segment_map *)0x0;\n    }" { (expression_statement "poVar1->seg_map = (elf_segment_map *)0x0;" (assignment_expression "poVar1->seg_map = (elf_segment_map *)0x0" (field_expression "poVar1->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 "iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info);" (assignment_expression "iVar7 = _bfd_elf_map_sections_to_segments(pbVar6,&link_info)" identifier = (call_expression "_bfd_elf_map_sections_to_segments(pbVar6,&link_info)" identifier (argument_list "(pbVar6,&link_info)" ( identifier , (pointer_expression "&link_info" & identifier) )))) ;) (if_statement "if (iVar7 == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      einfo(pcVar8);\n    }" { (expression_statement "pcVar8 = (char *)dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);" (assignment_expression "pcVar8 = (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(pcVar8);" (call_expression "einfo(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) })) (expression_statement "poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;" (assignment_expression "poVar1 = (((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 "uVar4 = *(uint *)((int)&poVar1->program_header_size + 4);" (assignment_expression "uVar4 = *(uint *)((int)&poVar1->program_header_size + 4)" identifier = (pointer_expression "*(uint *)((int)&poVar1->program_header_size + 4)" * (cast_expression "(uint *)((int)&poVar1->program_header_size + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&poVar1->program_header_size + 4)" ( (binary_expression "(int)&poVar1->program_header_size + 4" (cast_expression "(int)&poVar1->program_header_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&poVar1->program_header_size" & (field_expression "poVar1->program_header_size" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar5 = (uint)poVar1->program_header_size;" (assignment_expression "uVar5 = (uint)poVar1->program_header_size" identifier = (cast_expression "(uint)poVar1->program_header_size" ( (type_descriptor "uint" type_identifier) ) (field_expression "poVar1->program_header_size" identifier -> field_identifier))) ;) (if_statement "if (uVar4 == uVar3 && uVar2 == uVar5) break;" if (parenthesized_expression "(uVar4 == uVar3 && uVar2 == uVar5)" ( (binary_expression "uVar4 == uVar3 && uVar2 == uVar5" (binary_expression "uVar4 == uVar3" identifier == identifier) && (binary_expression "uVar2 == uVar5" identifier == identifier)) )) (break_statement "break;" break ;)) (if_statement "if ((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)) {\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }" if (parenthesized_expression "((local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4))" ( (binary_expression "(local_2c < 7) && (uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)" (parenthesized_expression "(local_2c < 7)" ( (binary_expression "local_2c < 7" identifier < number_literal) )) && (parenthesized_expression "(uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4)" ( (binary_expression "uVar4 <= uVar3 && (uint)(uVar2 < uVar5) <= uVar3 - uVar4" (binary_expression "uVar4 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(uVar2 < uVar5) <= uVar3 - uVar4" (call_expression "(uint)(uVar2 < uVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < uVar5)" ( (binary_expression "uVar2 < uVar5" identifier < identifier) ))) <= (binary_expression "uVar3 - uVar4" identifier - identifier))) ))) )) (compound_statement "{\n      *(uint *)&poVar1->program_header_size = uVar2;\n      *(uint *)((int)&poVar1->program_header_size + 4) = uVar3;\n      return;\n    }" { (expression_statement "*(uint *)&poVar1->program_header_size = uVar2;" (assignment_expression "*(uint *)&poVar1->program_header_size = uVar2" (pointer_expression "*(uint *)&poVar1->program_header_size" * (cast_expression "(uint *)&poVar1->program_header_size" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&poVar1->program_header_size" & (field_expression "poVar1->program_header_size" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(uint *)((int)&poVar1->program_header_size + 4) = uVar3;" (assignment_expression "*(uint *)((int)&poVar1->program_header_size + 4) = uVar3" (pointer_expression "*(uint *)((int)&poVar1->program_header_size + 4)" * (cast_expression "(uint *)((int)&poVar1->program_header_size + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&poVar1->program_header_size + 4)" ( (binary_expression "(int)&poVar1->program_header_size + 4" (cast_expression "(int)&poVar1->program_header_size" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&poVar1->program_header_size" & (field_expression "poVar1->program_header_size" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (expression_statement "need_layout = 1;" (assignment_expression "need_layout = 1" identifier = number_literal) ;) (if_statement "if (local_2c == 0) {\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }" if (parenthesized_expression "(local_2c == 0)" ( (binary_expression "local_2c == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);\n      einfo(pcVar8);\n      return;\n    }" { (expression_statement "pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5);" (assignment_expression "pcVar8 = (char *)dcgettext(0,"%F%P: looping in map_segments",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P: looping in map_segments",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P: looping in map_segments",5)" identifier (argument_list "(0,"%F%P: looping in map_segments",5)" ( number_literal , (string_literal ""%F%P: looping in map_segments"" " string_content ") , number_literal ))))) ;) (expression_statement "einfo(pcVar8);" (call_expression "einfo(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00069a60(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00069a60(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00069a60(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = 10;" (assignment_expression "local_2c = 10" identifier = number_literal) ;) (while_statement "while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }" { (expression_statement "FUN_00028f50(param_1);" (call_expression "FUN_00028f50(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" identifier = identifier) ;) (if_statement "if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }" if (parenthesized_expression "((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2))" ( (binary_expression "(*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)" (parenthesized_expression "(*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5)" ( (binary_expression "*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5" (pointer_expression "*(int *)(*(int *)(DAT_001c4614 + 4) + 4)" * (cast_expression "(int *)(*(int *)(DAT_001c4614 + 4) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c4614 + 4) + 4)" ( (binary_expression "*(int *)(DAT_001c4614 + 4) + 4" (pointer_expression "*(int *)(DAT_001c4614 + 4)" * (cast_expression "(int *)(DAT_001c4614 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c4614 + 4)" ( (binary_expression "DAT_001c4614 + 4" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) || (parenthesized_expression "((DAT_001c45e0 & 3) == 2)" ( (binary_expression "(DAT_001c45e0 & 3) == 2" (parenthesized_expression "(DAT_001c45e0 & 3)" ( (binary_expression "DAT_001c45e0 & 3" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" * (cast_expression "(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (binary_expression "*(int *)(DAT_001c4614 + 0xa0) + 0x9c0" (pointer_expression "*(int *)(DAT_001c4614 + 0xa0)" * (cast_expression "(int *)(DAT_001c4614 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c4614 + 0xa0)" ( (binary_expression "DAT_001c4614 + 0xa0" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar2 = puVar1[7];" (assignment_expression "uVar2 = puVar1[7]" identifier = (subscript_expression "puVar1[7]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar1[8];" (assignment_expression "uVar3 = puVar1[8]" identifier = (subscript_expression "puVar1[8]" identifier [ number_literal ])) ;) (if_statement "if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }" if (parenthesized_expression "(DAT_001c4598 == 0)" ( (binary_expression "DAT_001c4598 == 0" identifier == number_literal) )) (compound_statement "{\n      *puVar1 = 0;\n    }" { (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0)" identifier = (call_expression "_bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0)" identifier (argument_list "(iVar5,&DAT_001c45e0)" ( identifier , (pointer_expression "&DAT_001c45e0" & identifier) )))) ;) (if_statement "if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(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_00034dc0(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_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) })) (expression_statement "iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);" (assignment_expression "iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" * (cast_expression "(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" ( (binary_expression "*(int *)(DAT_001c4614 + 0xa0) + 0x9c0" (pointer_expression "*(int *)(DAT_001c4614 + 0xa0)" * (cast_expression "(int *)(DAT_001c4614 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_001c4614 + 0xa0)" ( (binary_expression "DAT_001c4614 + 0xa0" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(uint *)(iVar5 + 0x20);" (assignment_expression "uVar4 = *(uint *)(iVar5 + 0x20)" identifier = (pointer_expression "*(uint *)(iVar5 + 0x20)" * (cast_expression "(uint *)(iVar5 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;" if (parenthesized_expression "(uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c))" ( (binary_expression "uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)" (binary_expression "uVar4 == uVar3" identifier == identifier) && (binary_expression "uVar2 == *(uint *)(iVar5 + 0x1c)" identifier == (pointer_expression "*(uint *)(iVar5 + 0x1c)" * (cast_expression "(uint *)(iVar5 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))))) )) (break_statement "break;" break ;)) (if_statement "if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }" if (parenthesized_expression "((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4))" ( (binary_expression "(local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)" (parenthesized_expression "(local_2c < 7)" ( (binary_expression "local_2c < 7" identifier < number_literal) )) && (parenthesized_expression "(uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)" ( (binary_expression "uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4" (binary_expression "uVar4 <= uVar3" identifier <= identifier) && (binary_expression "(uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4" (call_expression "(uint)(uVar2 < *(uint *)(iVar5 + 0x1c))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < *(uint *)(iVar5 + 0x1c))" ( (binary_expression "uVar2 < *(uint *)(iVar5 + 0x1c)" identifier < (pointer_expression "*(uint *)(iVar5 + 0x1c)" * (cast_expression "(uint *)(iVar5 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) ))))) ))) <= (binary_expression "uVar3 - uVar4" identifier - identifier))) ))) )) (compound_statement "{\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }" { (expression_statement "*(uint *)(iVar5 + 0x1c) = uVar2;" (assignment_expression "*(uint *)(iVar5 + 0x1c) = uVar2" (pointer_expression "*(uint *)(iVar5 + 0x1c)" * (cast_expression "(uint *)(iVar5 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar5 + 0x20) = uVar3;" (assignment_expression "*(uint *)(iVar5 + 0x20) = uVar3" (pointer_expression "*(uint *)(iVar5 + 0x20)" * (cast_expression "(uint *)(iVar5 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" identifier = (binary_expression "local_2c + -1" identifier + number_literal)) ;) (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" identifier = number_literal) ;) (if_statement "if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }" if (parenthesized_expression "(local_2c == 0)" ( (binary_expression "local_2c == 0" identifier == number_literal) )) (compound_statement "{\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }" { (expression_statement "uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: looping in map_segments",5)" identifier = (call_expression "dcgettext(0,"%F%P: looping in map_segments",5)" identifier (argument_list "(0,"%F%P: looping in map_segments",5)" ( number_literal , (string_literal ""%F%P: looping in map_segments"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" identifier (argument_list "(uVar6)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( BOOL )) (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 TYPE (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 (binary_expression IDENT == IDENT) && (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) <= (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) ;) (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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00069a60(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00069a60(undefined4 param_1)" (identifier "FUN_00069a60") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int local_2c;\n  \n  local_2c = 10;\n  while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "local_2c = 10;" (assignment_expression "local_2c = 10" (identifier "local_2c") (= "=") (number_literal "10")) (; ";")) (while_statement "while( true ) {\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    FUN_00028f50(param_1);\n    iVar5 = DAT_001c4614;\n    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }\n    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar2 = puVar1[7];\n    uVar3 = puVar1[8];\n    if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }\n    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);\n    if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(uVar6);\n    }\n    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);\n    uVar4 = *(uint *)(iVar5 + 0x20);\n    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;\n    if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }\n    local_2c = local_2c + -1;\n    param_1 = 1;\n    if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }\n  }" ({ "{") (expression_statement "FUN_00028f50(param_1);" (call_expression "FUN_00028f50(param_1)" (identifier "FUN_00028f50") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar5 = DAT_001c4614;" (assignment_expression "iVar5 = DAT_001c4614" (identifier "iVar5") (= "=") (identifier "DAT_001c4614")) (; ";")) (if_statement "if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {\n      return;\n    }" (if "if") (parenthesized_expression "((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2))" (( "(") (binary_expression "(*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)" (parenthesized_expression "(*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5)" (( "(") (binary_expression "*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5" (pointer_expression "*(int *)(*(int *)(DAT_001c4614 + 4) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_001c4614 + 4) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_001c4614 + 4) + 4)" (( "(") (binary_expression "*(int *)(DAT_001c4614 + 4) + 4" (pointer_expression "*(int *)(DAT_001c4614 + 4)" (* "*") (cast_expression "(int *)(DAT_001c4614 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c4614 + 4)" (( "(") (binary_expression "DAT_001c4614 + 4" (identifier "DAT_001c4614") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "5")) () ")")) (|| "||") (parenthesized_expression "((DAT_001c45e0 & 3) == 2)" (( "(") (binary_expression "(DAT_001c45e0 & 3) == 2" (parenthesized_expression "(DAT_001c45e0 & 3)" (( "(") (binary_expression "DAT_001c45e0 & 3" (identifier "DAT_001c45e0") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "2")) () ")"))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (* "*") (cast_expression "(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (( "(") (binary_expression "*(int *)(DAT_001c4614 + 0xa0) + 0x9c0" (pointer_expression "*(int *)(DAT_001c4614 + 0xa0)" (* "*") (cast_expression "(int *)(DAT_001c4614 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c4614 + 0xa0)" (( "(") (binary_expression "DAT_001c4614 + 0xa0" (identifier "DAT_001c4614") (+ "+") (number_literal "0xa0")) () ")")))) (+ "+") (number_literal "0x9c0")) () ")"))))) (; ";")) (expression_statement "uVar2 = puVar1[7];" (assignment_expression "uVar2 = puVar1[7]" (identifier "uVar2") (= "=") (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "uVar3 = puVar1[8];" (assignment_expression "uVar3 = puVar1[8]" (identifier "uVar3") (= "=") (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (if_statement "if (DAT_001c4598 == 0) {\n      *puVar1 = 0;\n    }" (if "if") (parenthesized_expression "(DAT_001c4598 == 0)" (( "(") (binary_expression "DAT_001c4598 == 0" (identifier "DAT_001c4598") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *puVar1 = 0;\n    }" ({ "{") (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);" (assignment_expression "iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0)" (identifier "iVar5") (= "=") (call_expression "_bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0)" (identifier "_bfd_elf_map_sections_to_segments") (argument_list "(iVar5,&DAT_001c45e0)" (( "(") (identifier "iVar5") (, ",") (pointer_expression "&DAT_001c45e0" (& "&") (identifier "DAT_001c45e0")) () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);\n      FUN_00034dc0(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_00034dc0(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_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" (identifier "FUN_00034dc0") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);" (assignment_expression "iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (* "*") (cast_expression "(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0)" (( "(") (binary_expression "*(int *)(DAT_001c4614 + 0xa0) + 0x9c0" (pointer_expression "*(int *)(DAT_001c4614 + 0xa0)" (* "*") (cast_expression "(int *)(DAT_001c4614 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_001c4614 + 0xa0)" (( "(") (binary_expression "DAT_001c4614 + 0xa0" (identifier "DAT_001c4614") (+ "+") (number_literal "0xa0")) () ")")))) (+ "+") (number_literal "0x9c0")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(uint *)(iVar5 + 0x20);" (assignment_expression "uVar4 = *(uint *)(iVar5 + 0x20)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(iVar5 + 0x20)" (* "*") (cast_expression "(uint *)(iVar5 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20)" (( "(") (binary_expression "iVar5 + 0x20" (identifier "iVar5") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;" (if "if") (parenthesized_expression "(uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c))" (( "(") (binary_expression "uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)" (binary_expression "uVar4 == uVar3" (identifier "uVar4") (== "==") (identifier "uVar3")) (&& "&&") (binary_expression "uVar2 == *(uint *)(iVar5 + 0x1c)" (identifier "uVar2") (== "==") (pointer_expression "*(uint *)(iVar5 + 0x1c)" (* "*") (cast_expression "(uint *)(iVar5 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")")))))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }" (if "if") (parenthesized_expression "((local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4))" (( "(") (binary_expression "(local_2c < 7) &&\n       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)" (parenthesized_expression "(local_2c < 7)" (( "(") (binary_expression "local_2c < 7" (identifier "local_2c") (< "<") (number_literal "7")) () ")")) (&& "&&") (parenthesized_expression "(uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)" (( "(") (binary_expression "uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4" (binary_expression "uVar4 <= uVar3" (identifier "uVar4") (<= "<=") (identifier "uVar3")) (&& "&&") (binary_expression "(uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4" (call_expression "(uint)(uVar2 < *(uint *)(iVar5 + 0x1c))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 < *(uint *)(iVar5 + 0x1c))" (( "(") (binary_expression "uVar2 < *(uint *)(iVar5 + 0x1c)" (identifier "uVar2") (< "<") (pointer_expression "*(uint *)(iVar5 + 0x1c)" (* "*") (cast_expression "(uint *)(iVar5 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")"))))) () ")"))) (<= "<=") (binary_expression "uVar3 - uVar4" (identifier "uVar3") (- "-") (identifier "uVar4")))) () ")"))) () ")")) (compound_statement "{\n      *(uint *)(iVar5 + 0x1c) = uVar2;\n      *(uint *)(iVar5 + 0x20) = uVar3;\n      return;\n    }" ({ "{") (expression_statement "*(uint *)(iVar5 + 0x1c) = uVar2;" (assignment_expression "*(uint *)(iVar5 + 0x1c) = uVar2" (pointer_expression "*(uint *)(iVar5 + 0x1c)" (* "*") (cast_expression "(uint *)(iVar5 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(uint *)(iVar5 + 0x20) = uVar3;" (assignment_expression "*(uint *)(iVar5 + 0x20) = uVar3" (pointer_expression "*(uint *)(iVar5 + 0x20)" (* "*") (cast_expression "(uint *)(iVar5 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20)" (( "(") (binary_expression "iVar5 + 0x20" (identifier "iVar5") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "local_2c = local_2c + -1;" (assignment_expression "local_2c = local_2c + -1" (identifier "local_2c") (= "=") (binary_expression "local_2c + -1" (identifier "local_2c") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_1 = 1;" (assignment_expression "param_1 = 1" (identifier "param_1") (= "=") (number_literal "1")) (; ";")) (if_statement "if (local_2c == 0) {\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }" (if "if") (parenthesized_expression "(local_2c == 0)" (( "(") (binary_expression "local_2c == 0" (identifier "local_2c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);\n      FUN_00034dc0(uVar6);\n      return;\n    }" ({ "{") (expression_statement "uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);" (assignment_expression "uVar6 = dcgettext(0,"%F%P: looping in map_segments",5)" (identifier "uVar6") (= "=") (call_expression "dcgettext(0,"%F%P: looping in map_segments",5)" (identifier "dcgettext") (argument_list "(0,"%F%P: looping in map_segments",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P: looping in map_segments"" (" """) (string_content "%F%P: looping in map_segments") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00034dc0(uVar6);" (call_expression "FUN_00034dc0(uVar6)" (identifier "FUN_00034dc0") (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 need_layout)

{
  type_2 *poVar1;
  type_3 var_10;
  type_3 var_9;
  type_3 var_8;
  type_3 var_11;
  type_4 *pbVar6;
  int var_5;
  char *pcVar8;
  int var_12;
  
  var_12 = 10;
  while( true ) {
    var_1(need_layout);
    pbVar6 = link_info.output_bfd;
    if (((link_info.output_bfd)->xvec->flavour != var_2) ||
       ((link_info._0_1_ & 3) == 2)) {
      return;
    }
    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
    var_10 = (type_3)poVar1->program_header_size;
    var_9 = *(type_3 *)((int)&poVar1->program_header_size + 4);
    if (var_3 == (type_5 *)0x0) {
      poVar1->seg_map = (type_6 *)0x0;
    }
    var_5 = var_4(pbVar6,&link_info);
    if (var_5 == 0) {
      pcVar8 = (char *)var_6(0,"%F%P: map sections to segments failed: %E\n",5);
      var_7(pcVar8);
    }
    poVar1 = (((link_info.output_bfd)->tdata).elf_obj_data)->o;
    var_8 = *(type_3 *)((int)&poVar1->program_header_size + 4);
    var_11 = (type_3)poVar1->program_header_size;
    if (var_8 == var_9 && var_10 == var_11) break;
    if ((var_12 < 7) && (var_8 <= var_9 && (type_3)(var_10 < var_11) <= var_9 - var_8)) {
      *(type_3 *)&poVar1->program_header_size = var_10;
      *(type_3 *)((int)&poVar1->program_header_size + 4) = var_9;
      return;
    }
    var_12 = var_12 + -1;
    need_layout = 1;
    if (var_12 == 0) {
      pcVar8 = (char *)var_6(0,"%F%P: looping in map_segments",5);
      var_7(pcVar8);
      return;
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator 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: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (true)) 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: (primitive_type) 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: (primitive_type) 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)))) (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: (primitive_type) 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))))))) (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: (binary_expression left: (identifier) right: (identifier)) right: (binary_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)))))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_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)))))))) right: (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))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  int iVar5;
  undefined4 uVar6;
  int local_2c;
  
  local_2c = 10;
  while( true ) {
    FUN_00028f50(param_1);
    iVar5 = DAT_001c4614;
    if ((*(int *)(*(int *)(DAT_001c4614 + 4) + 4) != 5) || ((DAT_001c45e0 & 3) == 2)) {
      return;
    }
    puVar1 = *(undefined4 **)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);
    uVar2 = puVar1[7];
    uVar3 = puVar1[8];
    if (DAT_001c4598 == 0) {
      *puVar1 = 0;
    }
    iVar5 = _bfd_elf_map_sections_to_segments(iVar5,&DAT_001c45e0);
    if (iVar5 == 0) {
      uVar6 = dcgettext(0,"%F%P: map sections to segments failed: %E\n",5);
      FUN_00034dc0(uVar6);
    }
    iVar5 = *(int *)(*(int *)(DAT_001c4614 + 0xa0) + 0x9c0);
    uVar4 = *(uint *)(iVar5 + 0x20);
    if (uVar4 == uVar3 && uVar2 == *(uint *)(iVar5 + 0x1c)) break;
    if ((local_2c < 7) &&
       (uVar4 <= uVar3 && (uint)(uVar2 < *(uint *)(iVar5 + 0x1c)) <= uVar3 - uVar4)) {
      *(uint *)(iVar5 + 0x1c) = uVar2;
      *(uint *)(iVar5 + 0x20) = uVar3;
      return;
    }
    local_2c = local_2c + -1;
    param_1 = 1;
    if (local_2c == 0) {
      uVar6 = dcgettext(0,"%F%P: looping in map_segments",5);
      FUN_00034dc0(uVar6);
      return;
    }
  }
  return;
}

