
void * index234(tree234 *t,int index)

{
  int iVar1;
  node234_conflict *n;
  
  n = t->root;
  if ((index < 0) || (n == (node234_conflict *)0x0)) {
    n = (node234 *)0x0;
  }
  else {
    iVar1 = countnode234(n);
    if (index < iVar1) {
      do {
        if (index < n->counts[0]) {
          n = n->kids[0];
        }
        else {
          index = index - (n->counts[0] + 1);
          if (index < 0) {
            return n->elems[0];
          }
          if (index < n->counts[1]) {
            n = n->kids[1];
          }
          else {
            index = index - (n->counts[1] + 1);
            if (index < 0) {
              return n->elems[1];
            }
            if (index < n->counts[2]) {
              n = n->kids[2];
            }
            else {
              index = index - (n->counts[2] + 1);
              if (index < 0) {
                return n->elems[2];
              }
              n = n->kids[3];
            }
          }
        }
      } while (n != (node234 *)0x0);
    }
    else {
      n = (node234 *)0x0;
    }
  }
  return n;
}



long FUN_0012ffb3(long *param_1,int param_2)

{
  int iVar1;
  long lVar2;
  
  lVar2 = *param_1;
  if ((param_2 < 0) || (lVar2 == 0)) {
    lVar2 = 0;
  }
  else {
    iVar1 = FUN_0012ef67(lVar2);
    if (param_2 < iVar1) {
      do {
        if (param_2 < *(int *)(lVar2 + 0x28)) {
          lVar2 = *(long *)(lVar2 + 8);
        }
        else {
          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);
          if (param_2 < 0) {
            return *(long *)(lVar2 + 0x38);
          }
          if (param_2 < *(int *)(lVar2 + 0x2c)) {
            lVar2 = *(long *)(lVar2 + 0x10);
          }
          else {
            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);
            if (param_2 < 0) {
              return *(long *)(lVar2 + 0x40);
            }
            if (param_2 < *(int *)(lVar2 + 0x30)) {
              lVar2 = *(long *)(lVar2 + 0x18);
            }
            else {
              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);
              if (param_2 < 0) {
                return *(long *)(lVar2 + 0x48);
              }
              lVar2 = *(long *)(lVar2 + 0x20);
            }
          }
        }
      } while (lVar2 != 0);
    }
    else {
      lVar2 = 0;
    }
  }
  return lVar2;
}


PUSH RBP
PUSH RBX
MOV RBX,qword ptr [RDI]
TEST ESI,ESI
JS 0x0013002d
MOV EBP,ESI
TEST RBX,RBX
JZ 0x0013002d
MOV RDI,RBX
CALL 0x0012ef67
CMP EAX,EBP
JG 0x0012ffed
MOV EBX,0x0
JMP 0x00130032
ADD EAX,0x1
SUB EBP,EAX
JS 0x0012fffa
MOV EAX,dword ptr [RBX + 0x2c]
CMP EAX,EBP
JLE 0x00130000
MOV RBX,qword ptr [RBX + 0x10]
TEST RBX,RBX
JZ 0x00130032
MOV EAX,dword ptr [RBX + 0x28]
CMP EAX,EBP
JLE 0x0012ffd6
MOV RBX,qword ptr [RBX + 0x8]
JMP 0x0012ffe8
MOV RBX,qword ptr [RBX + 0x38]
JMP 0x00130032
ADD EAX,0x1
SUB EBP,EAX
JS 0x00130014
MOV EAX,dword ptr [RBX + 0x30]
CMP EAX,EBP
JLE 0x0013001a
MOV RBX,qword ptr [RBX + 0x18]
JMP 0x0012ffe8
MOV RBX,qword ptr [RBX + 0x40]
JMP 0x00130032
ADD EAX,0x1
SUB EBP,EAX
JS 0x00130027
MOV RBX,qword ptr [RBX + 0x20]
JMP 0x0012ffe8
MOV RBX,qword ptr [RBX + 0x48]
JMP 0x00130032
MOV EBX,0x0
MOV RAX,RBX
POP RBX
POP RBP
RET
(translation_unit "long FUN_0012ffb3(long *param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_0012ffb3(long *param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0012ffb3(long *param_1,int param_2)" identifier (parameter_list "(long *param_1,int param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" if (parenthesized_expression "((param_2 < 0) || (lVar2 == 0))" ( (binary_expression "(param_2 < 0) || (lVar2 == 0)" (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) || (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    lVar2 = 0;\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" { (expression_statement "iVar1 = FUN_0012ef67(lVar2);" (assignment_expression "iVar1 = FUN_0012ef67(lVar2)" identifier = (call_expression "FUN_0012ef67(lVar2)" identifier (argument_list "(lVar2)" ( identifier )))) ;) (if_statement "if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }" if (parenthesized_expression "(param_2 < iVar1)" ( (binary_expression "param_2 < iVar1" identifier < identifier) )) (compound_statement "{\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }" { (do_statement "do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);" do (compound_statement "{\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      }" { (if_statement "if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" if (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x28))" ( (binary_expression "param_2 < *(int *)(lVar2 + 0x28)" identifier < (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n          lVar2 = *(long *)(lVar2 + 8);\n        }" { (expression_statement "lVar2 = *(long *)(lVar2 + 8);" (assignment_expression "lVar2 = *(long *)(lVar2 + 8)" identifier = (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" else (compound_statement "{\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" { (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1)" identifier = (binary_expression "param_2 - (*(int *)(lVar2 + 0x28) + 1)" identifier - (parenthesized_expression "(*(int *)(lVar2 + 0x28) + 1)" ( (binary_expression "*(int *)(lVar2 + 0x28) + 1" (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n            return *(long *)(lVar2 + 0x38);\n          }" { (return_statement "return *(long *)(lVar2 + 0x38);" return (pointer_expression "*(long *)(lVar2 + 0x38)" * (cast_expression "(long *)(lVar2 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) )))) ;) })) (if_statement "if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" if (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x2c))" ( (binary_expression "param_2 < *(int *)(lVar2 + 0x2c)" identifier < (pointer_expression "*(int *)(lVar2 + 0x2c)" * (cast_expression "(int *)(lVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x2c)" ( (binary_expression "lVar2 + 0x2c" identifier + number_literal) ))))) )) (compound_statement "{\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }" { (expression_statement "lVar2 = *(long *)(lVar2 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x10)" identifier = (pointer_expression "*(long *)(lVar2 + 0x10)" * (cast_expression "(long *)(lVar2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" else (compound_statement "{\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" { (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1)" identifier = (binary_expression "param_2 - (*(int *)(lVar2 + 0x2c) + 1)" identifier - (parenthesized_expression "(*(int *)(lVar2 + 0x2c) + 1)" ( (binary_expression "*(int *)(lVar2 + 0x2c) + 1" (pointer_expression "*(int *)(lVar2 + 0x2c)" * (cast_expression "(int *)(lVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x2c)" ( (binary_expression "lVar2 + 0x2c" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n              return *(long *)(lVar2 + 0x40);\n            }" { (return_statement "return *(long *)(lVar2 + 0x40);" return (pointer_expression "*(long *)(lVar2 + 0x40)" * (cast_expression "(long *)(lVar2 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) ;) })) (if_statement "if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" if (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x30))" ( (binary_expression "param_2 < *(int *)(lVar2 + 0x30)" identifier < (pointer_expression "*(int *)(lVar2 + 0x30)" * (cast_expression "(int *)(lVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }" { (expression_statement "lVar2 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x18)" identifier = (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" else (compound_statement "{\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" { (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1)" identifier = (binary_expression "param_2 - (*(int *)(lVar2 + 0x30) + 1)" identifier - (parenthesized_expression "(*(int *)(lVar2 + 0x30) + 1)" ( (binary_expression "*(int *)(lVar2 + 0x30) + 1" (pointer_expression "*(int *)(lVar2 + 0x30)" * (cast_expression "(int *)(lVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n                return *(long *)(lVar2 + 0x48);\n              }" { (return_statement "return *(long *)(lVar2 + 0x48);" return (pointer_expression "*(long *)(lVar2 + 0x48)" * (cast_expression "(long *)(lVar2 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x48)" ( (binary_expression "lVar2 + 0x48" identifier + number_literal) )))) ;) })) (expression_statement "lVar2 = *(long *)(lVar2 + 0x20);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x20)" identifier = (pointer_expression "*(long *)(lVar2 + 0x20)" * (cast_expression "(long *)(lVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) ;) }))) }))) }))) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n      lVar2 = 0;\n    }" else (compound_statement "{\n      lVar2 = 0;\n    }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit "void * index234(tree234 *t,int index)\n\n{\n  int iVar1;\n  node234_conflict *n;\n  \n  n = t->root;\n  if ((index < 0) || (n == (node234_conflict *)0x0)) {\n    n = (node234 *)0x0;\n  }\n  else {\n    iVar1 = countnode234(n);\n    if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }\n  }\n  return n;\n}\n\n" (function_definition "void * index234(tree234 *t,int index)\n\n{\n  int iVar1;\n  node234_conflict *n;\n  \n  n = t->root;\n  if ((index < 0) || (n == (node234_conflict *)0x0)) {\n    n = (node234 *)0x0;\n  }\n  else {\n    iVar1 = countnode234(n);\n    if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }\n  }\n  return n;\n}" primitive_type (pointer_declarator "* index234(tree234 *t,int index)" * (function_declarator "index234(tree234 *t,int index)" identifier (parameter_list "(tree234 *t,int index)" ( (parameter_declaration "tree234 *t" type_identifier (pointer_declarator "*t" * identifier)) , (parameter_declaration "int index" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  node234_conflict *n;\n  \n  n = t->root;\n  if ((index < 0) || (n == (node234_conflict *)0x0)) {\n    n = (node234 *)0x0;\n  }\n  else {\n    iVar1 = countnode234(n);\n    if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }\n  }\n  return n;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "node234_conflict *n;" type_identifier (pointer_declarator "*n" * identifier) ;) (expression_statement "n = t->root;" (assignment_expression "n = t->root" identifier = (field_expression "t->root" identifier -> field_identifier)) ;) (if_statement "if ((index < 0) || (n == (node234_conflict *)0x0)) {\n    n = (node234 *)0x0;\n  }\n  else {\n    iVar1 = countnode234(n);\n    if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }\n  }" if (parenthesized_expression "((index < 0) || (n == (node234_conflict *)0x0))" ( (binary_expression "(index < 0) || (n == (node234_conflict *)0x0)" (parenthesized_expression "(index < 0)" ( (binary_expression "index < 0" identifier < number_literal) )) || (parenthesized_expression "(n == (node234_conflict *)0x0)" ( (binary_expression "n == (node234_conflict *)0x0" identifier == (cast_expression "(node234_conflict *)0x0" ( (type_descriptor "node234_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    n = (node234 *)0x0;\n  }" { (expression_statement "n = (node234 *)0x0;" (assignment_expression "n = (node234 *)0x0" identifier = (cast_expression "(node234 *)0x0" ( (type_descriptor "node234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar1 = countnode234(n);\n    if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }\n  }" else (compound_statement "{\n    iVar1 = countnode234(n);\n    if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }\n  }" { (expression_statement "iVar1 = countnode234(n);" (assignment_expression "iVar1 = countnode234(n)" identifier = (call_expression "countnode234(n)" identifier (argument_list "(n)" ( identifier )))) ;) (if_statement "if (index < iVar1) {\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }\n    else {\n      n = (node234 *)0x0;\n    }" if (parenthesized_expression "(index < iVar1)" ( (binary_expression "index < iVar1" identifier < identifier) )) (compound_statement "{\n      do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);\n    }" { (do_statement "do {\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      } while (n != (node234 *)0x0);" do (compound_statement "{\n        if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }\n      }" { (if_statement "if (index < n->counts[0]) {\n          n = n->kids[0];\n        }\n        else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }" if (parenthesized_expression "(index < n->counts[0])" ( (binary_expression "index < n->counts[0]" identifier < (subscript_expression "n->counts[0]" (field_expression "n->counts" identifier -> field_identifier) [ number_literal ])) )) (compound_statement "{\n          n = n->kids[0];\n        }" { (expression_statement "n = n->kids[0];" (assignment_expression "n = n->kids[0]" identifier = (subscript_expression "n->kids[0]" (field_expression "n->kids" identifier -> field_identifier) [ number_literal ])) ;) }) (else_clause "else {\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }" else (compound_statement "{\n          index = index - (n->counts[0] + 1);\n          if (index < 0) {\n            return n->elems[0];\n          }\n          if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }\n        }" { (expression_statement "index = index - (n->counts[0] + 1);" (assignment_expression "index = index - (n->counts[0] + 1)" identifier = (binary_expression "index - (n->counts[0] + 1)" identifier - (parenthesized_expression "(n->counts[0] + 1)" ( (binary_expression "n->counts[0] + 1" (subscript_expression "n->counts[0]" (field_expression "n->counts" identifier -> field_identifier) [ number_literal ]) + number_literal) )))) ;) (if_statement "if (index < 0) {\n            return n->elems[0];\n          }" if (parenthesized_expression "(index < 0)" ( (binary_expression "index < 0" identifier < number_literal) )) (compound_statement "{\n            return n->elems[0];\n          }" { (return_statement "return n->elems[0];" return (subscript_expression "n->elems[0]" (field_expression "n->elems" identifier -> field_identifier) [ number_literal ]) ;) })) (if_statement "if (index < n->counts[1]) {\n            n = n->kids[1];\n          }\n          else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }" if (parenthesized_expression "(index < n->counts[1])" ( (binary_expression "index < n->counts[1]" identifier < (subscript_expression "n->counts[1]" (field_expression "n->counts" identifier -> field_identifier) [ number_literal ])) )) (compound_statement "{\n            n = n->kids[1];\n          }" { (expression_statement "n = n->kids[1];" (assignment_expression "n = n->kids[1]" identifier = (subscript_expression "n->kids[1]" (field_expression "n->kids" identifier -> field_identifier) [ number_literal ])) ;) }) (else_clause "else {\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }" else (compound_statement "{\n            index = index - (n->counts[1] + 1);\n            if (index < 0) {\n              return n->elems[1];\n            }\n            if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }\n          }" { (expression_statement "index = index - (n->counts[1] + 1);" (assignment_expression "index = index - (n->counts[1] + 1)" identifier = (binary_expression "index - (n->counts[1] + 1)" identifier - (parenthesized_expression "(n->counts[1] + 1)" ( (binary_expression "n->counts[1] + 1" (subscript_expression "n->counts[1]" (field_expression "n->counts" identifier -> field_identifier) [ number_literal ]) + number_literal) )))) ;) (if_statement "if (index < 0) {\n              return n->elems[1];\n            }" if (parenthesized_expression "(index < 0)" ( (binary_expression "index < 0" identifier < number_literal) )) (compound_statement "{\n              return n->elems[1];\n            }" { (return_statement "return n->elems[1];" return (subscript_expression "n->elems[1]" (field_expression "n->elems" identifier -> field_identifier) [ number_literal ]) ;) })) (if_statement "if (index < n->counts[2]) {\n              n = n->kids[2];\n            }\n            else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }" if (parenthesized_expression "(index < n->counts[2])" ( (binary_expression "index < n->counts[2]" identifier < (subscript_expression "n->counts[2]" (field_expression "n->counts" identifier -> field_identifier) [ number_literal ])) )) (compound_statement "{\n              n = n->kids[2];\n            }" { (expression_statement "n = n->kids[2];" (assignment_expression "n = n->kids[2]" identifier = (subscript_expression "n->kids[2]" (field_expression "n->kids" identifier -> field_identifier) [ number_literal ])) ;) }) (else_clause "else {\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }" else (compound_statement "{\n              index = index - (n->counts[2] + 1);\n              if (index < 0) {\n                return n->elems[2];\n              }\n              n = n->kids[3];\n            }" { (expression_statement "index = index - (n->counts[2] + 1);" (assignment_expression "index = index - (n->counts[2] + 1)" identifier = (binary_expression "index - (n->counts[2] + 1)" identifier - (parenthesized_expression "(n->counts[2] + 1)" ( (binary_expression "n->counts[2] + 1" (subscript_expression "n->counts[2]" (field_expression "n->counts" identifier -> field_identifier) [ number_literal ]) + number_literal) )))) ;) (if_statement "if (index < 0) {\n                return n->elems[2];\n              }" if (parenthesized_expression "(index < 0)" ( (binary_expression "index < 0" identifier < number_literal) )) (compound_statement "{\n                return n->elems[2];\n              }" { (return_statement "return n->elems[2];" return (subscript_expression "n->elems[2]" (field_expression "n->elems" identifier -> field_identifier) [ number_literal ]) ;) })) (expression_statement "n = n->kids[3];" (assignment_expression "n = n->kids[3]" identifier = (subscript_expression "n->kids[3]" (field_expression "n->kids" identifier -> field_identifier) [ number_literal ])) ;) }))) }))) }))) }) while (parenthesized_expression "(n != (node234 *)0x0)" ( (binary_expression "n != (node234 *)0x0" identifier != (cast_expression "(node234 *)0x0" ( (type_descriptor "node234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }) (else_clause "else {\n      n = (node234 *)0x0;\n    }" else (compound_statement "{\n      n = (node234 *)0x0;\n    }" { (expression_statement "n = (node234 *)0x0;" (assignment_expression "n = (node234 *)0x0" identifier = (cast_expression "(node234 *)0x0" ( (type_descriptor "node234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) }))) (return_statement "return n;" return identifier ;) })))
(translation_unit "long FUN_0012ffb3(long *param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_0012ffb3(long *param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0012ffb3(long *param_1,int param_2)" identifier (parameter_list "(long *param_1,int param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" if (parenthesized_expression "((param_2 < 0) || (lVar2 == 0))" ( (binary_expression "(param_2 < 0) || (lVar2 == 0)" (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) || (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    lVar2 = 0;\n  }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" else (compound_statement "{\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" { (expression_statement "iVar1 = FUN_0012ef67(lVar2);" (assignment_expression "iVar1 = FUN_0012ef67(lVar2)" identifier = (call_expression "FUN_0012ef67(lVar2)" identifier (argument_list "(lVar2)" ( identifier )))) ;) (if_statement "if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }" if (parenthesized_expression "(param_2 < iVar1)" ( (binary_expression "param_2 < iVar1" identifier < identifier) )) (compound_statement "{\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }" { (do_statement "do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);" do (compound_statement "{\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      }" { (if_statement "if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" if (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x28))" ( (binary_expression "param_2 < *(int *)(lVar2 + 0x28)" identifier < (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n          lVar2 = *(long *)(lVar2 + 8);\n        }" { (expression_statement "lVar2 = *(long *)(lVar2 + 8);" (assignment_expression "lVar2 = *(long *)(lVar2 + 8)" identifier = (pointer_expression "*(long *)(lVar2 + 8)" * (cast_expression "(long *)(lVar2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" else (compound_statement "{\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" { (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1)" identifier = (binary_expression "param_2 - (*(int *)(lVar2 + 0x28) + 1)" identifier - (parenthesized_expression "(*(int *)(lVar2 + 0x28) + 1)" ( (binary_expression "*(int *)(lVar2 + 0x28) + 1" (pointer_expression "*(int *)(lVar2 + 0x28)" * (cast_expression "(int *)(lVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n            return *(long *)(lVar2 + 0x38);\n          }" { (return_statement "return *(long *)(lVar2 + 0x38);" return (pointer_expression "*(long *)(lVar2 + 0x38)" * (cast_expression "(long *)(lVar2 + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x38)" ( (binary_expression "lVar2 + 0x38" identifier + number_literal) )))) ;) })) (if_statement "if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" if (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x2c))" ( (binary_expression "param_2 < *(int *)(lVar2 + 0x2c)" identifier < (pointer_expression "*(int *)(lVar2 + 0x2c)" * (cast_expression "(int *)(lVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x2c)" ( (binary_expression "lVar2 + 0x2c" identifier + number_literal) ))))) )) (compound_statement "{\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }" { (expression_statement "lVar2 = *(long *)(lVar2 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x10)" identifier = (pointer_expression "*(long *)(lVar2 + 0x10)" * (cast_expression "(long *)(lVar2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) ))))) ;) }) (else_clause "else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" else (compound_statement "{\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" { (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1)" identifier = (binary_expression "param_2 - (*(int *)(lVar2 + 0x2c) + 1)" identifier - (parenthesized_expression "(*(int *)(lVar2 + 0x2c) + 1)" ( (binary_expression "*(int *)(lVar2 + 0x2c) + 1" (pointer_expression "*(int *)(lVar2 + 0x2c)" * (cast_expression "(int *)(lVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x2c)" ( (binary_expression "lVar2 + 0x2c" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n              return *(long *)(lVar2 + 0x40);\n            }" { (return_statement "return *(long *)(lVar2 + 0x40);" return (pointer_expression "*(long *)(lVar2 + 0x40)" * (cast_expression "(long *)(lVar2 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x40)" ( (binary_expression "lVar2 + 0x40" identifier + number_literal) )))) ;) })) (if_statement "if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" if (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x30))" ( (binary_expression "param_2 < *(int *)(lVar2 + 0x30)" identifier < (pointer_expression "*(int *)(lVar2 + 0x30)" * (cast_expression "(int *)(lVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }" { (expression_statement "lVar2 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x18)" identifier = (pointer_expression "*(long *)(lVar2 + 0x18)" * (cast_expression "(long *)(lVar2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x18)" ( (binary_expression "lVar2 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" else (compound_statement "{\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" { (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1)" identifier = (binary_expression "param_2 - (*(int *)(lVar2 + 0x30) + 1)" identifier - (parenthesized_expression "(*(int *)(lVar2 + 0x30) + 1)" ( (binary_expression "*(int *)(lVar2 + 0x30) + 1" (pointer_expression "*(int *)(lVar2 + 0x30)" * (cast_expression "(int *)(lVar2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) )))) + number_literal) )))) ;) (if_statement "if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n                return *(long *)(lVar2 + 0x48);\n              }" { (return_statement "return *(long *)(lVar2 + 0x48);" return (pointer_expression "*(long *)(lVar2 + 0x48)" * (cast_expression "(long *)(lVar2 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x48)" ( (binary_expression "lVar2 + 0x48" identifier + number_literal) )))) ;) })) (expression_statement "lVar2 = *(long *)(lVar2 + 0x20);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x20)" identifier = (pointer_expression "*(long *)(lVar2 + 0x20)" * (cast_expression "(long *)(lVar2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) ))))) ;) }))) }))) }))) }) while (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n      lVar2 = 0;\n    }" else (compound_statement "{\n      lVar2 = 0;\n    }" { (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return (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 IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return (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 IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (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) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "long FUN_0012ffb3(long *param_1,int param_2)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0012ffb3(long *param_1,int param_2)" (identifier "FUN_0012ffb3") (parameter_list "(long *param_1,int param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  lVar2 = *param_1;\n  if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }\n  return lVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((param_2 < 0) || (lVar2 == 0)) {\n    lVar2 = 0;\n  }\n  else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 < 0) || (lVar2 == 0))" (( "(") (binary_expression "(param_2 < 0) || (lVar2 == 0)" (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    lVar2 = 0;\n  }" ({ "{") (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_0012ef67(lVar2);\n    if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0012ef67(lVar2);" (assignment_expression "iVar1 = FUN_0012ef67(lVar2)" (identifier "iVar1") (= "=") (call_expression "FUN_0012ef67(lVar2)" (identifier "FUN_0012ef67") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")")))) (; ";")) (if_statement "if (param_2 < iVar1) {\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }\n    else {\n      lVar2 = 0;\n    }" (if "if") (parenthesized_expression "(param_2 < iVar1)" (( "(") (binary_expression "param_2 < iVar1" (identifier "param_2") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);\n    }" ({ "{") (do_statement "do {\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      } while (lVar2 != 0);" (do "do") (compound_statement "{\n        if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }\n      }" ({ "{") (if_statement "if (param_2 < *(int *)(lVar2 + 0x28)) {\n          lVar2 = *(long *)(lVar2 + 8);\n        }\n        else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" (if "if") (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x28))" (( "(") (binary_expression "param_2 < *(int *)(lVar2 + 0x28)" (identifier "param_2") (< "<") (pointer_expression "*(int *)(lVar2 + 0x28)" (* "*") (cast_expression "(int *)(lVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n          lVar2 = *(long *)(lVar2 + 8);\n        }" ({ "{") (expression_statement "lVar2 = *(long *)(lVar2 + 8);" (assignment_expression "lVar2 = *(long *)(lVar2 + 8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 8)" (* "*") (cast_expression "(long *)(lVar2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" (else "else") (compound_statement "{\n          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);\n          if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }\n          if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }\n        }" ({ "{") (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1)" (identifier "param_2") (= "=") (binary_expression "param_2 - (*(int *)(lVar2 + 0x28) + 1)" (identifier "param_2") (- "-") (parenthesized_expression "(*(int *)(lVar2 + 0x28) + 1)" (( "(") (binary_expression "*(int *)(lVar2 + 0x28) + 1" (pointer_expression "*(int *)(lVar2 + 0x28)" (* "*") (cast_expression "(int *)(lVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (param_2 < 0) {\n            return *(long *)(lVar2 + 0x38);\n          }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            return *(long *)(lVar2 + 0x38);\n          }" ({ "{") (return_statement "return *(long *)(lVar2 + 0x38);" (return "return") (pointer_expression "*(long *)(lVar2 + 0x38)" (* "*") (cast_expression "(long *)(lVar2 + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x38)" (( "(") (binary_expression "lVar2 + 0x38" (identifier "lVar2") (+ "+") (number_literal "0x38")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_2 < *(int *)(lVar2 + 0x2c)) {\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }\n          else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" (if "if") (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x2c))" (( "(") (binary_expression "param_2 < *(int *)(lVar2 + 0x2c)" (identifier "param_2") (< "<") (pointer_expression "*(int *)(lVar2 + 0x2c)" (* "*") (cast_expression "(int *)(lVar2 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x2c)" (( "(") (binary_expression "lVar2 + 0x2c" (identifier "lVar2") (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (compound_statement "{\n            lVar2 = *(long *)(lVar2 + 0x10);\n          }" ({ "{") (expression_statement "lVar2 = *(long *)(lVar2 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x10)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 0x10)" (* "*") (cast_expression "(long *)(lVar2 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x10)" (( "(") (binary_expression "lVar2 + 0x10" (identifier "lVar2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" (else "else") (compound_statement "{\n            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);\n            if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }\n            if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }\n          }" ({ "{") (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1)" (identifier "param_2") (= "=") (binary_expression "param_2 - (*(int *)(lVar2 + 0x2c) + 1)" (identifier "param_2") (- "-") (parenthesized_expression "(*(int *)(lVar2 + 0x2c) + 1)" (( "(") (binary_expression "*(int *)(lVar2 + 0x2c) + 1" (pointer_expression "*(int *)(lVar2 + 0x2c)" (* "*") (cast_expression "(int *)(lVar2 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x2c)" (( "(") (binary_expression "lVar2 + 0x2c" (identifier "lVar2") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (param_2 < 0) {\n              return *(long *)(lVar2 + 0x40);\n            }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              return *(long *)(lVar2 + 0x40);\n            }" ({ "{") (return_statement "return *(long *)(lVar2 + 0x40);" (return "return") (pointer_expression "*(long *)(lVar2 + 0x40)" (* "*") (cast_expression "(long *)(lVar2 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x40)" (( "(") (binary_expression "lVar2 + 0x40" (identifier "lVar2") (+ "+") (number_literal "0x40")) () ")")))) (; ";")) (} "}"))) (if_statement "if (param_2 < *(int *)(lVar2 + 0x30)) {\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }\n            else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" (if "if") (parenthesized_expression "(param_2 < *(int *)(lVar2 + 0x30))" (( "(") (binary_expression "param_2 < *(int *)(lVar2 + 0x30)" (identifier "param_2") (< "<") (pointer_expression "*(int *)(lVar2 + 0x30)" (* "*") (cast_expression "(int *)(lVar2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x30)" (( "(") (binary_expression "lVar2 + 0x30" (identifier "lVar2") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (compound_statement "{\n              lVar2 = *(long *)(lVar2 + 0x18);\n            }" ({ "{") (expression_statement "lVar2 = *(long *)(lVar2 + 0x18);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x18)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 0x18)" (* "*") (cast_expression "(long *)(lVar2 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x18)" (( "(") (binary_expression "lVar2 + 0x18" (identifier "lVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" (else "else") (compound_statement "{\n              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);\n              if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }\n              lVar2 = *(long *)(lVar2 + 0x20);\n            }" ({ "{") (expression_statement "param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);" (assignment_expression "param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1)" (identifier "param_2") (= "=") (binary_expression "param_2 - (*(int *)(lVar2 + 0x30) + 1)" (identifier "param_2") (- "-") (parenthesized_expression "(*(int *)(lVar2 + 0x30) + 1)" (( "(") (binary_expression "*(int *)(lVar2 + 0x30) + 1" (pointer_expression "*(int *)(lVar2 + 0x30)" (* "*") (cast_expression "(int *)(lVar2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x30)" (( "(") (binary_expression "lVar2 + 0x30" (identifier "lVar2") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (param_2 < 0) {\n                return *(long *)(lVar2 + 0x48);\n              }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n                return *(long *)(lVar2 + 0x48);\n              }" ({ "{") (return_statement "return *(long *)(lVar2 + 0x48);" (return "return") (pointer_expression "*(long *)(lVar2 + 0x48)" (* "*") (cast_expression "(long *)(lVar2 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x48)" (( "(") (binary_expression "lVar2 + 0x48" (identifier "lVar2") (+ "+") (number_literal "0x48")) () ")")))) (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(lVar2 + 0x20);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x20)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 0x20)" (* "*") (cast_expression "(long *)(lVar2 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")))) (} "}")))) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")) (else_clause "else {\n      lVar2 = 0;\n    }" (else "else") (compound_statement "{\n      lVar2 = 0;\n    }" ({ "{") (expression_statement "lVar2 = 0;" (assignment_expression "lVar2 = 0" (identifier "lVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}")))

void * function_1(type_1 *t,int var_1)

{
  int var_4;
  type_2 *var_2;
  
  var_2 = t->root;
  if ((var_1 < 0) || (var_2 == (type_2 *)0x0)) {
    var_2 = (type_3 *)0x0;
  }
  else {
    var_4 = var_3(var_2);
    if (var_1 < var_4) {
      do {
        if (var_1 < var_2->counts[0]) {
          var_2 = var_2->kids[0];
        }
        else {
          var_1 = var_1 - (var_2->counts[0] + 1);
          if (var_1 < 0) {
            return var_2->elems[0];
          }
          if (var_1 < var_2->counts[1]) {
            var_2 = var_2->kids[1];
          }
          else {
            var_1 = var_1 - (var_2->counts[1] + 1);
            if (var_1 < 0) {
              return var_2->elems[1];
            }
            if (var_1 < var_2->counts[2]) {
              var_2 = var_2->kids[2];
            }
            else {
              var_1 = var_1 - (var_2->counts[2] + 1);
              if (var_1 < 0) {
                return var_2->elems[2];
              }
              var_2 = var_2->kids[3];
            }
          }
        }
      } while (var_2 != (type_3 *)0x0);
    }
    else {
      var_2 = (type_3 *)0x0;
    }
  }
  return var_2;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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))))))) 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)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (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))))))) 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)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (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))))))) 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)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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)))))))) (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))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) (return_statement (identifier)))))

long MASKED(long *param_1,int param_2)

{
  int iVar1;
  long lVar2;
  
  lVar2 = *param_1;
  if ((param_2 < 0) || (lVar2 == 0)) {
    lVar2 = 0;
  }
  else {
    iVar1 = FUN_0012ef67(lVar2);
    if (param_2 < iVar1) {
      do {
        if (param_2 < *(int *)(lVar2 + 0x28)) {
          lVar2 = *(long *)(lVar2 + 8);
        }
        else {
          param_2 = param_2 - (*(int *)(lVar2 + 0x28) + 1);
          if (param_2 < 0) {
            return *(long *)(lVar2 + 0x38);
          }
          if (param_2 < *(int *)(lVar2 + 0x2c)) {
            lVar2 = *(long *)(lVar2 + 0x10);
          }
          else {
            param_2 = param_2 - (*(int *)(lVar2 + 0x2c) + 1);
            if (param_2 < 0) {
              return *(long *)(lVar2 + 0x40);
            }
            if (param_2 < *(int *)(lVar2 + 0x30)) {
              lVar2 = *(long *)(lVar2 + 0x18);
            }
            else {
              param_2 = param_2 - (*(int *)(lVar2 + 0x30) + 1);
              if (param_2 < 0) {
                return *(long *)(lVar2 + 0x48);
              }
              lVar2 = *(long *)(lVar2 + 0x20);
            }
          }
        }
      } while (lVar2 != 0);
    }
    else {
      lVar2 = 0;
    }
  }
  return lVar2;
}

