
long offset_from_vma(Filedata *filedata,bfd_vma vma,bfd_size_type size)

{
  ulong uVar1;
  bfd_boolean bVar2;
  char *pcVar3;
  Elf_Internal_Phdr *pEVar4;
  Elf_Internal_Phdr *pEVar5;
  
  pEVar4 = filedata->program_headers;
  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {
    bVar2 = get_program_headers(filedata);
    if (bVar2 == 0) {
      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5
                                );
      warn(pcVar3);
      return vma;
    }
    pEVar4 = filedata->program_headers;
  }
  pEVar5 = pEVar4 + (filedata->file_header).e_phnum;
  if (pEVar4 < pEVar5) {
    do {
      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&
         (vma + size <= pEVar4->p_filesz + uVar1)) {
        return (pEVar4->p_offset - uVar1) + vma;
      }
      pEVar4 = pEVar4 + 1;
    } while (pEVar4 < pEVar5);
  }
  pcVar3 = (char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);
  warn(pcVar3,vma);
  return vma;
}



ulong FUN_00119da0(long param_1,ulong param_2,long param_3)

{
  ulong uVar1;
  int iVar2;
  undefined8 uVar3;
  long *plVar4;
  long *plVar5;
  
  plVar4 = *(long **)(param_1 + 0x78);
  if (plVar4 == (long *)0x0) {
    iVar2 = FUN_001199d0();
    if (iVar2 == 0) {
      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);
      warn(uVar3);
      return param_2;
    }
    plVar4 = *(long **)(param_1 + 0x78);
  }
  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;
  if (plVar4 < plVar5) {
    do {
      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&
         (param_2 + param_3 <= plVar4[5] + uVar1)) {
        return (plVar4[2] - uVar1) + param_2;
      }
      plVar4 = plVar4 + 8;
    } while (plVar4 < plVar5);
  }
  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);
  warn(uVar3,param_2);
  return param_2;
}


PUSH R12
MOV R12,RDI
PUSH RBP
MOV RBP,RDX
PUSH RBX
MOV RCX,qword ptr [RDI + 0x78]
MOV RBX,RSI
TEST RCX,RCX
JZ 0x00119e30
MOV EDI,dword ptr [R12 + 0x5c]
SHL RDI,0x6
ADD RDI,RCX
CMP RDI,RCX
JBE 0x00119dfe
LEA RDX,[RBX + RBP*0x1]
NOP dword ptr [RAX + RAX*0x1]
CMP qword ptr [RCX],0x1
JNZ 0x00119df5
MOV RSI,qword ptr [RCX + 0x38]
MOV R8,qword ptr [RCX + 0x18]
NEG RSI
AND RSI,R8
CMP RSI,RBX
JA 0x00119df5
MOV RAX,qword ptr [RCX + 0x28]
ADD RAX,R8
CMP RDX,RAX
JBE 0x00119e48
ADD RCX,0x40
CMP RCX,RDI
JC 0x00119dd0
MOV EDX,0x5
LEA RSI,[0x170420]
XOR EDI,EDI
CALL 0x00107130
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001550d0
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
CALL 0x001199d0
TEST EAX,EAX
JZ 0x00119e57
MOV RCX,qword ptr [R12 + 0x78]
JMP 0x00119db6
MOV RAX,qword ptr [RCX + 0x10]
SUB RAX,R8
ADD RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV EDX,0x5
LEA RSI,[0x1703e0]
XOR EDI,EDI
CALL 0x00107130
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001550d0
MOV RAX,RBX
JMP 0x00119e21
(translation_unit "ulong FUN_00119da0(long param_1,ulong param_2,long param_3)\n\n{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}\n\n" (function_definition "ulong FUN_00119da0(long param_1,ulong param_2,long param_3)\n\n{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}" type_identifier (function_declarator "FUN_00119da0(long param_1,ulong param_2,long param_3)" identifier (parameter_list "(long param_1,ulong param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (expression_statement "plVar4 = *(long **)(param_1 + 0x78);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x78)" identifier = (pointer_expression "*(long **)(param_1 + 0x78)" * (cast_expression "(long **)(param_1 + 0x78)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }" { (expression_statement "iVar2 = FUN_001199d0();" (assignment_expression "iVar2 = FUN_001199d0()" identifier = (call_expression "FUN_001199d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }" { (expression_statement "uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5)" identifier = (call_expression "dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5)" identifier (argument_list "(0,"Cannot interpret virtual addresses without program headers.\n",5)" ( number_literal , (string_literal ""Cannot interpret virtual addresses without program headers.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar3);" (call_expression "warn(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return param_2;" return identifier ;) })) (expression_statement "plVar4 = *(long **)(param_1 + 0x78);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x78)" identifier = (pointer_expression "*(long **)(param_1 + 0x78)" * (cast_expression "(long **)(param_1 + 0x78)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) })) (expression_statement "plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;" (assignment_expression "plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8" identifier = (binary_expression "plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8" identifier + (binary_expression "(ulong)*(uint *)(param_1 + 0x5c) * 8" (binary_expression "(ulong)*(uint *)(param_1 + 0x5c)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(param_1 + 0x5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) * number_literal))) ;) (if_statement "if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }" if (parenthesized_expression "(plVar4 < plVar5)" ( (binary_expression "plVar4 < plVar5" identifier < identifier) )) (compound_statement "{\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }" { (do_statement "do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);" do (compound_statement "{\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    }" { (if_statement "if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }" if (parenthesized_expression "(((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1))" ( (binary_expression "((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)" (parenthesized_expression "((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2))" ( (binary_expression "(*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)" (parenthesized_expression "(*plVar4 == 1)" ( (binary_expression "*plVar4 == 1" (pointer_expression "*plVar4" * identifier) == number_literal) )) && (parenthesized_expression "(uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)" ( (comma_expression "uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2" (assignment_expression "uVar1 = plVar4[3]" identifier = (subscript_expression "plVar4[3]" identifier [ number_literal ])) , (binary_expression "(-plVar4[7] & uVar1) <= param_2" (parenthesized_expression "(-plVar4[7] & uVar1)" ( (binary_expression "-plVar4[7] & uVar1" (unary_expression "-plVar4[7]" - (subscript_expression "plVar4[7]" identifier [ number_literal ])) & identifier) )) <= identifier)) ))) )) && (parenthesized_expression "(param_2 + param_3 <= plVar4[5] + uVar1)" ( (binary_expression "param_2 + param_3 <= plVar4[5] + uVar1" (binary_expression "param_2 + param_3" identifier + identifier) <= (binary_expression "plVar4[5] + uVar1" (subscript_expression "plVar4[5]" identifier [ number_literal ]) + identifier)) ))) )) (compound_statement "{\n        return (plVar4[2] - uVar1) + param_2;\n      }" { (return_statement "return (plVar4[2] - uVar1) + param_2;" return (binary_expression "(plVar4[2] - uVar1) + param_2" (parenthesized_expression "(plVar4[2] - uVar1)" ( (binary_expression "plVar4[2] - uVar1" (subscript_expression "plVar4[2]" identifier [ number_literal ]) - identifier) )) + identifier) ;) })) (expression_statement "plVar4 = plVar4 + 8;" (assignment_expression "plVar4 = plVar4 + 8" identifier = (binary_expression "plVar4 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(plVar4 < plVar5)" ( (binary_expression "plVar4 < plVar5" identifier < identifier) )) ;) })) (expression_statement "uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" identifier = (call_expression "dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" identifier (argument_list "(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" ( number_literal , (string_literal ""Virtual address 0x%lx not located in any PT_LOAD segment.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar3,param_2);" (call_expression "warn(uVar3,param_2)" identifier (argument_list "(uVar3,param_2)" ( identifier , identifier ))) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "long offset_from_vma(Filedata *filedata,bfd_vma vma,bfd_size_type size)\n\n{\n  ulong uVar1;\n  bfd_boolean bVar2;\n  char *pcVar3;\n  Elf_Internal_Phdr *pEVar4;\n  Elf_Internal_Phdr *pEVar5;\n  \n  pEVar4 = filedata->program_headers;\n  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    bVar2 = get_program_headers(filedata);\n    if (bVar2 == 0) {\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }\n    pEVar4 = filedata->program_headers;\n  }\n  pEVar5 = pEVar4 + (filedata->file_header).e_phnum;\n  if (pEVar4 < pEVar5) {\n    do {\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    } while (pEVar4 < pEVar5);\n  }\n  pcVar3 = (char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(pcVar3,vma);\n  return vma;\n}\n\n" (function_definition "long offset_from_vma(Filedata *filedata,bfd_vma vma,bfd_size_type size)\n\n{\n  ulong uVar1;\n  bfd_boolean bVar2;\n  char *pcVar3;\n  Elf_Internal_Phdr *pEVar4;\n  Elf_Internal_Phdr *pEVar5;\n  \n  pEVar4 = filedata->program_headers;\n  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    bVar2 = get_program_headers(filedata);\n    if (bVar2 == 0) {\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }\n    pEVar4 = filedata->program_headers;\n  }\n  pEVar5 = pEVar4 + (filedata->file_header).e_phnum;\n  if (pEVar4 < pEVar5) {\n    do {\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    } while (pEVar4 < pEVar5);\n  }\n  pcVar3 = (char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(pcVar3,vma);\n  return vma;\n}" (sized_type_specifier "long" long) (function_declarator "offset_from_vma(Filedata *filedata,bfd_vma vma,bfd_size_type size)" identifier (parameter_list "(Filedata *filedata,bfd_vma vma,bfd_size_type size)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "bfd_vma vma" type_identifier identifier) , (parameter_declaration "bfd_size_type size" type_identifier identifier) ))) (compound_statement "{\n  ulong uVar1;\n  bfd_boolean bVar2;\n  char *pcVar3;\n  Elf_Internal_Phdr *pEVar4;\n  Elf_Internal_Phdr *pEVar5;\n  \n  pEVar4 = filedata->program_headers;\n  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    bVar2 = get_program_headers(filedata);\n    if (bVar2 == 0) {\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }\n    pEVar4 = filedata->program_headers;\n  }\n  pEVar5 = pEVar4 + (filedata->file_header).e_phnum;\n  if (pEVar4 < pEVar5) {\n    do {\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    } while (pEVar4 < pEVar5);\n  }\n  pcVar3 = (char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(pcVar3,vma);\n  return vma;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "Elf_Internal_Phdr *pEVar4;" type_identifier (pointer_declarator "*pEVar4" * identifier) ;) (declaration "Elf_Internal_Phdr *pEVar5;" type_identifier (pointer_declarator "*pEVar5" * identifier) ;) (expression_statement "pEVar4 = filedata->program_headers;" (assignment_expression "pEVar4 = filedata->program_headers" identifier = (field_expression "filedata->program_headers" identifier -> field_identifier)) ;) (if_statement "if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    bVar2 = get_program_headers(filedata);\n    if (bVar2 == 0) {\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }\n    pEVar4 = filedata->program_headers;\n  }" if (parenthesized_expression "(pEVar4 == (Elf_Internal_Phdr *)0x0)" ( (binary_expression "pEVar4 == (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    bVar2 = get_program_headers(filedata);\n    if (bVar2 == 0) {\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }\n    pEVar4 = filedata->program_headers;\n  }" { (expression_statement "bVar2 = get_program_headers(filedata);" (assignment_expression "bVar2 = get_program_headers(filedata)" identifier = (call_expression "get_program_headers(filedata)" identifier (argument_list "(filedata)" ( identifier )))) ;) (if_statement "if (bVar2 == 0) {\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );\n      warn(pcVar3);\n      return vma;\n    }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                );" (assignment_expression "pcVar3 = (char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                )" identifier = (cast_expression "(char *)dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                )" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                )" identifier (argument_list "(0,"Cannot interpret virtual addresses without program headers.\n",5\n                                )" ( number_literal , (string_literal ""Cannot interpret virtual addresses without program headers.\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "warn(pcVar3);" (call_expression "warn(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (return_statement "return vma;" return identifier ;) })) (expression_statement "pEVar4 = filedata->program_headers;" (assignment_expression "pEVar4 = filedata->program_headers" identifier = (field_expression "filedata->program_headers" identifier -> field_identifier)) ;) })) (expression_statement "pEVar5 = pEVar4 + (filedata->file_header).e_phnum;" (assignment_expression "pEVar5 = pEVar4 + (filedata->file_header).e_phnum" identifier = (binary_expression "pEVar4 + (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))) ;) (if_statement "if (pEVar4 < pEVar5) {\n    do {\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    } while (pEVar4 < pEVar5);\n  }" if (parenthesized_expression "(pEVar4 < pEVar5)" ( (binary_expression "pEVar4 < pEVar5" identifier < identifier) )) (compound_statement "{\n    do {\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    } while (pEVar4 < pEVar5);\n  }" { (do_statement "do {\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    } while (pEVar4 < pEVar5);" do (compound_statement "{\n      if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }\n      pEVar4 = pEVar4 + 1;\n    }" { (if_statement "if (((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)) {\n        return (pEVar4->p_offset - uVar1) + vma;\n      }" if (parenthesized_expression "(((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1))" ( (binary_expression "((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)) &&\n         (vma + size <= pEVar4->p_filesz + uVar1)" (parenthesized_expression "((pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma))" ( (binary_expression "(pEVar4->p_type == 1) && (uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)" (parenthesized_expression "(pEVar4->p_type == 1)" ( (binary_expression "pEVar4->p_type == 1" (field_expression "pEVar4->p_type" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "(uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma)" ( (comma_expression "uVar1 = pEVar4->p_vaddr, (-pEVar4->p_align & uVar1) <= vma" (assignment_expression "uVar1 = pEVar4->p_vaddr" identifier = (field_expression "pEVar4->p_vaddr" identifier -> field_identifier)) , (binary_expression "(-pEVar4->p_align & uVar1) <= vma" (parenthesized_expression "(-pEVar4->p_align & uVar1)" ( (binary_expression "-pEVar4->p_align & uVar1" (unary_expression "-pEVar4->p_align" - (field_expression "pEVar4->p_align" identifier -> field_identifier)) & identifier) )) <= identifier)) ))) )) && (parenthesized_expression "(vma + size <= pEVar4->p_filesz + uVar1)" ( (binary_expression "vma + size <= pEVar4->p_filesz + uVar1" (binary_expression "vma + size" identifier + identifier) <= (binary_expression "pEVar4->p_filesz + uVar1" (field_expression "pEVar4->p_filesz" identifier -> field_identifier) + identifier)) ))) )) (compound_statement "{\n        return (pEVar4->p_offset - uVar1) + vma;\n      }" { (return_statement "return (pEVar4->p_offset - uVar1) + vma;" return (binary_expression "(pEVar4->p_offset - uVar1) + vma" (parenthesized_expression "(pEVar4->p_offset - uVar1)" ( (binary_expression "pEVar4->p_offset - uVar1" (field_expression "pEVar4->p_offset" identifier -> field_identifier) - identifier) )) + identifier) ;) })) (expression_statement "pEVar4 = pEVar4 + 1;" (assignment_expression "pEVar4 = pEVar4 + 1" identifier = (binary_expression "pEVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pEVar4 < pEVar5)" ( (binary_expression "pEVar4 < pEVar5" identifier < identifier) )) ;) })) (expression_statement "pcVar3 = (char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" identifier (argument_list "(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" ( number_literal , (string_literal ""Virtual address 0x%lx not located in any PT_LOAD segment.\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "warn(pcVar3,vma);" (call_expression "warn(pcVar3,vma)" identifier (argument_list "(pcVar3,vma)" ( identifier , identifier ))) ;) (return_statement "return vma;" return identifier ;) })))
(translation_unit "ulong FUN_00119da0(long param_1,ulong param_2,long param_3)\n\n{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}\n\n" (function_definition "ulong FUN_00119da0(long param_1,ulong param_2,long param_3)\n\n{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}" type_identifier (function_declarator "FUN_00119da0(long param_1,ulong param_2,long param_3)" identifier (parameter_list "(long param_1,ulong param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (expression_statement "plVar4 = *(long **)(param_1 + 0x78);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x78)" identifier = (pointer_expression "*(long **)(param_1 + 0x78)" * (cast_expression "(long **)(param_1 + 0x78)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }" { (expression_statement "iVar2 = FUN_001199d0();" (assignment_expression "iVar2 = FUN_001199d0()" identifier = (call_expression "FUN_001199d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }" { (expression_statement "uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5)" identifier = (call_expression "dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5)" identifier (argument_list "(0,"Cannot interpret virtual addresses without program headers.\n",5)" ( number_literal , (string_literal ""Cannot interpret virtual addresses without program headers.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar3);" (call_expression "warn(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return param_2;" return identifier ;) })) (expression_statement "plVar4 = *(long **)(param_1 + 0x78);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x78)" identifier = (pointer_expression "*(long **)(param_1 + 0x78)" * (cast_expression "(long **)(param_1 + 0x78)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) })) (expression_statement "plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;" (assignment_expression "plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8" identifier = (binary_expression "plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8" identifier + (binary_expression "(ulong)*(uint *)(param_1 + 0x5c) * 8" (binary_expression "(ulong)*(uint *)(param_1 + 0x5c)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(param_1 + 0x5c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) )))) * number_literal))) ;) (if_statement "if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }" if (parenthesized_expression "(plVar4 < plVar5)" ( (binary_expression "plVar4 < plVar5" identifier < identifier) )) (compound_statement "{\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }" { (do_statement "do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);" do (compound_statement "{\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    }" { (if_statement "if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }" if (parenthesized_expression "(((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1))" ( (binary_expression "((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)" (parenthesized_expression "((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2))" ( (binary_expression "(*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)" (parenthesized_expression "(*plVar4 == 1)" ( (binary_expression "*plVar4 == 1" (pointer_expression "*plVar4" * identifier) == number_literal) )) && (parenthesized_expression "(uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)" ( (comma_expression "uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2" (assignment_expression "uVar1 = plVar4[3]" identifier = (subscript_expression "plVar4[3]" identifier [ number_literal ])) , (binary_expression "(-plVar4[7] & uVar1) <= param_2" (parenthesized_expression "(-plVar4[7] & uVar1)" ( (binary_expression "-plVar4[7] & uVar1" (unary_expression "-plVar4[7]" - (subscript_expression "plVar4[7]" identifier [ number_literal ])) & identifier) )) <= identifier)) ))) )) && (parenthesized_expression "(param_2 + param_3 <= plVar4[5] + uVar1)" ( (binary_expression "param_2 + param_3 <= plVar4[5] + uVar1" (binary_expression "param_2 + param_3" identifier + identifier) <= (binary_expression "plVar4[5] + uVar1" (subscript_expression "plVar4[5]" identifier [ number_literal ]) + identifier)) ))) )) (compound_statement "{\n        return (plVar4[2] - uVar1) + param_2;\n      }" { (return_statement "return (plVar4[2] - uVar1) + param_2;" return (binary_expression "(plVar4[2] - uVar1) + param_2" (parenthesized_expression "(plVar4[2] - uVar1)" ( (binary_expression "plVar4[2] - uVar1" (subscript_expression "plVar4[2]" identifier [ number_literal ]) - identifier) )) + identifier) ;) })) (expression_statement "plVar4 = plVar4 + 8;" (assignment_expression "plVar4 = plVar4 + 8" identifier = (binary_expression "plVar4 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(plVar4 < plVar5)" ( (binary_expression "plVar4 < plVar5" identifier < identifier) )) ;) })) (expression_statement "uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" identifier = (call_expression "dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" identifier (argument_list "(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" ( number_literal , (string_literal ""Virtual address 0x%lx not located in any PT_LOAD segment.\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "warn(uVar3,param_2);" (call_expression "warn(uVar3,param_2)" identifier (argument_list "(uVar3,param_2)" ( identifier , identifier ))) ;) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (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 { (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 ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (subscript_expression IDENT [ LIT ])) & IDENT) )) <= IDENT)) ))) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) <= (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT)) ))) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) )) + IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (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 , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00119da0(long param_1,ulong param_2,long param_3)\n\n{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}" (type_identifier "ulong") (function_declarator "FUN_00119da0(long param_1,ulong param_2,long param_3)" (identifier "FUN_00119da0") (parameter_list "(long param_1,ulong param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  ulong uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar4 = *(long **)(param_1 + 0x78);\n  if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }\n  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;\n  if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }\n  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);\n  warn(uVar3,param_2);\n  return param_2;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "long *plVar5;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar5" (* "*") (identifier "plVar5")) (; ";")) (expression_statement "plVar4 = *(long **)(param_1 + 0x78);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x78)" (identifier "plVar4") (= "=") (pointer_expression "*(long **)(param_1 + 0x78)" (* "*") (cast_expression "(long **)(param_1 + 0x78)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (if_statement "if (plVar4 == (long *)0x0) {\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }" (if "if") (parenthesized_expression "(plVar4 == (long *)0x0)" (( "(") (binary_expression "plVar4 == (long *)0x0" (identifier "plVar4") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar2 = FUN_001199d0();\n    if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }\n    plVar4 = *(long **)(param_1 + 0x78);\n  }" ({ "{") (expression_statement "iVar2 = FUN_001199d0();" (assignment_expression "iVar2 = FUN_001199d0()" (identifier "iVar2") (= "=") (call_expression "FUN_001199d0()" (identifier "FUN_001199d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);\n      warn(uVar3);\n      return param_2;\n    }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5)" (identifier "dcgettext") (argument_list "(0,"Cannot interpret virtual addresses without program headers.\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Cannot interpret virtual addresses without program headers.\n"" (" """) (string_content "Cannot interpret virtual addresses without program headers.") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "warn(uVar3);" (call_expression "warn(uVar3)" (identifier "warn") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (expression_statement "plVar4 = *(long **)(param_1 + 0x78);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x78)" (identifier "plVar4") (= "=") (pointer_expression "*(long **)(param_1 + 0x78)" (* "*") (cast_expression "(long **)(param_1 + 0x78)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (} "}"))) (expression_statement "plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;" (assignment_expression "plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8" (identifier "plVar5") (= "=") (binary_expression "plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8" (identifier "plVar4") (+ "+") (binary_expression "(ulong)*(uint *)(param_1 + 0x5c) * 8" (binary_expression "(ulong)*(uint *)(param_1 + 0x5c)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)(param_1 + 0x5c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")")))) (* "*") (number_literal "8")))) (; ";")) (if_statement "if (plVar4 < plVar5) {\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }" (if "if") (parenthesized_expression "(plVar4 < plVar5)" (( "(") (binary_expression "plVar4 < plVar5" (identifier "plVar4") (< "<") (identifier "plVar5")) () ")")) (compound_statement "{\n    do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);\n  }" ({ "{") (do_statement "do {\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    } while (plVar4 < plVar5);" (do "do") (compound_statement "{\n      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }\n      plVar4 = plVar4 + 8;\n    }" ({ "{") (if_statement "if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)) {\n        return (plVar4[2] - uVar1) + param_2;\n      }" (if "if") (parenthesized_expression "(((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1))" (( "(") (binary_expression "((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&\n         (param_2 + param_3 <= plVar4[5] + uVar1)" (parenthesized_expression "((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2))" (( "(") (binary_expression "(*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)" (parenthesized_expression "(*plVar4 == 1)" (( "(") (binary_expression "*plVar4 == 1" (pointer_expression "*plVar4" (* "*") (identifier "plVar4")) (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)" (( "(") (comma_expression "uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2" (assignment_expression "uVar1 = plVar4[3]" (identifier "uVar1") (= "=") (subscript_expression "plVar4[3]" (identifier "plVar4") ([ "[") (number_literal "3") (] "]"))) (, ",") (binary_expression "(-plVar4[7] & uVar1) <= param_2" (parenthesized_expression "(-plVar4[7] & uVar1)" (( "(") (binary_expression "-plVar4[7] & uVar1" (unary_expression "-plVar4[7]" (- "-") (subscript_expression "plVar4[7]" (identifier "plVar4") ([ "[") (number_literal "7") (] "]"))) (& "&") (identifier "uVar1")) () ")")) (<= "<=") (identifier "param_2"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 + param_3 <= plVar4[5] + uVar1)" (( "(") (binary_expression "param_2 + param_3 <= plVar4[5] + uVar1" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (<= "<=") (binary_expression "plVar4[5] + uVar1" (subscript_expression "plVar4[5]" (identifier "plVar4") ([ "[") (number_literal "5") (] "]")) (+ "+") (identifier "uVar1"))) () ")"))) () ")")) (compound_statement "{\n        return (plVar4[2] - uVar1) + param_2;\n      }" ({ "{") (return_statement "return (plVar4[2] - uVar1) + param_2;" (return "return") (binary_expression "(plVar4[2] - uVar1) + param_2" (parenthesized_expression "(plVar4[2] - uVar1)" (( "(") (binary_expression "plVar4[2] - uVar1" (subscript_expression "plVar4[2]" (identifier "plVar4") ([ "[") (number_literal "2") (] "]")) (- "-") (identifier "uVar1")) () ")")) (+ "+") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "plVar4 = plVar4 + 8;" (assignment_expression "plVar4 = plVar4 + 8" (identifier "plVar4") (= "=") (binary_expression "plVar4 + 8" (identifier "plVar4") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(plVar4 < plVar5)" (( "(") (binary_expression "plVar4 < plVar5" (identifier "plVar4") (< "<") (identifier "plVar5")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);" (assignment_expression "uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" (identifier "dcgettext") (argument_list "(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Virtual address 0x%lx not located in any PT_LOAD segment.\n"" (" """) (string_content "Virtual address 0x%lx not located in any PT_LOAD segment.") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "warn(uVar3,param_2);" (call_expression "warn(uVar3,param_2)" (identifier "warn") (argument_list "(uVar3,param_2)" (( "(") (identifier "uVar3") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

long function_1(type_1 *filedata,type_2 var_8,type_3 var_9)

{
  type_4 var_7;
  type_5 var_3;
  char *pcVar3;
  type_6 *var_1;
  type_6 *var_6;
  
  var_1 = filedata->program_headers;
  if (var_1 == (type_6 *)0x0) {
    var_3 = var_2(filedata);
    if (var_3 == 0) {
      pcVar3 = (char *)var_4(0,"Cannot interpret virtual addresses without program headers.\n",5
                                );
      var_5(pcVar3);
      return var_8;
    }
    var_1 = filedata->program_headers;
  }
  var_6 = var_1 + (filedata->file_header).e_phnum;
  if (var_1 < var_6) {
    do {
      if (((var_1->p_type == 1) && (var_7 = var_1->p_vaddr, (-var_1->p_align & var_7) <= var_8)) &&
         (var_8 + var_9 <= var_1->p_filesz + var_7)) {
        return (var_1->p_offset - var_7) + var_8;
      }
      var_1 = var_1 + 1;
    } while (var_1 < var_6);
  }
  pcVar3 = (char *)var_4(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);
  var_5(pcVar3,var_8);
  return var_8;
}


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

ulong MASKED(long param_1,ulong param_2,long param_3)

{
  ulong uVar1;
  int iVar2;
  undefined8 uVar3;
  long *plVar4;
  long *plVar5;
  
  plVar4 = *(long **)(param_1 + 0x78);
  if (plVar4 == (long *)0x0) {
    iVar2 = FUN_001199d0();
    if (iVar2 == 0) {
      uVar3 = dcgettext(0,"Cannot interpret virtual addresses without program headers.\n",5);
      warn(uVar3);
      return param_2;
    }
    plVar4 = *(long **)(param_1 + 0x78);
  }
  plVar5 = plVar4 + (ulong)*(uint *)(param_1 + 0x5c) * 8;
  if (plVar4 < plVar5) {
    do {
      if (((*plVar4 == 1) && (uVar1 = plVar4[3], (-plVar4[7] & uVar1) <= param_2)) &&
         (param_2 + param_3 <= plVar4[5] + uVar1)) {
        return (plVar4[2] - uVar1) + param_2;
      }
      plVar4 = plVar4 + 8;
    } while (plVar4 < plVar5);
  }
  uVar3 = dcgettext(0,"Virtual address 0x%lx not located in any PT_LOAD segment.\n",5);
  warn(uVar3,param_2);
  return param_2;
}

