
void output_section_callback_fast
               (lang_wild_statement_type *ptr,wildcard_list *sec,asection *section,
               flag_info *sflag_list,lang_input_statement_type *file,void *output)

{
  lang_section_bst *plVar1;
  bfd_boolean bVar2;
  int iVar3;
  lang_section_bst *plVar4;
  lang_section_bst_type *plVar5;
  lang_section_bst **pplVar6;
  
  bVar2 = unique_section_p(section,(lang_output_section_statement_type *)output);
  if (bVar2 != 0) {
    return;
  }
  pplVar6 = &ptr->tree;
  plVar4 = (lang_section_bst *)xmalloc(0x18);
  iVar3 = ptr->filenames_sorted;
  plVar4->left = (lang_section_bst *)0x0;
  plVar4->right = (lang_section_bst *)0x0;
  plVar4->section = section;
  if ((iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))) {
    plVar1 = ptr->tree;
    if (ptr->tree != (lang_section_bst_type *)0x0) {
      do {
        plVar5 = plVar1;
        plVar1 = plVar5->right;
      } while (plVar1 != (lang_section_bst *)0x0);
      pplVar6 = &plVar5->right;
    }
  }
  else {
    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {
      while( true ) {
        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,
                                plVar5->section,(asection *)&plVar5->section->alignment_power);
        if (iVar3 < 0) break;
        pplVar6 = &(*pplVar6)->right;
        plVar5 = *pplVar6;
        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;
      }
    }
  }
LAB_001153e0:
  *pplVar6 = plVar4;
  return;
}



void FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,
                 undefined8 param_6)

{
  long lVar1;
  int iVar2;
  long *plVar3;
  long *plVar4;
  long lVar5;
  long *plVar6;
  
  iVar2 = FUN_001150b0(param_3,param_6);
  if (iVar2 != 0) {
    return;
  }
  plVar6 = (long *)(param_1 + 0x70);
  plVar3 = (long *)xmalloc(0x18);
  iVar2 = *(int *)(param_1 + 0x18);
  plVar3[1] = 0;
  plVar3[2] = 0;
  *plVar3 = param_3;
  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {
    lVar1 = *(long *)(param_1 + 0x70);
    if (*(long *)(param_1 + 0x70) != 0) {
      do {
        lVar5 = lVar1;
        lVar1 = *(long *)(lVar5 + 0x10);
      } while (lVar1 != 0);
      plVar6 = (long *)(lVar5 + 0x10);
    }
  }
  else {
    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {
      while( true ) {
        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,
                             *plVar4 + 0x70);
        if (iVar2 < 0) break;
        plVar6 = (long *)(*plVar6 + 0x10);
        plVar4 = (long *)*plVar6;
        if (plVar4 == (long *)0x0) goto LAB_001153e0;
      }
    }
  }
LAB_001153e0:
  *plVar6 = (long)plVar3;
  return;
}


PUSH R14
PUSH R13
MOV R13,RDI
MOV RDI,RDX
PUSH R12
MOV R12,RSI
MOV RSI,R9
PUSH RBP
MOV RBP,RDX
PUSH RBX
CALL 0x001150b0
TEST EAX,EAX
JZ 0x00115370
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV EDI,0x18
LEA RBX,[R13 + 0x70]
CALL 0x00109c60
MOV EDX,dword ptr [R13 + 0x18]
MOV R14,RAX
MOV qword ptr [RAX + 0x8],0x0
MOV qword ptr [RAX + 0x10],0x0
MOV qword ptr [RAX],RBP
TEST EDX,EDX
JNZ 0x001153aa
TEST R12,R12
JZ 0x00115400
MOV EAX,dword ptr [R12 + 0x18]
TEST EAX,EAX
JZ 0x00115400
LEA R13,[RBP + 0x70]
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x001153e0
MOV RCX,qword ptr [RAX]
MOV EDI,dword ptr [R12 + 0x18]
MOV RDX,R13
MOV RSI,RBP
LEA R8,[RCX + 0x70]
CALL 0x00115280
MOV RBX,qword ptr [RBX]
TEST EAX,EAX
JS 0x001153f0
ADD RBX,0x10
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JNZ 0x001153b6
MOV qword ptr [RBX],R14
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
ADD RBX,0x8
JMP 0x001153ae
MOV RDX,qword ptr [R13 + 0x70]
TEST RDX,RDX
JNZ 0x00115413
JMP 0x001153e0
MOV RDX,RAX
MOV RAX,qword ptr [RDX + 0x10]
TEST RAX,RAX
JNZ 0x00115410
LEA RBX,[RDX + 0x10]
JMP 0x001153e0
(translation_unit "void FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)\n\n{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}\n\n" (function_definition "void FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)\n\n{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)" identifier (parameter_list "(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar6;" (sized_type_specifier "long" long) (pointer_declarator "*plVar6" * identifier) ;) (expression_statement "iVar2 = FUN_001150b0(param_3,param_6);" (assignment_expression "iVar2 = FUN_001150b0(param_3,param_6)" identifier = (call_expression "FUN_001150b0(param_3,param_6)" identifier (argument_list "(param_3,param_6)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "plVar6 = (long *)(param_1 + 0x70);" (assignment_expression "plVar6 = (long *)(param_1 + 0x70)" identifier = (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) ;) (expression_statement "plVar3 = (long *)xmalloc(0x18);" (assignment_expression "plVar3 = (long *)xmalloc(0x18)" identifier = (cast_expression "(long *)xmalloc(0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "plVar3[1] = 0;" (assignment_expression "plVar3[1] = 0" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar3[2] = 0;" (assignment_expression "plVar3[2] = 0" (subscript_expression "plVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*plVar3 = param_3;" (assignment_expression "*plVar3 = param_3" (pointer_expression "*plVar3" * identifier) = identifier) ;) (if_statement "if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0))))" ( (binary_expression "(iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))" ( (parenthesized_expression "(param_2 == 0 || (*(int *)(param_2 + 0x18) == 0))" ( (binary_expression "param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)" (binary_expression "param_2 == 0" identifier == number_literal) || (parenthesized_expression "(*(int *)(param_2 + 0x18) == 0)" ( (binary_expression "*(int *)(param_2 + 0x18) == 0" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }" { (expression_statement "lVar1 = *(long *)(param_1 + 0x70);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x70)" identifier = (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" ( (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }" { (do_statement "do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);" do (compound_statement "{\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      }" { (expression_statement "lVar5 = lVar1;" (assignment_expression "lVar5 = lVar1" identifier = identifier) ;) (expression_statement "lVar1 = *(long *)(lVar5 + 0x10);" (assignment_expression "lVar1 = *(long *)(lVar5 + 0x10)" identifier = (pointer_expression "*(long *)(lVar5 + 0x10)" * (cast_expression "(long *)(lVar5 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "plVar6 = (long *)(lVar5 + 0x10);" (assignment_expression "plVar6 = (long *)(lVar5 + 0x10)" identifier = (cast_expression "(long *)(lVar5 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) )))) ;) })) }) (else_clause "else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" else (compound_statement "{\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" { (for_statement "for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }" for ( ; (comma_expression "plVar4 = (long *)*plVar6, plVar4 != (long *)0x0" (assignment_expression "plVar4 = (long *)*plVar6" identifier = (cast_expression "(long *)*plVar6" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar6" * identifier))) , (binary_expression "plVar4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal))) ; (assignment_expression "plVar6 = (long *)(*plVar6 + 8)" identifier = (cast_expression "(long *)(*plVar6 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*plVar6 + 8)" ( (binary_expression "*plVar6 + 8" (pointer_expression "*plVar6" * identifier) + number_literal) )))) ) (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }" { (expression_statement "iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);" (assignment_expression "iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" identifier = (call_expression "FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier , (binary_expression "param_3 + 0x70" identifier + number_literal) , (pointer_expression "*plVar4" * identifier) , (binary_expression "*plVar4 + 0x70" (pointer_expression "*plVar4" * identifier) + number_literal) )))) ;) (if_statement "if (iVar2 < 0) break;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "plVar6 = (long *)(*plVar6 + 0x10);" (assignment_expression "plVar6 = (long *)(*plVar6 + 0x10)" identifier = (cast_expression "(long *)(*plVar6 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*plVar6 + 0x10)" ( (binary_expression "*plVar6 + 0x10" (pointer_expression "*plVar6" * identifier) + number_literal) )))) ;) (expression_statement "plVar4 = (long *)*plVar6;" (assignment_expression "plVar4 = (long *)*plVar6" identifier = (cast_expression "(long *)*plVar6" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar6" * identifier))) ;) (if_statement "if (plVar4 == (long *)0x0) goto LAB_001153e0;" 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)) )) (goto_statement "goto LAB_001153e0;" goto statement_identifier ;)) })) })) }))) (labeled_statement "LAB_001153e0:\n  *plVar6 = (long)plVar3;" statement_identifier : (expression_statement "*plVar6 = (long)plVar3;" (assignment_expression "*plVar6 = (long)plVar3" (pointer_expression "*plVar6" * identifier) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void output_section_callback_fast\n               (lang_wild_statement_type *ptr,wildcard_list *sec,asection *section,\n               flag_info *sflag_list,lang_input_statement_type *file,void *output)\n\n{\n  lang_section_bst *plVar1;\n  bfd_boolean bVar2;\n  int iVar3;\n  lang_section_bst *plVar4;\n  lang_section_bst_type *plVar5;\n  lang_section_bst **pplVar6;\n  \n  bVar2 = unique_section_p(section,(lang_output_section_statement_type *)output);\n  if (bVar2 != 0) {\n    return;\n  }\n  pplVar6 = &ptr->tree;\n  plVar4 = (lang_section_bst *)xmalloc(0x18);\n  iVar3 = ptr->filenames_sorted;\n  plVar4->left = (lang_section_bst *)0x0;\n  plVar4->right = (lang_section_bst *)0x0;\n  plVar4->section = section;\n  if ((iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))) {\n    plVar1 = ptr->tree;\n    if (ptr->tree != (lang_section_bst_type *)0x0) {\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }\n  }\n  else {\n    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *pplVar6 = plVar4;\n  return;\n}\n\n" (function_definition "void output_section_callback_fast\n               (lang_wild_statement_type *ptr,wildcard_list *sec,asection *section,\n               flag_info *sflag_list,lang_input_statement_type *file,void *output)\n\n{\n  lang_section_bst *plVar1;\n  bfd_boolean bVar2;\n  int iVar3;\n  lang_section_bst *plVar4;\n  lang_section_bst_type *plVar5;\n  lang_section_bst **pplVar6;\n  \n  bVar2 = unique_section_p(section,(lang_output_section_statement_type *)output);\n  if (bVar2 != 0) {\n    return;\n  }\n  pplVar6 = &ptr->tree;\n  plVar4 = (lang_section_bst *)xmalloc(0x18);\n  iVar3 = ptr->filenames_sorted;\n  plVar4->left = (lang_section_bst *)0x0;\n  plVar4->right = (lang_section_bst *)0x0;\n  plVar4->section = section;\n  if ((iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))) {\n    plVar1 = ptr->tree;\n    if (ptr->tree != (lang_section_bst_type *)0x0) {\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }\n  }\n  else {\n    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *pplVar6 = plVar4;\n  return;\n}" primitive_type (function_declarator "output_section_callback_fast\n               (lang_wild_statement_type *ptr,wildcard_list *sec,asection *section,\n               flag_info *sflag_list,lang_input_statement_type *file,void *output)" identifier (parameter_list "(lang_wild_statement_type *ptr,wildcard_list *sec,asection *section,\n               flag_info *sflag_list,lang_input_statement_type *file,void *output)" ( (parameter_declaration "lang_wild_statement_type *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "wildcard_list *sec" type_identifier (pointer_declarator "*sec" * identifier)) , (parameter_declaration "asection *section" type_identifier (pointer_declarator "*section" * identifier)) , (parameter_declaration "flag_info *sflag_list" type_identifier (pointer_declarator "*sflag_list" * identifier)) , (parameter_declaration "lang_input_statement_type *file" type_identifier (pointer_declarator "*file" * identifier)) , (parameter_declaration "void *output" primitive_type (pointer_declarator "*output" * identifier)) ))) (compound_statement "{\n  lang_section_bst *plVar1;\n  bfd_boolean bVar2;\n  int iVar3;\n  lang_section_bst *plVar4;\n  lang_section_bst_type *plVar5;\n  lang_section_bst **pplVar6;\n  \n  bVar2 = unique_section_p(section,(lang_output_section_statement_type *)output);\n  if (bVar2 != 0) {\n    return;\n  }\n  pplVar6 = &ptr->tree;\n  plVar4 = (lang_section_bst *)xmalloc(0x18);\n  iVar3 = ptr->filenames_sorted;\n  plVar4->left = (lang_section_bst *)0x0;\n  plVar4->right = (lang_section_bst *)0x0;\n  plVar4->section = section;\n  if ((iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))) {\n    plVar1 = ptr->tree;\n    if (ptr->tree != (lang_section_bst_type *)0x0) {\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }\n  }\n  else {\n    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *pplVar6 = plVar4;\n  return;\n}" { (declaration "lang_section_bst *plVar1;" type_identifier (pointer_declarator "*plVar1" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "lang_section_bst *plVar4;" type_identifier (pointer_declarator "*plVar4" * identifier) ;) (declaration "lang_section_bst_type *plVar5;" type_identifier (pointer_declarator "*plVar5" * identifier) ;) (declaration "lang_section_bst **pplVar6;" type_identifier (pointer_declarator "**pplVar6" * (pointer_declarator "*pplVar6" * identifier)) ;) (expression_statement "bVar2 = unique_section_p(section,(lang_output_section_statement_type *)output);" (assignment_expression "bVar2 = unique_section_p(section,(lang_output_section_statement_type *)output)" identifier = (call_expression "unique_section_p(section,(lang_output_section_statement_type *)output)" identifier (argument_list "(section,(lang_output_section_statement_type *)output)" ( identifier , (cast_expression "(lang_output_section_statement_type *)output" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (bVar2 != 0) {\n    return;\n  }" if (parenthesized_expression "(bVar2 != 0)" ( (binary_expression "bVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pplVar6 = &ptr->tree;" (assignment_expression "pplVar6 = &ptr->tree" identifier = (pointer_expression "&ptr->tree" & (field_expression "ptr->tree" identifier -> field_identifier))) ;) (expression_statement "plVar4 = (lang_section_bst *)xmalloc(0x18);" (assignment_expression "plVar4 = (lang_section_bst *)xmalloc(0x18)" identifier = (cast_expression "(lang_section_bst *)xmalloc(0x18)" ( (type_descriptor "lang_section_bst *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "iVar3 = ptr->filenames_sorted;" (assignment_expression "iVar3 = ptr->filenames_sorted" identifier = (field_expression "ptr->filenames_sorted" identifier -> field_identifier)) ;) (expression_statement "plVar4->left = (lang_section_bst *)0x0;" (assignment_expression "plVar4->left = (lang_section_bst *)0x0" (field_expression "plVar4->left" identifier -> field_identifier) = (cast_expression "(lang_section_bst *)0x0" ( (type_descriptor "lang_section_bst *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "plVar4->right = (lang_section_bst *)0x0;" (assignment_expression "plVar4->right = (lang_section_bst *)0x0" (field_expression "plVar4->right" identifier -> field_identifier) = (cast_expression "(lang_section_bst *)0x0" ( (type_descriptor "lang_section_bst *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "plVar4->section = section;" (assignment_expression "plVar4->section = section" (field_expression "plVar4->section" identifier -> field_identifier) = identifier) ;) (if_statement "if ((iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))) {\n    plVar1 = ptr->tree;\n    if (ptr->tree != (lang_section_bst_type *)0x0) {\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }\n  }\n  else {\n    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" if (parenthesized_expression "((iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none))))" ( (binary_expression "(iVar3 == 0) && ((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) && (parenthesized_expression "((sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)))" ( (parenthesized_expression "(sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none))" ( (binary_expression "sec == (wildcard_list *)0x0 || ((sec->spec).sorted == none)" (binary_expression "sec == (wildcard_list *)0x0" identifier == (cast_expression "(wildcard_list *)0x0" ( (type_descriptor "wildcard_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "((sec->spec).sorted == none)" ( (binary_expression "(sec->spec).sorted == none" (field_expression "(sec->spec).sorted" (parenthesized_expression "(sec->spec)" ( (field_expression "sec->spec" identifier -> field_identifier) )) . field_identifier) == identifier) ))) )) ))) )) (compound_statement "{\n    plVar1 = ptr->tree;\n    if (ptr->tree != (lang_section_bst_type *)0x0) {\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }\n  }" { (expression_statement "plVar1 = ptr->tree;" (assignment_expression "plVar1 = ptr->tree" identifier = (field_expression "ptr->tree" identifier -> field_identifier)) ;) (if_statement "if (ptr->tree != (lang_section_bst_type *)0x0) {\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }" if (parenthesized_expression "(ptr->tree != (lang_section_bst_type *)0x0)" ( (binary_expression "ptr->tree != (lang_section_bst_type *)0x0" (field_expression "ptr->tree" identifier -> field_identifier) != (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);\n      pplVar6 = &plVar5->right;\n    }" { (do_statement "do {\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      } while (plVar1 != (lang_section_bst *)0x0);" do (compound_statement "{\n        plVar5 = plVar1;\n        plVar1 = plVar5->right;\n      }" { (expression_statement "plVar5 = plVar1;" (assignment_expression "plVar5 = plVar1" identifier = identifier) ;) (expression_statement "plVar1 = plVar5->right;" (assignment_expression "plVar1 = plVar5->right" identifier = (field_expression "plVar5->right" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(plVar1 != (lang_section_bst *)0x0)" ( (binary_expression "plVar1 != (lang_section_bst *)0x0" identifier != (cast_expression "(lang_section_bst *)0x0" ( (type_descriptor "lang_section_bst *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pplVar6 = &plVar5->right;" (assignment_expression "pplVar6 = &plVar5->right" identifier = (pointer_expression "&plVar5->right" & (field_expression "plVar5->right" identifier -> field_identifier))) ;) })) }) (else_clause "else {\n    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" else (compound_statement "{\n    for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" { (for_statement "for (; plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0; pplVar6 = &(*pplVar6)->left) {\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }" for ( ; (comma_expression "plVar5 = *pplVar6, plVar5 != (lang_section_bst_type *)0x0" (assignment_expression "plVar5 = *pplVar6" identifier = (pointer_expression "*pplVar6" * identifier)) , (binary_expression "plVar5 != (lang_section_bst_type *)0x0" identifier != (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ; (assignment_expression "pplVar6 = &(*pplVar6)->left" identifier = (pointer_expression "&(*pplVar6)->left" & (field_expression "(*pplVar6)->left" (parenthesized_expression "(*pplVar6)" ( (pointer_expression "*pplVar6" * identifier) )) -> field_identifier))) ) (compound_statement "{\n      while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }\n    }" { (while_statement "while( true ) {\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);\n        if (iVar3 < 0) break;\n        pplVar6 = &(*pplVar6)->right;\n        plVar5 = *pplVar6;\n        if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;\n      }" { (expression_statement "iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power);" (assignment_expression "iVar3 = compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power)" identifier = (call_expression "compare_section((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power)" identifier (argument_list "((sec->spec).sorted,section,(asection *)&section->alignment_power,\n                                plVar5->section,(asection *)&plVar5->section->alignment_power)" ( (field_expression "(sec->spec).sorted" (parenthesized_expression "(sec->spec)" ( (field_expression "sec->spec" identifier -> field_identifier) )) . field_identifier) , identifier , (cast_expression "(asection *)&section->alignment_power" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&section->alignment_power" & (field_expression "section->alignment_power" identifier -> field_identifier))) , (field_expression "plVar5->section" identifier -> field_identifier) , (cast_expression "(asection *)&plVar5->section->alignment_power" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&plVar5->section->alignment_power" & (field_expression "plVar5->section->alignment_power" (field_expression "plVar5->section" identifier -> field_identifier) -> field_identifier))) )))) ;) (if_statement "if (iVar3 < 0) break;" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "pplVar6 = &(*pplVar6)->right;" (assignment_expression "pplVar6 = &(*pplVar6)->right" identifier = (pointer_expression "&(*pplVar6)->right" & (field_expression "(*pplVar6)->right" (parenthesized_expression "(*pplVar6)" ( (pointer_expression "*pplVar6" * identifier) )) -> field_identifier))) ;) (expression_statement "plVar5 = *pplVar6;" (assignment_expression "plVar5 = *pplVar6" identifier = (pointer_expression "*pplVar6" * identifier)) ;) (if_statement "if (plVar5 == (lang_section_bst_type *)0x0) goto LAB_001153e0;" if (parenthesized_expression "(plVar5 == (lang_section_bst_type *)0x0)" ( (binary_expression "plVar5 == (lang_section_bst_type *)0x0" identifier == (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001153e0;" goto statement_identifier ;)) })) })) }))) (labeled_statement "LAB_001153e0:\n  *pplVar6 = plVar4;" statement_identifier : (expression_statement "*pplVar6 = plVar4;" (assignment_expression "*pplVar6 = plVar4" (pointer_expression "*pplVar6" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)\n\n{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}\n\n" (function_definition "void FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)\n\n{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)" identifier (parameter_list "(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar6;" (sized_type_specifier "long" long) (pointer_declarator "*plVar6" * identifier) ;) (expression_statement "iVar2 = FUN_001150b0(param_3,param_6);" (assignment_expression "iVar2 = FUN_001150b0(param_3,param_6)" identifier = (call_expression "FUN_001150b0(param_3,param_6)" identifier (argument_list "(param_3,param_6)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "plVar6 = (long *)(param_1 + 0x70);" (assignment_expression "plVar6 = (long *)(param_1 + 0x70)" identifier = (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) ;) (expression_statement "plVar3 = (long *)xmalloc(0x18);" (assignment_expression "plVar3 = (long *)xmalloc(0x18)" identifier = (cast_expression "(long *)xmalloc(0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "plVar3[1] = 0;" (assignment_expression "plVar3[1] = 0" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar3[2] = 0;" (assignment_expression "plVar3[2] = 0" (subscript_expression "plVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*plVar3 = param_3;" (assignment_expression "*plVar3 = param_3" (pointer_expression "*plVar3" * identifier) = identifier) ;) (if_statement "if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0))))" ( (binary_expression "(iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))" ( (parenthesized_expression "(param_2 == 0 || (*(int *)(param_2 + 0x18) == 0))" ( (binary_expression "param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)" (binary_expression "param_2 == 0" identifier == number_literal) || (parenthesized_expression "(*(int *)(param_2 + 0x18) == 0)" ( (binary_expression "*(int *)(param_2 + 0x18) == 0" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) == number_literal) ))) )) ))) )) (compound_statement "{\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }" { (expression_statement "lVar1 = *(long *)(param_1 + 0x70);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x70)" identifier = (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }" if (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" ( (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" * (cast_expression "(long *)(param_1 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }" { (do_statement "do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);" do (compound_statement "{\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      }" { (expression_statement "lVar5 = lVar1;" (assignment_expression "lVar5 = lVar1" identifier = identifier) ;) (expression_statement "lVar1 = *(long *)(lVar5 + 0x10);" (assignment_expression "lVar1 = *(long *)(lVar5 + 0x10)" identifier = (pointer_expression "*(long *)(lVar5 + 0x10)" * (cast_expression "(long *)(lVar5 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "plVar6 = (long *)(lVar5 + 0x10);" (assignment_expression "plVar6 = (long *)(lVar5 + 0x10)" identifier = (cast_expression "(long *)(lVar5 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + 0x10)" ( (binary_expression "lVar5 + 0x10" identifier + number_literal) )))) ;) })) }) (else_clause "else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" else (compound_statement "{\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" { (for_statement "for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }" for ( ; (comma_expression "plVar4 = (long *)*plVar6, plVar4 != (long *)0x0" (assignment_expression "plVar4 = (long *)*plVar6" identifier = (cast_expression "(long *)*plVar6" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar6" * identifier))) , (binary_expression "plVar4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal))) ; (assignment_expression "plVar6 = (long *)(*plVar6 + 8)" identifier = (cast_expression "(long *)(*plVar6 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*plVar6 + 8)" ( (binary_expression "*plVar6 + 8" (pointer_expression "*plVar6" * identifier) + number_literal) )))) ) (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }" { (expression_statement "iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);" (assignment_expression "iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" identifier = (call_expression "FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" identifier (argument_list "(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" ( (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier , (binary_expression "param_3 + 0x70" identifier + number_literal) , (pointer_expression "*plVar4" * identifier) , (binary_expression "*plVar4 + 0x70" (pointer_expression "*plVar4" * identifier) + number_literal) )))) ;) (if_statement "if (iVar2 < 0) break;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "plVar6 = (long *)(*plVar6 + 0x10);" (assignment_expression "plVar6 = (long *)(*plVar6 + 0x10)" identifier = (cast_expression "(long *)(*plVar6 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*plVar6 + 0x10)" ( (binary_expression "*plVar6 + 0x10" (pointer_expression "*plVar6" * identifier) + number_literal) )))) ;) (expression_statement "plVar4 = (long *)*plVar6;" (assignment_expression "plVar4 = (long *)*plVar6" identifier = (cast_expression "(long *)*plVar6" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar6" * identifier))) ;) (if_statement "if (plVar4 == (long *)0x0) goto LAB_001153e0;" 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)) )) (goto_statement "goto LAB_001153e0;" goto statement_identifier ;)) })) })) }))) (labeled_statement "LAB_001153e0:\n  *plVar6 = (long)plVar3;" statement_identifier : (expression_statement "*plVar6 = (long)plVar3;" (assignment_expression "*plVar6 = (long)plVar3" (pointer_expression "*plVar6" * identifier) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_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) )))) == LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) }) (else_clause else (compound_statement { (for_statement for ( ; (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT))) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) , (pointer_expression * IDENT) , (binary_expression (pointer_expression * IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;)) (return_statement return ;) })))
(function_definition "void FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)\n\n{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00115340(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)" (identifier "FUN_00115340") (parameter_list "(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,\n                 undefined8 param_6)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long *plVar3;\n  long *plVar4;\n  long lVar5;\n  long *plVar6;\n  \n  iVar2 = FUN_001150b0(param_3,param_6);\n  if (iVar2 != 0) {\n    return;\n  }\n  plVar6 = (long *)(param_1 + 0x70);\n  plVar3 = (long *)xmalloc(0x18);\n  iVar2 = *(int *)(param_1 + 0x18);\n  plVar3[1] = 0;\n  plVar3[2] = 0;\n  *plVar3 = param_3;\n  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }\nLAB_001153e0:\n  *plVar6 = (long)plVar3;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "long *plVar6;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar6" (* "*") (identifier "plVar6")) (; ";")) (expression_statement "iVar2 = FUN_001150b0(param_3,param_6);" (assignment_expression "iVar2 = FUN_001150b0(param_3,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_001150b0(param_3,param_6)" (identifier "FUN_001150b0") (argument_list "(param_3,param_6)" (( "(") (identifier "param_3") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "plVar6 = (long *)(param_1 + 0x70);" (assignment_expression "plVar6 = (long *)(param_1 + 0x70)" (identifier "plVar6") (= "=") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (; ";")) (expression_statement "plVar3 = (long *)xmalloc(0x18);" (assignment_expression "plVar3 = (long *)xmalloc(0x18)" (identifier "plVar3") (= "=") (cast_expression "(long *)xmalloc(0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x18)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "plVar3[1] = 0;" (assignment_expression "plVar3[1] = 0" (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar3[2] = 0;" (assignment_expression "plVar3[2] = 0" (subscript_expression "plVar3[2]" (identifier "plVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*plVar3 = param_3;" (assignment_expression "*plVar3 = param_3" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }\n  else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0))))" (( "(") (binary_expression "(iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))" (( "(") (parenthesized_expression "(param_2 == 0 || (*(int *)(param_2 + 0x18) == 0))" (( "(") (binary_expression "param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)" (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(*(int *)(param_2 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x18) == 0" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    lVar1 = *(long *)(param_1 + 0x70);\n    if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }\n  }" ({ "{") (expression_statement "lVar1 = *(long *)(param_1 + 0x70);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x70)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x70)" (* "*") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (if_statement "if (*(long *)(param_1 + 0x70) != 0) {\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x70) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x70) != 0" (pointer_expression "*(long *)(param_1 + 0x70)" (* "*") (cast_expression "(long *)(param_1 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);\n      plVar6 = (long *)(lVar5 + 0x10);\n    }" ({ "{") (do_statement "do {\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      } while (lVar1 != 0);" (do "do") (compound_statement "{\n        lVar5 = lVar1;\n        lVar1 = *(long *)(lVar5 + 0x10);\n      }" ({ "{") (expression_statement "lVar5 = lVar1;" (assignment_expression "lVar5 = lVar1" (identifier "lVar5") (= "=") (identifier "lVar1")) (; ";")) (expression_statement "lVar1 = *(long *)(lVar5 + 0x10);" (assignment_expression "lVar1 = *(long *)(lVar5 + 0x10)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar5 + 0x10)" (* "*") (cast_expression "(long *)(lVar5 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x10)" (( "(") (binary_expression "lVar5 + 0x10" (identifier "lVar5") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "plVar6 = (long *)(lVar5 + 0x10);" (assignment_expression "plVar6 = (long *)(lVar5 + 0x10)" (identifier "plVar6") (= "=") (cast_expression "(long *)(lVar5 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + 0x10)" (( "(") (binary_expression "lVar5 + 0x10" (identifier "lVar5") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }\n  }" ({ "{") (for_statement "for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }" (for "for") (( "(") (; ";") (comma_expression "plVar4 = (long *)*plVar6, plVar4 != (long *)0x0" (assignment_expression "plVar4 = (long *)*plVar6" (identifier "plVar4") (= "=") (cast_expression "(long *)*plVar6" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar6" (* "*") (identifier "plVar6")))) (, ",") (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")))) (; ";") (assignment_expression "plVar6 = (long *)(*plVar6 + 8)" (identifier "plVar6") (= "=") (cast_expression "(long *)(*plVar6 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*plVar6 + 8)" (( "(") (binary_expression "*plVar6 + 8" (pointer_expression "*plVar6" (* "*") (identifier "plVar6")) (+ "+") (number_literal "8")) () ")")))) () ")") (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }\n    }" ({ "{") (while_statement "while( true ) {\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);\n        if (iVar2 < 0) break;\n        plVar6 = (long *)(*plVar6 + 0x10);\n        plVar4 = (long *)*plVar6;\n        if (plVar4 == (long *)0x0) goto LAB_001153e0;\n      }" ({ "{") (expression_statement "iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70);" (assignment_expression "iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" (identifier "iVar2") (= "=") (call_expression "FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" (identifier "FUN_00115280") (argument_list "(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,\n                             *plVar4 + 0x70)" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "param_3") (, ",") (binary_expression "param_3 + 0x70" (identifier "param_3") (+ "+") (number_literal "0x70")) (, ",") (pointer_expression "*plVar4" (* "*") (identifier "plVar4")) (, ",") (binary_expression "*plVar4 + 0x70" (pointer_expression "*plVar4" (* "*") (identifier "plVar4")) (+ "+") (number_literal "0x70")) () ")")))) (; ";")) (if_statement "if (iVar2 < 0) break;" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "plVar6 = (long *)(*plVar6 + 0x10);" (assignment_expression "plVar6 = (long *)(*plVar6 + 0x10)" (identifier "plVar6") (= "=") (cast_expression "(long *)(*plVar6 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*plVar6 + 0x10)" (( "(") (binary_expression "*plVar6 + 0x10" (pointer_expression "*plVar6" (* "*") (identifier "plVar6")) (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "plVar4 = (long *)*plVar6;" (assignment_expression "plVar4 = (long *)*plVar6" (identifier "plVar4") (= "=") (cast_expression "(long *)*plVar6" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar6" (* "*") (identifier "plVar6")))) (; ";")) (if_statement "if (plVar4 == (long *)0x0) goto LAB_001153e0;" (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"))) () ")")) (goto_statement "goto LAB_001153e0;" (goto "goto") (statement_identifier "LAB_001153e0") (; ";"))) (} "}"))) (} "}"))) (} "}")))) (labeled_statement "LAB_001153e0:\n  *plVar6 = (long)plVar3;" (statement_identifier "LAB_001153e0") (: ":") (expression_statement "*plVar6 = (long)plVar3;" (assignment_expression "*plVar6 = (long)plVar3" (pointer_expression "*plVar6" (* "*") (identifier "plVar6")) (= "=") (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1
               (type_1 *ptr,type_2 *var_5,type_3 *section,
               type_4 *sflag_list,type_5 *file,void *output)

{
  type_6 *var_7;
  type_7 var_2;
  int var_4;
  type_6 *plVar4;
  type_8 *var_8;
  type_6 **pplVar6;
  
  var_2 = var_1(section,(type_9 *)output);
  if (var_2 != 0) {
    return;
  }
  pplVar6 = &ptr->tree;
  plVar4 = (type_6 *)var_3(0x18);
  var_4 = ptr->filenames_sorted;
  plVar4->left = (type_6 *)0x0;
  plVar4->right = (type_6 *)0x0;
  plVar4->section = section;
  if ((var_4 == 0) && ((var_5 == (type_2 *)0x0 || ((var_5->spec).sorted == var_6)))) {
    var_7 = ptr->tree;
    if (ptr->tree != (type_8 *)0x0) {
      do {
        var_8 = var_7;
        var_7 = var_8->right;
      } while (var_7 != (type_6 *)0x0);
      pplVar6 = &var_8->right;
    }
  }
  else {
    for (; var_8 = *pplVar6, var_8 != (type_8 *)0x0; pplVar6 = &(*pplVar6)->left) {
      while( true ) {
        var_4 = var_9((var_5->spec).sorted,section,(type_3 *)&section->alignment_power,
                                var_8->section,(type_3 *)&var_8->section->alignment_power);
        if (var_4 < 0) break;
        pplVar6 = &(*pplVar6)->right;
        var_8 = *pplVar6;
        if (var_8 == (type_8 *)0x0) goto LAB_001153e0;
      }
    }
  }
LAB_001153e0:
  *pplVar6 = plVar4;
  return;
}


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

void MASKED(long param_1,long param_2,long param_3,undefined8 param_4,undefined8 param_5,
                 undefined8 param_6)

{
  long lVar1;
  int iVar2;
  long *plVar3;
  long *plVar4;
  long lVar5;
  long *plVar6;
  
  iVar2 = FUN_001150b0(param_3,param_6);
  if (iVar2 != 0) {
    return;
  }
  plVar6 = (long *)(param_1 + 0x70);
  plVar3 = (long *)xmalloc(0x18);
  iVar2 = *(int *)(param_1 + 0x18);
  plVar3[1] = 0;
  plVar3[2] = 0;
  *plVar3 = param_3;
  if ((iVar2 == 0) && ((param_2 == 0 || (*(int *)(param_2 + 0x18) == 0)))) {
    lVar1 = *(long *)(param_1 + 0x70);
    if (*(long *)(param_1 + 0x70) != 0) {
      do {
        lVar5 = lVar1;
        lVar1 = *(long *)(lVar5 + 0x10);
      } while (lVar1 != 0);
      plVar6 = (long *)(lVar5 + 0x10);
    }
  }
  else {
    for (; plVar4 = (long *)*plVar6, plVar4 != (long *)0x0; plVar6 = (long *)(*plVar6 + 8)) {
      while( true ) {
        iVar2 = FUN_00115280(*(undefined4 *)(param_2 + 0x18),param_3,param_3 + 0x70,*plVar4,
                             *plVar4 + 0x70);
        if (iVar2 < 0) break;
        plVar6 = (long *)(*plVar6 + 0x10);
        plVar4 = (long *)*plVar6;
        if (plVar4 == (long *)0x0) goto LAB_001153e0;
      }
    }
  }
LAB_001153e0:
  *plVar6 = (long)plVar3;
  return;
}

