
fragS * get_frag_for_reloc(fragS *last_frag,segment_info_type *seginfo,reloc_list *r)

{
  ulong uVar1;
  frag *pfVar2;
  char *format;
  frag *pfVar3;
  fragS *f;
  
  if (last_frag != (fragS *)0x0) {
    uVar1 = (r->u).a.addend;
    do {
      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {
        return last_frag;
      }
      last_frag = last_frag->fr_next;
    } while (last_frag != (frag *)0x0);
  }
  pfVar3 = seginfo->frchainP->frch_root;
  if (pfVar3 != (fragS *)0x0) {
    uVar1 = (r->u).a.addend;
    pfVar2 = pfVar3;
    do {
      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {
        return pfVar2;
      }
      pfVar2 = pfVar2->fr_next;
    } while (pfVar2 != (frag *)0x0);
    do {
      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {
        return pfVar3;
      }
      pfVar3 = pfVar3->fr_next;
    } while (pfVar3 != (frag *)0x0);
  }
  format = (char *)dcgettext(0,"reloc not within (fixed part of) section",5);
  as_bad_where(r->file,r->line,format);
  return (fragS *)0x0;
}



ulong * FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)

{
  ulong uVar1;
  ulong *puVar2;
  undefined8 uVar3;
  ulong *puVar4;
  
  if (param_1 != (ulong *)0x0) {
    do {
      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&
         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {
        return param_1;
      }
      param_1 = (ulong *)param_1[7];
    } while (param_1 != (ulong *)0x0);
  }
  puVar4 = *(ulong **)*param_2;
  if (puVar4 != (ulong *)0x0) {
    uVar1 = *(ulong *)(param_3 + 0x20);
    puVar2 = puVar4;
    do {
      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {
        return puVar2;
      }
      puVar2 = (ulong *)puVar2[7];
    } while (puVar2 != (ulong *)0x0);
    do {
      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {
        return puVar4;
      }
      puVar4 = (ulong *)puVar4[7];
    } while (puVar4 != (ulong *)0x0);
  }
  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);
  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);
  return (ulong *)0x0;
}


PUSH RBX
MOV RBX,RDX
TEST RDI,RDI
JZ 0x001307ee
MOV RDX,qword ptr [RDX + 0x20]
NOP dword ptr [RAX]
MOV RAX,qword ptr [RDI]
CMP RAX,RDX
JA 0x001307e5
ADD RAX,qword ptr [RDI + 0x10]
CMP RDX,RAX
JC 0x00130868
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JNZ 0x001307d0
MOV RAX,qword ptr [RSI]
MOV RCX,qword ptr [RAX]
TEST RCX,RCX
JZ 0x0013083a
MOV RSI,qword ptr [RBX + 0x20]
MOV RAX,RCX
MOV RDX,qword ptr [RAX]
CMP RDX,RSI
JA 0x00130811
ADD RDX,qword ptr [RAX + 0x10]
CMP RSI,RDX
JC 0x00130860
MOV RAX,qword ptr [RAX + 0x38]
TEST RAX,RAX
JNZ 0x00130800
NOP word ptr [RAX + RAX*0x1]
MOV RAX,qword ptr [RCX]
CMP RSI,RAX
JC 0x00130831
ADD RAX,qword ptr [RCX + 0x10]
CMP RSI,RAX
JBE 0x00130870
MOV RCX,qword ptr [RCX + 0x38]
TEST RCX,RCX
JNZ 0x00130820
MOV EDX,0x5
LEA RSI,[0x143a90]
XOR EDI,EDI
CALL 0x0010a1d0
MOV ESI,dword ptr [RBX + 0x40]
MOV RDI,qword ptr [RBX + 0x38]
MOV RDX,RAX
XOR EAX,EAX
CALL 0x0011f7a0
XOR EAX,EAX
POP RBX
RET
MOV RAX,RDI
POP RBX
RET
MOV RAX,RCX
POP RBX
RET
(translation_unit "ulong * FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)\n\n{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}\n\n" (function_definition "ulong * FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)\n\n{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}" type_identifier (pointer_declarator "* FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)" * (function_declarator "FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)" identifier (parameter_list "(ulong *param_1,undefined8 *param_2,long param_3)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "ulong *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }" if (parenthesized_expression "(param_1 != (ulong *)0x0)" ( (binary_expression "param_1 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }" { (do_statement "do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);" do (compound_statement "{\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    }" { (if_statement "if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }" if (parenthesized_expression "((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2]))" ( (binary_expression "(*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])" (parenthesized_expression "(*param_1 <= *(ulong *)(param_3 + 0x20))" ( (binary_expression "*param_1 <= *(ulong *)(param_3 + 0x20)" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*(ulong *)(param_3 + 0x20)" * (cast_expression "(ulong *)(param_3 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])" ( (binary_expression "*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2]" (pointer_expression "*(ulong *)(param_3 + 0x20)" * (cast_expression "(ulong *)(param_3 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) < (binary_expression "*param_1 + param_1[2]" (pointer_expression "*param_1" * identifier) + (subscript_expression "param_1[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1 = (ulong *)param_1[7];" (assignment_expression "param_1 = (ulong *)param_1[7]" identifier = (cast_expression "(ulong *)param_1[7]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_1 != (ulong *)0x0)" ( (binary_expression "param_1 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "puVar4 = *(ulong **)*param_2;" (assignment_expression "puVar4 = *(ulong **)*param_2" identifier = (pointer_expression "*(ulong **)*param_2" * (cast_expression "(ulong **)*param_2" ( (type_descriptor "ulong **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_2" * identifier)))) ;) (if_statement "if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }" if (parenthesized_expression "(puVar4 != (ulong *)0x0)" ( (binary_expression "puVar4 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }" { (expression_statement "uVar1 = *(ulong *)(param_3 + 0x20);" (assignment_expression "uVar1 = *(ulong *)(param_3 + 0x20)" identifier = (pointer_expression "*(ulong *)(param_3 + 0x20)" * (cast_expression "(ulong *)(param_3 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (do_statement "do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);" do (compound_statement "{\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    }" { (if_statement "if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }" if (parenthesized_expression "((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2]))" ( (binary_expression "(*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])" (parenthesized_expression "(*puVar2 <= uVar1)" ( (binary_expression "*puVar2 <= uVar1" (pointer_expression "*puVar2" * identifier) <= identifier) )) && (parenthesized_expression "(uVar1 < *puVar2 + puVar2[2])" ( (binary_expression "uVar1 < *puVar2 + puVar2[2]" identifier < (binary_expression "*puVar2 + puVar2[2]" (pointer_expression "*puVar2" * identifier) + (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (ulong *)puVar2[7];" (assignment_expression "puVar2 = (ulong *)puVar2[7]" identifier = (cast_expression "(ulong *)puVar2[7]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(puVar2 != (ulong *)0x0)" ( (binary_expression "puVar2 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);" do (compound_statement "{\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    }" { (if_statement "if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }" if (parenthesized_expression "((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2]))" ( (binary_expression "(*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])" (parenthesized_expression "(*puVar4 <= uVar1)" ( (binary_expression "*puVar4 <= uVar1" (pointer_expression "*puVar4" * identifier) <= identifier) )) && (parenthesized_expression "(uVar1 <= *puVar4 + puVar4[2])" ( (binary_expression "uVar1 <= *puVar4 + puVar4[2]" identifier <= (binary_expression "*puVar4 + puVar4[2]" (pointer_expression "*puVar4" * identifier) + (subscript_expression "puVar4[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return puVar4;\n      }" { (return_statement "return puVar4;" return identifier ;) })) (expression_statement "puVar4 = (ulong *)puVar4[7];" (assignment_expression "puVar4 = (ulong *)puVar4[7]" identifier = (cast_expression "(ulong *)puVar4[7]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(puVar4 != (ulong *)0x0)" ( (binary_expression "puVar4 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);" (assignment_expression "uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5)" identifier = (call_expression "dcgettext(0,"reloc not within (fixed part of) section",5)" identifier (argument_list "(0,"reloc not within (fixed part of) section",5)" ( number_literal , (string_literal ""reloc not within (fixed part of) section"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);" (call_expression "FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3)" identifier (argument_list "(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3)" ( (pointer_expression "*(undefined8 *)(param_3 + 0x38)" * (cast_expression "(undefined8 *)(param_3 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_3 + 0x40)" * (cast_expression "(undefined4 *)(param_3 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x40)" ( (binary_expression "param_3 + 0x40" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return (ulong *)0x0;" return (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "fragS * get_frag_for_reloc(fragS *last_frag,segment_info_type *seginfo,reloc_list *r)\n\n{\n  ulong uVar1;\n  frag *pfVar2;\n  char *format;\n  frag *pfVar3;\n  fragS *f;\n  \n  if (last_frag != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    do {\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    } while (last_frag != (frag *)0x0);\n  }\n  pfVar3 = seginfo->frchainP->frch_root;\n  if (pfVar3 != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    pfVar2 = pfVar3;\n    do {\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    } while (pfVar2 != (frag *)0x0);\n    do {\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    } while (pfVar3 != (frag *)0x0);\n  }\n  format = (char *)dcgettext(0,"reloc not within (fixed part of) section",5);\n  as_bad_where(r->file,r->line,format);\n  return (fragS *)0x0;\n}\n\n" (function_definition "fragS * get_frag_for_reloc(fragS *last_frag,segment_info_type *seginfo,reloc_list *r)\n\n{\n  ulong uVar1;\n  frag *pfVar2;\n  char *format;\n  frag *pfVar3;\n  fragS *f;\n  \n  if (last_frag != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    do {\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    } while (last_frag != (frag *)0x0);\n  }\n  pfVar3 = seginfo->frchainP->frch_root;\n  if (pfVar3 != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    pfVar2 = pfVar3;\n    do {\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    } while (pfVar2 != (frag *)0x0);\n    do {\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    } while (pfVar3 != (frag *)0x0);\n  }\n  format = (char *)dcgettext(0,"reloc not within (fixed part of) section",5);\n  as_bad_where(r->file,r->line,format);\n  return (fragS *)0x0;\n}" type_identifier (pointer_declarator "* get_frag_for_reloc(fragS *last_frag,segment_info_type *seginfo,reloc_list *r)" * (function_declarator "get_frag_for_reloc(fragS *last_frag,segment_info_type *seginfo,reloc_list *r)" identifier (parameter_list "(fragS *last_frag,segment_info_type *seginfo,reloc_list *r)" ( (parameter_declaration "fragS *last_frag" type_identifier (pointer_declarator "*last_frag" * identifier)) , (parameter_declaration "segment_info_type *seginfo" type_identifier (pointer_declarator "*seginfo" * identifier)) , (parameter_declaration "reloc_list *r" type_identifier (pointer_declarator "*r" * identifier)) )))) (compound_statement "{\n  ulong uVar1;\n  frag *pfVar2;\n  char *format;\n  frag *pfVar3;\n  fragS *f;\n  \n  if (last_frag != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    do {\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    } while (last_frag != (frag *)0x0);\n  }\n  pfVar3 = seginfo->frchainP->frch_root;\n  if (pfVar3 != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    pfVar2 = pfVar3;\n    do {\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    } while (pfVar2 != (frag *)0x0);\n    do {\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    } while (pfVar3 != (frag *)0x0);\n  }\n  format = (char *)dcgettext(0,"reloc not within (fixed part of) section",5);\n  as_bad_where(r->file,r->line,format);\n  return (fragS *)0x0;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "frag *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "frag *pfVar3;" type_identifier (pointer_declarator "*pfVar3" * identifier) ;) (declaration "fragS *f;" type_identifier (pointer_declarator "*f" * identifier) ;) (if_statement "if (last_frag != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    do {\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    } while (last_frag != (frag *)0x0);\n  }" if (parenthesized_expression "(last_frag != (fragS *)0x0)" ( (binary_expression "last_frag != (fragS *)0x0" identifier != (cast_expression "(fragS *)0x0" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = (r->u).a.addend;\n    do {\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    } while (last_frag != (frag *)0x0);\n  }" { (expression_statement "uVar1 = (r->u).a.addend;" (assignment_expression "uVar1 = (r->u).a.addend" identifier = (field_expression "(r->u).a.addend" (field_expression "(r->u).a" (parenthesized_expression "(r->u)" ( (field_expression "r->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (do_statement "do {\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    } while (last_frag != (frag *)0x0);" do (compound_statement "{\n      if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }\n      last_frag = last_frag->fr_next;\n    }" { (if_statement "if ((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)) {\n        return last_frag;\n      }" if (parenthesized_expression "((last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix))" ( (binary_expression "(last_frag->fr_address <= uVar1) && (uVar1 < last_frag->fr_address + last_frag->fr_fix)" (parenthesized_expression "(last_frag->fr_address <= uVar1)" ( (binary_expression "last_frag->fr_address <= uVar1" (field_expression "last_frag->fr_address" identifier -> field_identifier) <= identifier) )) && (parenthesized_expression "(uVar1 < last_frag->fr_address + last_frag->fr_fix)" ( (binary_expression "uVar1 < last_frag->fr_address + last_frag->fr_fix" identifier < (binary_expression "last_frag->fr_address + last_frag->fr_fix" (field_expression "last_frag->fr_address" identifier -> field_identifier) + (field_expression "last_frag->fr_fix" identifier -> field_identifier))) ))) )) (compound_statement "{\n        return last_frag;\n      }" { (return_statement "return last_frag;" return identifier ;) })) (expression_statement "last_frag = last_frag->fr_next;" (assignment_expression "last_frag = last_frag->fr_next" identifier = (field_expression "last_frag->fr_next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(last_frag != (frag *)0x0)" ( (binary_expression "last_frag != (frag *)0x0" identifier != (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "pfVar3 = seginfo->frchainP->frch_root;" (assignment_expression "pfVar3 = seginfo->frchainP->frch_root" identifier = (field_expression "seginfo->frchainP->frch_root" (field_expression "seginfo->frchainP" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (pfVar3 != (fragS *)0x0) {\n    uVar1 = (r->u).a.addend;\n    pfVar2 = pfVar3;\n    do {\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    } while (pfVar2 != (frag *)0x0);\n    do {\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    } while (pfVar3 != (frag *)0x0);\n  }" if (parenthesized_expression "(pfVar3 != (fragS *)0x0)" ( (binary_expression "pfVar3 != (fragS *)0x0" identifier != (cast_expression "(fragS *)0x0" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = (r->u).a.addend;\n    pfVar2 = pfVar3;\n    do {\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    } while (pfVar2 != (frag *)0x0);\n    do {\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    } while (pfVar3 != (frag *)0x0);\n  }" { (expression_statement "uVar1 = (r->u).a.addend;" (assignment_expression "uVar1 = (r->u).a.addend" identifier = (field_expression "(r->u).a.addend" (field_expression "(r->u).a" (parenthesized_expression "(r->u)" ( (field_expression "r->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pfVar2 = pfVar3;" (assignment_expression "pfVar2 = pfVar3" identifier = identifier) ;) (do_statement "do {\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    } while (pfVar2 != (frag *)0x0);" do (compound_statement "{\n      if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }\n      pfVar2 = pfVar2->fr_next;\n    }" { (if_statement "if ((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)) {\n        return pfVar2;\n      }" if (parenthesized_expression "((pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix))" ( (binary_expression "(pfVar2->fr_address <= uVar1) && (uVar1 < pfVar2->fr_address + pfVar2->fr_fix)" (parenthesized_expression "(pfVar2->fr_address <= uVar1)" ( (binary_expression "pfVar2->fr_address <= uVar1" (field_expression "pfVar2->fr_address" identifier -> field_identifier) <= identifier) )) && (parenthesized_expression "(uVar1 < pfVar2->fr_address + pfVar2->fr_fix)" ( (binary_expression "uVar1 < pfVar2->fr_address + pfVar2->fr_fix" identifier < (binary_expression "pfVar2->fr_address + pfVar2->fr_fix" (field_expression "pfVar2->fr_address" identifier -> field_identifier) + (field_expression "pfVar2->fr_fix" identifier -> field_identifier))) ))) )) (compound_statement "{\n        return pfVar2;\n      }" { (return_statement "return pfVar2;" return identifier ;) })) (expression_statement "pfVar2 = pfVar2->fr_next;" (assignment_expression "pfVar2 = pfVar2->fr_next" identifier = (field_expression "pfVar2->fr_next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pfVar2 != (frag *)0x0)" ( (binary_expression "pfVar2 != (frag *)0x0" identifier != (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    } while (pfVar3 != (frag *)0x0);" do (compound_statement "{\n      if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }\n      pfVar3 = pfVar3->fr_next;\n    }" { (if_statement "if ((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)) {\n        return pfVar3;\n      }" if (parenthesized_expression "((pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix))" ( (binary_expression "(pfVar3->fr_address <= uVar1) && (uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)" (parenthesized_expression "(pfVar3->fr_address <= uVar1)" ( (binary_expression "pfVar3->fr_address <= uVar1" (field_expression "pfVar3->fr_address" identifier -> field_identifier) <= identifier) )) && (parenthesized_expression "(uVar1 <= pfVar3->fr_address + pfVar3->fr_fix)" ( (binary_expression "uVar1 <= pfVar3->fr_address + pfVar3->fr_fix" identifier <= (binary_expression "pfVar3->fr_address + pfVar3->fr_fix" (field_expression "pfVar3->fr_address" identifier -> field_identifier) + (field_expression "pfVar3->fr_fix" identifier -> field_identifier))) ))) )) (compound_statement "{\n        return pfVar3;\n      }" { (return_statement "return pfVar3;" return identifier ;) })) (expression_statement "pfVar3 = pfVar3->fr_next;" (assignment_expression "pfVar3 = pfVar3->fr_next" identifier = (field_expression "pfVar3->fr_next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pfVar3 != (frag *)0x0)" ( (binary_expression "pfVar3 != (frag *)0x0" identifier != (cast_expression "(frag *)0x0" ( (type_descriptor "frag *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "format = (char *)dcgettext(0,"reloc not within (fixed part of) section",5);" (assignment_expression "format = (char *)dcgettext(0,"reloc not within (fixed part of) section",5)" identifier = (cast_expression "(char *)dcgettext(0,"reloc not within (fixed part of) section",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"reloc not within (fixed part of) section",5)" identifier (argument_list "(0,"reloc not within (fixed part of) section",5)" ( number_literal , (string_literal ""reloc not within (fixed part of) section"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad_where(r->file,r->line,format);" (call_expression "as_bad_where(r->file,r->line,format)" identifier (argument_list "(r->file,r->line,format)" ( (field_expression "r->file" identifier -> field_identifier) , (field_expression "r->line" identifier -> field_identifier) , identifier ))) ;) (return_statement "return (fragS *)0x0;" return (cast_expression "(fragS *)0x0" ( (type_descriptor "fragS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "ulong * FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)\n\n{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}\n\n" (function_definition "ulong * FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)\n\n{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}" type_identifier (pointer_declarator "* FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)" * (function_declarator "FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)" identifier (parameter_list "(ulong *param_1,undefined8 *param_2,long param_3)" ( (parameter_declaration "ulong *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ulong *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "ulong *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }" if (parenthesized_expression "(param_1 != (ulong *)0x0)" ( (binary_expression "param_1 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }" { (do_statement "do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);" do (compound_statement "{\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    }" { (if_statement "if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }" if (parenthesized_expression "((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2]))" ( (binary_expression "(*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])" (parenthesized_expression "(*param_1 <= *(ulong *)(param_3 + 0x20))" ( (binary_expression "*param_1 <= *(ulong *)(param_3 + 0x20)" (pointer_expression "*param_1" * identifier) <= (pointer_expression "*(ulong *)(param_3 + 0x20)" * (cast_expression "(ulong *)(param_3 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])" ( (binary_expression "*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2]" (pointer_expression "*(ulong *)(param_3 + 0x20)" * (cast_expression "(ulong *)(param_3 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) < (binary_expression "*param_1 + param_1[2]" (pointer_expression "*param_1" * identifier) + (subscript_expression "param_1[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_1 = (ulong *)param_1[7];" (assignment_expression "param_1 = (ulong *)param_1[7]" identifier = (cast_expression "(ulong *)param_1[7]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(param_1 != (ulong *)0x0)" ( (binary_expression "param_1 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "puVar4 = *(ulong **)*param_2;" (assignment_expression "puVar4 = *(ulong **)*param_2" identifier = (pointer_expression "*(ulong **)*param_2" * (cast_expression "(ulong **)*param_2" ( (type_descriptor "ulong **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_2" * identifier)))) ;) (if_statement "if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }" if (parenthesized_expression "(puVar4 != (ulong *)0x0)" ( (binary_expression "puVar4 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }" { (expression_statement "uVar1 = *(ulong *)(param_3 + 0x20);" (assignment_expression "uVar1 = *(ulong *)(param_3 + 0x20)" identifier = (pointer_expression "*(ulong *)(param_3 + 0x20)" * (cast_expression "(ulong *)(param_3 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" identifier = identifier) ;) (do_statement "do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);" do (compound_statement "{\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    }" { (if_statement "if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }" if (parenthesized_expression "((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2]))" ( (binary_expression "(*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])" (parenthesized_expression "(*puVar2 <= uVar1)" ( (binary_expression "*puVar2 <= uVar1" (pointer_expression "*puVar2" * identifier) <= identifier) )) && (parenthesized_expression "(uVar1 < *puVar2 + puVar2[2])" ( (binary_expression "uVar1 < *puVar2 + puVar2[2]" identifier < (binary_expression "*puVar2 + puVar2[2]" (pointer_expression "*puVar2" * identifier) + (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return puVar2;\n      }" { (return_statement "return puVar2;" return identifier ;) })) (expression_statement "puVar2 = (ulong *)puVar2[7];" (assignment_expression "puVar2 = (ulong *)puVar2[7]" identifier = (cast_expression "(ulong *)puVar2[7]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(puVar2 != (ulong *)0x0)" ( (binary_expression "puVar2 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (do_statement "do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);" do (compound_statement "{\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    }" { (if_statement "if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }" if (parenthesized_expression "((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2]))" ( (binary_expression "(*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])" (parenthesized_expression "(*puVar4 <= uVar1)" ( (binary_expression "*puVar4 <= uVar1" (pointer_expression "*puVar4" * identifier) <= identifier) )) && (parenthesized_expression "(uVar1 <= *puVar4 + puVar4[2])" ( (binary_expression "uVar1 <= *puVar4 + puVar4[2]" identifier <= (binary_expression "*puVar4 + puVar4[2]" (pointer_expression "*puVar4" * identifier) + (subscript_expression "puVar4[2]" identifier [ number_literal ]))) ))) )) (compound_statement "{\n        return puVar4;\n      }" { (return_statement "return puVar4;" return identifier ;) })) (expression_statement "puVar4 = (ulong *)puVar4[7];" (assignment_expression "puVar4 = (ulong *)puVar4[7]" identifier = (cast_expression "(ulong *)puVar4[7]" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[7]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(puVar4 != (ulong *)0x0)" ( (binary_expression "puVar4 != (ulong *)0x0" identifier != (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);" (assignment_expression "uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5)" identifier = (call_expression "dcgettext(0,"reloc not within (fixed part of) section",5)" identifier (argument_list "(0,"reloc not within (fixed part of) section",5)" ( number_literal , (string_literal ""reloc not within (fixed part of) section"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);" (call_expression "FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3)" identifier (argument_list "(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3)" ( (pointer_expression "*(undefined8 *)(param_3 + 0x38)" * (cast_expression "(undefined8 *)(param_3 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x38)" ( (binary_expression "param_3 + 0x38" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_3 + 0x40)" * (cast_expression "(undefined4 *)(param_3 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x40)" ( (binary_expression "param_3 + 0x40" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return (ulong *)0x0;" return (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) && (parenthesized_expression ( (binary_expression IDENT <= (binary_expression (pointer_expression * IDENT) + (subscript_expression IDENT [ LIT ]))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "ulong * FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)\n\n{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}" (type_identifier "ulong") (pointer_declarator "* FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)" (* "*") (function_declarator "FUN_001307c0(ulong *param_1,undefined8 *param_2,long param_3)" (identifier "FUN_001307c0") (parameter_list "(ulong *param_1,undefined8 *param_2,long param_3)" (( "(") (parameter_declaration "ulong *param_1" (type_identifier "ulong") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")")))) (compound_statement "{\n  ulong uVar1;\n  ulong *puVar2;\n  undefined8 uVar3;\n  ulong *puVar4;\n  \n  if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }\n  puVar4 = *(ulong **)*param_2;\n  if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }\n  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);\n  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);\n  return (ulong *)0x0;\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "ulong *puVar2;" (type_identifier "ulong") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "ulong *puVar4;" (type_identifier "ulong") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (if_statement "if (param_1 != (ulong *)0x0) {\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }" (if "if") (parenthesized_expression "(param_1 != (ulong *)0x0)" (( "(") (binary_expression "param_1 != (ulong *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);\n  }" ({ "{") (do_statement "do {\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    } while (param_1 != (ulong *)0x0);" (do "do") (compound_statement "{\n      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }\n      param_1 = (ulong *)param_1[7];\n    }" ({ "{") (if_statement "if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "((*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2]))" (( "(") (binary_expression "(*param_1 <= *(ulong *)(param_3 + 0x20)) &&\n         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])" (parenthesized_expression "(*param_1 <= *(ulong *)(param_3 + 0x20))" (( "(") (binary_expression "*param_1 <= *(ulong *)(param_3 + 0x20)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<= "<=") (pointer_expression "*(ulong *)(param_3 + 0x20)" (* "*") (cast_expression "(ulong *)(param_3 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])" (( "(") (binary_expression "*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2]" (pointer_expression "*(ulong *)(param_3 + 0x20)" (* "*") (cast_expression "(ulong *)(param_3 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")")))) (< "<") (binary_expression "*param_1 + param_1[2]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "param_1 = (ulong *)param_1[7];" (assignment_expression "param_1 = (ulong *)param_1[7]" (identifier "param_1") (= "=") (cast_expression "(ulong *)param_1[7]" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != (ulong *)0x0)" (( "(") (binary_expression "param_1 != (ulong *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "puVar4 = *(ulong **)*param_2;" (assignment_expression "puVar4 = *(ulong **)*param_2" (identifier "puVar4") (= "=") (pointer_expression "*(ulong **)*param_2" (* "*") (cast_expression "(ulong **)*param_2" (( "(") (type_descriptor "ulong **" (type_identifier "ulong") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))))) (; ";")) (if_statement "if (puVar4 != (ulong *)0x0) {\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }" (if "if") (parenthesized_expression "(puVar4 != (ulong *)0x0)" (( "(") (binary_expression "puVar4 != (ulong *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar1 = *(ulong *)(param_3 + 0x20);\n    puVar2 = puVar4;\n    do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);\n    do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);\n  }" ({ "{") (expression_statement "uVar1 = *(ulong *)(param_3 + 0x20);" (assignment_expression "uVar1 = *(ulong *)(param_3 + 0x20)" (identifier "uVar1") (= "=") (pointer_expression "*(ulong *)(param_3 + 0x20)" (* "*") (cast_expression "(ulong *)(param_3 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "puVar2 = puVar4;" (assignment_expression "puVar2 = puVar4" (identifier "puVar2") (= "=") (identifier "puVar4")) (; ";")) (do_statement "do {\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    } while (puVar2 != (ulong *)0x0);" (do "do") (compound_statement "{\n      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }\n      puVar2 = (ulong *)puVar2[7];\n    }" ({ "{") (if_statement "if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {\n        return puVar2;\n      }" (if "if") (parenthesized_expression "((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2]))" (( "(") (binary_expression "(*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])" (parenthesized_expression "(*puVar2 <= uVar1)" (( "(") (binary_expression "*puVar2 <= uVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (<= "<=") (identifier "uVar1")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 < *puVar2 + puVar2[2])" (( "(") (binary_expression "uVar1 < *puVar2 + puVar2[2]" (identifier "uVar1") (< "<") (binary_expression "*puVar2 + puVar2[2]" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (+ "+") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return puVar2;\n      }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "puVar2 = (ulong *)puVar2[7];" (assignment_expression "puVar2 = (ulong *)puVar2[7]" (identifier "puVar2") (= "=") (cast_expression "(ulong *)puVar2[7]" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != (ulong *)0x0)" (( "(") (binary_expression "puVar2 != (ulong *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (do_statement "do {\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    } while (puVar4 != (ulong *)0x0);" (do "do") (compound_statement "{\n      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }\n      puVar4 = (ulong *)puVar4[7];\n    }" ({ "{") (if_statement "if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {\n        return puVar4;\n      }" (if "if") (parenthesized_expression "((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2]))" (( "(") (binary_expression "(*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])" (parenthesized_expression "(*puVar4 <= uVar1)" (( "(") (binary_expression "*puVar4 <= uVar1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (<= "<=") (identifier "uVar1")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 <= *puVar4 + puVar4[2])" (( "(") (binary_expression "uVar1 <= *puVar4 + puVar4[2]" (identifier "uVar1") (<= "<=") (binary_expression "*puVar4 + puVar4[2]" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (+ "+") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")))) () ")"))) () ")")) (compound_statement "{\n        return puVar4;\n      }" ({ "{") (return_statement "return puVar4;" (return "return") (identifier "puVar4") (; ";")) (} "}"))) (expression_statement "puVar4 = (ulong *)puVar4[7];" (assignment_expression "puVar4 = (ulong *)puVar4[7]" (identifier "puVar4") (= "=") (cast_expression "(ulong *)puVar4[7]" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[7]" (identifier "puVar4") ([ "[") (number_literal "7") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != (ulong *)0x0)" (( "(") (binary_expression "puVar4 != (ulong *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);" (assignment_expression "uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"reloc not within (fixed part of) section",5)" (identifier "dcgettext") (argument_list "(0,"reloc not within (fixed part of) section",5)" (( "(") (number_literal "0") (, ",") (string_literal ""reloc not within (fixed part of) section"" (" """) (string_content "reloc not within (fixed part of) section") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);" (call_expression "FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3)" (identifier "FUN_0011f7a0") (argument_list "(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3)" (( "(") (pointer_expression "*(undefined8 *)(param_3 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_3 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x38)" (( "(") (binary_expression "param_3 + 0x38" (identifier "param_3") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_3 + 0x40)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x40)" (( "(") (binary_expression "param_3 + 0x40" (identifier "param_3") (+ "+") (number_literal "0x40")) () ")")))) (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return (ulong *)0x0;" (return "return") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * function_1(type_1 *var_1,type_2 *seginfo,type_3 *r)

{
  type_4 var_2;
  type_5 *var_4;
  char *format;
  type_5 *var_3;
  type_1 *f;
  
  if (var_1 != (type_1 *)0x0) {
    var_2 = (r->u).a.addend;
    do {
      if ((var_1->fr_address <= var_2) && (var_2 < var_1->fr_address + var_1->fr_fix)) {
        return var_1;
      }
      var_1 = var_1->fr_next;
    } while (var_1 != (type_5 *)0x0);
  }
  var_3 = seginfo->frchainP->frch_root;
  if (var_3 != (type_1 *)0x0) {
    var_2 = (r->u).a.addend;
    var_4 = var_3;
    do {
      if ((var_4->fr_address <= var_2) && (var_2 < var_4->fr_address + var_4->fr_fix)) {
        return var_4;
      }
      var_4 = var_4->fr_next;
    } while (var_4 != (type_5 *)0x0);
    do {
      if ((var_3->fr_address <= var_2) && (var_2 <= var_3->fr_address + var_3->fr_fix)) {
        return var_3;
      }
      var_3 = var_3->fr_next;
    } while (var_3 != (type_5 *)0x0);
  }
  format = (char *)var_5(0,"reloc not within (fixed part of) section",5);
  var_6(r->file,r->line,format);
  return (type_1 *)0x0;
}


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

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

{
  ulong uVar1;
  ulong *puVar2;
  undefined8 uVar3;
  ulong *puVar4;
  
  if (param_1 != (ulong *)0x0) {
    do {
      if ((*param_1 <= *(ulong *)(param_3 + 0x20)) &&
         (*(ulong *)(param_3 + 0x20) < *param_1 + param_1[2])) {
        return param_1;
      }
      param_1 = (ulong *)param_1[7];
    } while (param_1 != (ulong *)0x0);
  }
  puVar4 = *(ulong **)*param_2;
  if (puVar4 != (ulong *)0x0) {
    uVar1 = *(ulong *)(param_3 + 0x20);
    puVar2 = puVar4;
    do {
      if ((*puVar2 <= uVar1) && (uVar1 < *puVar2 + puVar2[2])) {
        return puVar2;
      }
      puVar2 = (ulong *)puVar2[7];
    } while (puVar2 != (ulong *)0x0);
    do {
      if ((*puVar4 <= uVar1) && (uVar1 <= *puVar4 + puVar4[2])) {
        return puVar4;
      }
      puVar4 = (ulong *)puVar4[7];
    } while (puVar4 != (ulong *)0x0);
  }
  uVar3 = dcgettext(0,"reloc not within (fixed part of) section",5);
  FUN_0011f7a0(*(undefined8 *)(param_3 + 0x38),*(undefined4 *)(param_3 + 0x40),uVar3);
  return (ulong *)0x0;
}

