
bfd_boolean __regparm3 process_corefile_note_segments(Filedata *filedata)

{
  bfd_boolean bVar1;
  Elf_Internal_Phdr *pEVar2;
  uint uVar3;
  bfd_boolean local_20;
  
  pEVar2 = filedata->program_headers;
  if (pEVar2 == (Elf_Internal_Phdr *)0x0) {
    bVar1 = get_program_headers(filedata);
    if (bVar1 == 0) {
      return 1;
    }
    pEVar2 = filedata->program_headers;
  }
  if ((filedata->file_header).e_phnum == 0) {
    return 1;
  }
  local_20 = 1;
  uVar3 = 0;
  do {
    while ((pEVar2->p_type == 4 &&
           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||
            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,
                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {
      local_20 = 0;
      uVar3 = uVar3 + 1;
      pEVar2 = pEVar2 + 1;
      if ((filedata->file_header).e_phnum <= uVar3) {
        return 0;
      }
    }
    uVar3 = uVar3 + 1;
    pEVar2 = pEVar2 + 1;
  } while (uVar3 < (filedata->file_header).e_phnum);
  return local_20;
}



undefined4 __regparm3 FUN_00044f40(int param_1)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined4 local_20;
  
  piVar2 = *(int **)(param_1 + 0x60);
  if (piVar2 == (int *)0x0) {
    iVar1 = FUN_000269d0();
    if (iVar1 == 0) {
      return 1;
    }
    piVar2 = *(int **)(param_1 + 0x60);
  }
  if (*(int *)(param_1 + 0x4c) == 0) {
    return 1;
  }
  local_20 = 1;
  uVar3 = 0;
  do {
    while (*piVar2 != 4) {
LAB_00044f70:
      uVar3 = uVar3 + 1;
      piVar2 = piVar2 + 0xe;
      if (*(uint *)(param_1 + 0x4c) <= uVar3) {
        return local_20;
      }
    }
    if ((piVar2[9] != 0 || piVar2[8] != 0) &&
       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),
       iVar1 != 0)) goto LAB_00044f70;
    local_20 = 0;
    uVar3 = uVar3 + 1;
    piVar2 = piVar2 + 0xe;
    if (*(uint *)(param_1 + 0x4c) <= uVar3) {
      return 0;
    }
  } while( true );
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EBX,dword ptr [EAX + 0x60]
TEST EBX,EBX
JZ 0x00044fd0
MOV EAX,dword ptr [EDI + 0x4c]
TEST EAX,EAX
JZ 0x00044fe8
MOV dword ptr [ESP + 0xc],0x1
XOR ESI,ESI
JMP 0x00044f7b
ADD ESI,0x1
ADD EBX,0x38
CMP dword ptr [EDI + 0x4c],ESI
JBE 0x00044fc0
CMP dword ptr [EBX],0x4
JNZ 0x00044f70
MOV EDX,dword ptr [EBX + 0x24]
MOV EAX,dword ptr [EBX + 0x20]
MOV EBP,EDX
OR EBP,EAX
JZ 0x00044fad
SUB ESP,0x8
PUSH dword ptr [EBX + 0x34]
PUSH dword ptr [EBX + 0x30]
PUSH EDX
XOR EDX,EDX
PUSH EAX
MOV EAX,EDI
PUSH dword ptr [EBX + 0xc]
PUSH dword ptr [EBX + 0x8]
CALL 0x000421c0
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00044f70
MOV dword ptr [ESP + 0xc],0x0
ADD ESI,0x1
ADD EBX,0x38
CMP dword ptr [EDI + 0x4c],ESI
JA 0x00044f7b
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000269d0
TEST EAX,EAX
JZ 0x00044fe8
MOV EBX,dword ptr [EDI + 0x60]
JMP 0x00044f54
MOV dword ptr [ESP + 0xc],0x1
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "undefined4 __regparm3 FUN_00044f40(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00044f40(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00044f40(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x60);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x60)" identifier = (pointer_expression "*(int **)(param_1 + 0x60)" * (cast_expression "(int **)(param_1 + 0x60)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }" { (expression_statement "iVar1 = FUN_000269d0();" (assignment_expression "iVar1 = FUN_000269d0()" identifier = (call_expression "FUN_000269d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar2 = *(int **)(param_1 + 0x60);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x60)" identifier = (pointer_expression "*(int **)(param_1 + 0x60)" * (cast_expression "(int **)(param_1 + 0x60)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  }" { (while_statement "while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }" while (parenthesized_expression "(*piVar2 != 4)" ( (binary_expression "*piVar2 != 4" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }" { (labeled_statement "LAB_00044f70:\n      uVar3 = uVar3 + 1;" statement_identifier : (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;)) (expression_statement "piVar2 = piVar2 + 0xe;" (assignment_expression "piVar2 = piVar2 + 0xe" identifier = (binary_expression "piVar2 + 0xe" identifier + number_literal)) ;) (if_statement "if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }" if (parenthesized_expression "(*(uint *)(param_1 + 0x4c) <= uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x4c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n        return local_20;\n      }" { (return_statement "return local_20;" return identifier ;) })) })) (if_statement "if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;" if (parenthesized_expression "((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0))" ( (binary_expression "(piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)" (parenthesized_expression "(piVar2[9] != 0 || piVar2[8] != 0)" ( (binary_expression "piVar2[9] != 0 || piVar2[8] != 0" (binary_expression "piVar2[9] != 0" (subscript_expression "piVar2[9]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar2[8] != 0" (subscript_expression "piVar2[8]" identifier [ number_literal ]) != number_literal)) )) && (parenthesized_expression "(iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)" ( (comma_expression "iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0" (assignment_expression "iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" identifier = (call_expression "FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" identifier (argument_list "(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) , (subscript_expression "piVar2[3]" identifier [ number_literal ]) , (subscript_expression "piVar2[8]" identifier [ number_literal ]) , (subscript_expression "piVar2[9]" identifier [ number_literal ]) , (subscript_expression "piVar2[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar2[0xd]" identifier [ number_literal ]) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_00044f70;" goto statement_identifier ;)) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 0xe;" (assignment_expression "piVar2 = piVar2 + 0xe" identifier = (binary_expression "piVar2 + 0xe" identifier + number_literal)) ;) (if_statement "if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 0x4c) <= uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x4c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "bfd_boolean __regparm3 process_corefile_note_segments(Filedata *filedata)\n\n{\n  bfd_boolean bVar1;\n  Elf_Internal_Phdr *pEVar2;\n  uint uVar3;\n  bfd_boolean local_20;\n  \n  pEVar2 = filedata->program_headers;\n  if (pEVar2 == (Elf_Internal_Phdr *)0x0) {\n    bVar1 = get_program_headers(filedata);\n    if (bVar1 == 0) {\n      return 1;\n    }\n    pEVar2 = filedata->program_headers;\n  }\n  if ((filedata->file_header).e_phnum == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while ((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }\n    uVar3 = uVar3 + 1;\n    pEVar2 = pEVar2 + 1;\n  } while (uVar3 < (filedata->file_header).e_phnum);\n  return local_20;\n}\n\n" (function_definition "bfd_boolean __regparm3 process_corefile_note_segments(Filedata *filedata)\n\n{\n  bfd_boolean bVar1;\n  Elf_Internal_Phdr *pEVar2;\n  uint uVar3;\n  bfd_boolean local_20;\n  \n  pEVar2 = filedata->program_headers;\n  if (pEVar2 == (Elf_Internal_Phdr *)0x0) {\n    bVar1 = get_program_headers(filedata);\n    if (bVar1 == 0) {\n      return 1;\n    }\n    pEVar2 = filedata->program_headers;\n  }\n  if ((filedata->file_header).e_phnum == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while ((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }\n    uVar3 = uVar3 + 1;\n    pEVar2 = pEVar2 + 1;\n  } while (uVar3 < (filedata->file_header).e_phnum);\n  return local_20;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "process_corefile_note_segments(Filedata *filedata)" identifier (parameter_list "(Filedata *filedata)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  Elf_Internal_Phdr *pEVar2;\n  uint uVar3;\n  bfd_boolean local_20;\n  \n  pEVar2 = filedata->program_headers;\n  if (pEVar2 == (Elf_Internal_Phdr *)0x0) {\n    bVar1 = get_program_headers(filedata);\n    if (bVar1 == 0) {\n      return 1;\n    }\n    pEVar2 = filedata->program_headers;\n  }\n  if ((filedata->file_header).e_phnum == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while ((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }\n    uVar3 = uVar3 + 1;\n    pEVar2 = pEVar2 + 1;\n  } while (uVar3 < (filedata->file_header).e_phnum);\n  return local_20;\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "Elf_Internal_Phdr *pEVar2;" type_identifier (pointer_declarator "*pEVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "bfd_boolean local_20;" type_identifier identifier ;) (expression_statement "pEVar2 = filedata->program_headers;" (assignment_expression "pEVar2 = filedata->program_headers" identifier = (field_expression "filedata->program_headers" identifier -> field_identifier)) ;) (if_statement "if (pEVar2 == (Elf_Internal_Phdr *)0x0) {\n    bVar1 = get_program_headers(filedata);\n    if (bVar1 == 0) {\n      return 1;\n    }\n    pEVar2 = filedata->program_headers;\n  }" if (parenthesized_expression "(pEVar2 == (Elf_Internal_Phdr *)0x0)" ( (binary_expression "pEVar2 == (Elf_Internal_Phdr *)0x0" identifier == (cast_expression "(Elf_Internal_Phdr *)0x0" ( (type_descriptor "Elf_Internal_Phdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar1 = get_program_headers(filedata);\n    if (bVar1 == 0) {\n      return 1;\n    }\n    pEVar2 = filedata->program_headers;\n  }" { (expression_statement "bVar1 = get_program_headers(filedata);" (assignment_expression "bVar1 = get_program_headers(filedata)" identifier = (call_expression "get_program_headers(filedata)" identifier (argument_list "(filedata)" ( identifier )))) ;) (if_statement "if (bVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(bVar1 == 0)" ( (binary_expression "bVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "pEVar2 = filedata->program_headers;" (assignment_expression "pEVar2 = filedata->program_headers" identifier = (field_expression "filedata->program_headers" identifier -> field_identifier)) ;) })) (if_statement "if ((filedata->file_header).e_phnum == 0) {\n    return 1;\n  }" if (parenthesized_expression "((filedata->file_header).e_phnum == 0)" ( (binary_expression "(filedata->file_header).e_phnum == 0" (field_expression "(filedata->file_header).e_phnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }\n    uVar3 = uVar3 + 1;\n    pEVar2 = pEVar2 + 1;\n  } while (uVar3 < (filedata->file_header).e_phnum);" do (compound_statement "{\n    while ((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }\n    uVar3 = uVar3 + 1;\n    pEVar2 = pEVar2 + 1;\n  }" { (while_statement "while ((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))) {\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }" while (parenthesized_expression "((pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0)))))" ( (parenthesized_expression "(pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))))" ( (binary_expression "pEVar2->p_type == 4 &&\n           ((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0)))" (binary_expression "pEVar2->p_type == 4" (field_expression "pEVar2->p_type" identifier -> field_identifier) == number_literal) && (parenthesized_expression "((*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0)))" ( (parenthesized_expression "(*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0))" ( (binary_expression "*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0 ||\n            (bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0)" (binary_expression "*(int *)((int)&pEVar2->p_filesz + 4) == 0 && (int)pEVar2->p_filesz == 0" (binary_expression "*(int *)((int)&pEVar2->p_filesz + 4) == 0" (pointer_expression "*(int *)((int)&pEVar2->p_filesz + 4)" * (cast_expression "(int *)((int)&pEVar2->p_filesz + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pEVar2->p_filesz + 4)" ( (binary_expression "(int)&pEVar2->p_filesz + 4" (cast_expression "(int)&pEVar2->p_filesz" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pEVar2->p_filesz" & (field_expression "pEVar2->p_filesz" identifier -> field_identifier))) + number_literal) )))) == number_literal) && (binary_expression "(int)pEVar2->p_filesz == 0" (cast_expression "(int)pEVar2->p_filesz" ( (type_descriptor "int" primitive_type) ) (field_expression "pEVar2->p_filesz" identifier -> field_identifier)) == number_literal)) || (parenthesized_expression "(bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0)" ( (comma_expression "bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align), bVar1 == 0" (assignment_expression "bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align)" identifier = (call_expression "process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align)" identifier (argument_list "(filedata,(Elf_Internal_Shdr *)0x0,pEVar2->p_offset,\n                                      pEVar2->p_filesz,pEVar2->p_align)" ( identifier , (cast_expression "(Elf_Internal_Shdr *)0x0" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (field_expression "pEVar2->p_offset" identifier -> field_identifier) , (field_expression "pEVar2->p_filesz" identifier -> field_identifier) , (field_expression "pEVar2->p_align" identifier -> field_identifier) )))) , (binary_expression "bVar1 == 0" identifier == number_literal)) ))) )) ))) )) )) (compound_statement "{\n      local_20 = 0;\n      uVar3 = uVar3 + 1;\n      pEVar2 = pEVar2 + 1;\n      if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }\n    }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "pEVar2 = pEVar2 + 1;" (assignment_expression "pEVar2 = pEVar2 + 1" identifier = (binary_expression "pEVar2 + 1" identifier + number_literal)) ;) (if_statement "if ((filedata->file_header).e_phnum <= uVar3) {\n        return 0;\n      }" if (parenthesized_expression "((filedata->file_header).e_phnum <= uVar3)" ( (binary_expression "(filedata->file_header).e_phnum <= uVar3" (field_expression "(filedata->file_header).e_phnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) })) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "pEVar2 = pEVar2 + 1;" (assignment_expression "pEVar2 = pEVar2 + 1" identifier = (binary_expression "pEVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < (filedata->file_header).e_phnum)" ( (binary_expression "uVar3 < (filedata->file_header).e_phnum" identifier < (field_expression "(filedata->file_header).e_phnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) )) ;) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_00044f40(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00044f40(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00044f40(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "piVar2 = *(int **)(param_1 + 0x60);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x60)" identifier = (pointer_expression "*(int **)(param_1 + 0x60)" * (cast_expression "(int **)(param_1 + 0x60)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }" { (expression_statement "iVar1 = FUN_000269d0();" (assignment_expression "iVar1 = FUN_000269d0()" identifier = (call_expression "FUN_000269d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar2 = *(int **)(param_1 + 0x60);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x60)" identifier = (pointer_expression "*(int **)(param_1 + 0x60)" * (cast_expression "(int **)(param_1 + 0x60)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  }" { (while_statement "while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }" while (parenthesized_expression "(*piVar2 != 4)" ( (binary_expression "*piVar2 != 4" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }" { (labeled_statement "LAB_00044f70:\n      uVar3 = uVar3 + 1;" statement_identifier : (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;)) (expression_statement "piVar2 = piVar2 + 0xe;" (assignment_expression "piVar2 = piVar2 + 0xe" identifier = (binary_expression "piVar2 + 0xe" identifier + number_literal)) ;) (if_statement "if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }" if (parenthesized_expression "(*(uint *)(param_1 + 0x4c) <= uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x4c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n        return local_20;\n      }" { (return_statement "return local_20;" return identifier ;) })) })) (if_statement "if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;" if (parenthesized_expression "((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0))" ( (binary_expression "(piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)" (parenthesized_expression "(piVar2[9] != 0 || piVar2[8] != 0)" ( (binary_expression "piVar2[9] != 0 || piVar2[8] != 0" (binary_expression "piVar2[9] != 0" (subscript_expression "piVar2[9]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar2[8] != 0" (subscript_expression "piVar2[8]" identifier [ number_literal ]) != number_literal)) )) && (parenthesized_expression "(iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)" ( (comma_expression "iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0" (assignment_expression "iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" identifier = (call_expression "FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" identifier (argument_list "(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" ( (subscript_expression "piVar2[2]" identifier [ number_literal ]) , (subscript_expression "piVar2[3]" identifier [ number_literal ]) , (subscript_expression "piVar2[8]" identifier [ number_literal ]) , (subscript_expression "piVar2[9]" identifier [ number_literal ]) , (subscript_expression "piVar2[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar2[0xd]" identifier [ number_literal ]) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_00044f70;" goto statement_identifier ;)) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 0xe;" (assignment_expression "piVar2 = piVar2 + 0xe" identifier = (binary_expression "piVar2 + 0xe" identifier + number_literal)) ;) (if_statement "if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 0x4c) <= uVar3)" ( (binary_expression "*(uint *)(param_1 + 0x4c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) || (binary_expression (subscript_expression IDENT [ LIT ]) != LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 __regparm3 FUN_00044f40(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00044f40(int param_1)" (identifier "FUN_00044f40") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 local_20;\n  \n  piVar2 = *(int **)(param_1 + 0x60);\n  if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }\n  if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }\n  local_20 = 1;\n  uVar3 = 0;\n  do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "piVar2 = *(int **)(param_1 + 0x60);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x60)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x60)" (* "*") (cast_expression "(int **)(param_1 + 0x60)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = FUN_000269d0();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar2 = *(int **)(param_1 + 0x60);\n  }" ({ "{") (expression_statement "iVar1 = FUN_000269d0();" (assignment_expression "iVar1 = FUN_000269d0()" (identifier "iVar1") (= "=") (call_expression "FUN_000269d0()" (identifier "FUN_000269d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar2 = *(int **)(param_1 + 0x60);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x60)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x60)" (* "*") (cast_expression "(int **)(param_1 + 0x60)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x4c) == 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x4c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x4c) == 0" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" (identifier "local_20") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }\n    if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;\n    local_20 = 0;\n    uVar3 = uVar3 + 1;\n    piVar2 = piVar2 + 0xe;\n    if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }\n  }" ({ "{") (while_statement "while (*piVar2 != 4) {\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }" (while "while") (parenthesized_expression "(*piVar2 != 4)" (( "(") (binary_expression "*piVar2 != 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\nLAB_00044f70:\n      uVar3 = uVar3 + 1;\n      piVar2 = piVar2 + 0xe;\n      if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }\n    }" ({ "{") (labeled_statement "LAB_00044f70:\n      uVar3 = uVar3 + 1;" (statement_identifier "LAB_00044f70") (: ":") (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "piVar2 = piVar2 + 0xe;" (assignment_expression "piVar2 = piVar2 + 0xe" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 0xe" (identifier "piVar2") (+ "+") (number_literal "0xe"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n        return local_20;\n      }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x4c) <= uVar3)" (( "(") (binary_expression "*(uint *)(param_1 + 0x4c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x4c)" (* "*") (cast_expression "(uint *)(param_1 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n        return local_20;\n      }" ({ "{") (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}"))) (} "}"))) (if_statement "if ((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)) goto LAB_00044f70;" (if "if") (parenthesized_expression "((piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0))" (( "(") (binary_expression "(piVar2[9] != 0 || piVar2[8] != 0) &&\n       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)" (parenthesized_expression "(piVar2[9] != 0 || piVar2[8] != 0)" (( "(") (binary_expression "piVar2[9] != 0 || piVar2[8] != 0" (binary_expression "piVar2[9] != 0" (subscript_expression "piVar2[9]" (identifier "piVar2") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "piVar2[8] != 0" (subscript_expression "piVar2[8]" (identifier "piVar2") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),\n       iVar1 != 0" (assignment_expression "iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" (identifier "iVar1") (= "=") (call_expression "FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" (identifier "FUN_000421c0") (argument_list "(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd])" (( "(") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "piVar2[8]" (identifier "piVar2") ([ "[") (number_literal "8") (] "]")) (, ",") (subscript_expression "piVar2[9]" (identifier "piVar2") ([ "[") (number_literal "9") (] "]")) (, ",") (subscript_expression "piVar2[0xc]" (identifier "piVar2") ([ "[") (number_literal "0xc") (] "]")) (, ",") (subscript_expression "piVar2[0xd]" (identifier "piVar2") ([ "[") (number_literal "0xd") (] "]")) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00044f70;" (goto "goto") (statement_identifier "LAB_00044f70") (; ";"))) (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar2 = piVar2 + 0xe;" (assignment_expression "piVar2 = piVar2 + 0xe" (identifier "piVar2") (= "=") (binary_expression "piVar2 + 0xe" (identifier "piVar2") (+ "+") (number_literal "0xe"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x4c) <= uVar3) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x4c) <= uVar3)" (( "(") (binary_expression "*(uint *)(param_1 + 0x4c) <= uVar3" (pointer_expression "*(uint *)(param_1 + 0x4c)" (* "*") (cast_expression "(uint *)(param_1 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (<= "<=") (identifier "uVar3")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

type_1 __regparm3 function_1(type_2 *filedata)

{
  type_1 var_3;
  type_3 *var_1;
  type_4 var_5;
  type_1 local_20;
  
  var_1 = filedata->program_headers;
  if (var_1 == (type_3 *)0x0) {
    var_3 = var_2(filedata);
    if (var_3 == 0) {
      return 1;
    }
    var_1 = filedata->program_headers;
  }
  if ((filedata->file_header).e_phnum == 0) {
    return 1;
  }
  local_20 = 1;
  var_5 = 0;
  do {
    while ((var_1->p_type == 4 &&
           ((*(int *)((int)&var_1->p_filesz + 4) == 0 && (int)var_1->p_filesz == 0 ||
            (var_3 = var_4(filedata,(type_5 *)0x0,var_1->p_offset,
                                      var_1->p_filesz,var_1->p_align), var_3 == 0))))) {
      local_20 = 0;
      var_5 = var_5 + 1;
      var_1 = var_1 + 1;
      if ((filedata->file_header).e_phnum <= var_5) {
        return 0;
      }
    }
    var_5 = var_5 + 1;
    var_1 = var_1 + 1;
  } while (var_5 < (filedata->file_header).e_phnum);
  return local_20;
}


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

undefined4 __regparm3 MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined4 local_20;
  
  piVar2 = *(int **)(param_1 + 0x60);
  if (piVar2 == (int *)0x0) {
    iVar1 = FUN_000269d0();
    if (iVar1 == 0) {
      return 1;
    }
    piVar2 = *(int **)(param_1 + 0x60);
  }
  if (*(int *)(param_1 + 0x4c) == 0) {
    return 1;
  }
  local_20 = 1;
  uVar3 = 0;
  do {
    while (*piVar2 != 4) {
LAB_00044f70:
      uVar3 = uVar3 + 1;
      piVar2 = piVar2 + 0xe;
      if (*(uint *)(param_1 + 0x4c) <= uVar3) {
        return local_20;
      }
    }
    if ((piVar2[9] != 0 || piVar2[8] != 0) &&
       (iVar1 = FUN_000421c0(piVar2[2],piVar2[3],piVar2[8],piVar2[9],piVar2[0xc],piVar2[0xd]),
       iVar1 != 0)) goto LAB_00044f70;
    local_20 = 0;
    uVar3 = uVar3 + 1;
    piVar2 = piVar2 + 0xe;
    if (*(uint *)(param_1 + 0x4c) <= uVar3) {
      return 0;
    }
  } while( true );
}

