
int fts5CInstIterNext(CInstIter *pIter)

{
  int iVar1;
  int iVar2;
  int iVar3;
  long in_FS_OFFSET;
  int ip;
  int ic;
  int io;
  long local_40;
  
  iVar2 = pIter->iInst;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  pIter->iStart = -1;
  pIter->iEnd = -1;
  if (iVar2 < pIter->nInst) {
    do {
      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);
      if (iVar2 != 0) goto LAB_00114bf9;
      if (pIter->iCol == ic) {
        iVar1 = io + -1;
        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);
        iVar3 = iVar3 + iVar1;
        if (pIter->iStart < 0) {
          pIter->iEnd = iVar3;
          pIter->iStart = io;
        }
        else {
          if (pIter->iEnd < io) goto LAB_00114bf9;
          if (pIter->iEnd < iVar3) {
            pIter->iEnd = iVar3;
          }
        }
      }
      iVar2 = pIter->iInst + 1;
      pIter->iInst = iVar2;
    } while (iVar2 < pIter->nInst);
  }
  iVar2 = 0;
LAB_00114bf9:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



int FUN_00114ba0(long *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  long in_FS_OFFSET;
  undefined4 local_4c;
  int local_48;
  int local_44;
  long local_40;
  
  iVar2 = *(int *)((long)param_1 + 0x14);
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;
  if (iVar2 < (int)param_1[3]) {
    do {
      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);
      if (iVar2 != 0) goto LAB_00114bf9;
      if ((int)param_1[2] == local_48) {
        iVar1 = local_44 + -1;
        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);
        iVar3 = iVar3 + iVar1;
        if (*(int *)((long)param_1 + 0x1c) < 0) {
          *(int *)(param_1 + 4) = iVar3;
          *(int *)((long)param_1 + 0x1c) = local_44;
        }
        else {
          if ((int)param_1[4] < local_44) goto LAB_00114bf9;
          if ((int)param_1[4] < iVar3) {
            *(int *)(param_1 + 4) = iVar3;
          }
        }
      }
      iVar2 = *(int *)((long)param_1 + 0x14) + 1;
      *(int *)((long)param_1 + 0x14) = iVar2;
    } while (iVar2 < (int)param_1[3]);
  }
  iVar2 = 0;
LAB_00114bf9:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x28
MOV ESI,dword ptr [RDI + 0x14]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
LEA R14,[RSP + 0x14]
MOV qword ptr [RDI + 0x1c],-0x1
LEA R13,[RSP + 0x10]
LEA R12,[RSP + 0xc]
CMP dword ptr [RBX + 0x18],ESI
JLE 0x00114c37
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RBX + 0x8]
MOV R8,R14
MOV RCX,R13
MOV RDX,R12
CALL qword ptr [RAX + 0x48]
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00114c20
MOV RCX,qword ptr [RSP + 0x18]
XOR RCX,qword ptr FS:[0x28]
MOV EAX,EBP
JNZ 0x00114c84
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EAX,dword ptr [RSP + 0x10]
CMP dword ptr [RBX + 0x10],EAX
JZ 0x00114c40
MOV EAX,dword ptr [RBX + 0x14]
LEA ESI,[RAX + 0x1]
MOV dword ptr [RBX + 0x14],ESI
CMP dword ptr [RBX + 0x18],ESI
JG 0x00114be0
XOR EBP,EBP
JMP 0x00114bf9
MOV EAX,dword ptr [RSP + 0x14]
MOV RDI,qword ptr [RBX + 0x8]
MOV ESI,dword ptr [RSP + 0xc]
LEA R15D,[RAX + -0x1]
MOV RAX,qword ptr [RBX]
CALL qword ptr [RAX + 0x38]
MOV EDX,dword ptr [RBX + 0x1c]
ADD EAX,R15D
TEST EDX,EDX
JS 0x00114c78
MOV EDX,dword ptr [RBX + 0x20]
CMP EDX,dword ptr [RSP + 0x14]
JL 0x00114bf9
CMP EDX,EAX
JGE 0x00114c29
MOV dword ptr [RBX + 0x20],EAX
JMP 0x00114c29
MOV EDX,dword ptr [RSP + 0x14]
MOV dword ptr [RBX + 0x20],EAX
MOV dword ptr [RBX + 0x1c],EDX
JMP 0x00114c29
CALL 0x0010a140
(translation_unit "int FUN_00114ba0(long *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int FUN_00114ba0(long *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00114ba0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x14)" identifier = (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)((long)param_1 + 0x1c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }" if (parenthesized_expression "(iVar2 < (int)param_1[3])" ( (binary_expression "iVar2 < (int)param_1[3]" identifier < (cast_expression "(int)param_1[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }" { (do_statement "do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);" do (compound_statement "{\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44)" identifier = (call_expression "(**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],iVar2,&local_4c,&local_48,&local_44)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , (pointer_expression "&local_4c" & identifier) , (pointer_expression "&local_48" & identifier) , (pointer_expression "&local_44" & identifier) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_00114bf9;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00114bf9;" goto statement_identifier ;)) (if_statement "if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }" if (parenthesized_expression "((int)param_1[2] == local_48)" ( (binary_expression "(int)param_1[2] == local_48" (cast_expression "(int)param_1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }" { (expression_statement "iVar1 = local_44 + -1;" (assignment_expression "iVar1 = local_44 + -1" identifier = (binary_expression "local_44 + -1" identifier + number_literal)) ;) (expression_statement "iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);" (assignment_expression "iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c)" identifier = (call_expression "(**(code **)(*param_1 + 0x38))(param_1[1],local_4c)" (parenthesized_expression "(**(code **)(*param_1 + 0x38))" ( (pointer_expression "**(code **)(*param_1 + 0x38)" * (pointer_expression "*(code **)(*param_1 + 0x38)" * (cast_expression "(code **)(*param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],local_4c)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + iVar1;" (assignment_expression "iVar3 = iVar3 + iVar1" identifier = (binary_expression "iVar3 + iVar1" identifier + identifier)) ;) (if_statement "if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x1c) < 0)" ( (binary_expression "*(int *)((long)param_1 + 0x1c) < 0" (pointer_expression "*(int *)((long)param_1 + 0x1c)" * (cast_expression "(int *)((long)param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }" { (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((long)param_1 + 0x1c) = local_44;" (assignment_expression "*(int *)((long)param_1 + 0x1c) = local_44" (pointer_expression "*(int *)((long)param_1 + 0x1c)" * (cast_expression "(int *)((long)param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" else (compound_statement "{\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" { (if_statement "if ((int)param_1[4] < local_44) goto LAB_00114bf9;" if (parenthesized_expression "((int)param_1[4] < local_44)" ( (binary_expression "(int)param_1[4] < local_44" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < identifier) )) (goto_statement "goto LAB_00114bf9;" goto statement_identifier ;)) (if_statement "if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }" if (parenthesized_expression "((int)param_1[4] < iVar3)" ( (binary_expression "(int)param_1[4] < iVar3" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n            *(int *)(param_1 + 4) = iVar3;\n          }" { (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) }))) })) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x14) + 1;" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x14) + 1" identifier = (binary_expression "*(int *)((long)param_1 + 0x14) + 1" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)((long)param_1 + 0x14) = iVar2" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar2 < (int)param_1[3])" ( (binary_expression "iVar2 < (int)param_1[3]" identifier < (cast_expression "(int)param_1[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int fts5CInstIterNext(CInstIter *pIter)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  int ip;\n  int ic;\n  int io;\n  long local_40;\n  \n  iVar2 = pIter->iInst;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  pIter->iStart = -1;\n  pIter->iEnd = -1;\n  if (iVar2 < pIter->nInst) {\n    do {\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    } while (iVar2 < pIter->nInst);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int fts5CInstIterNext(CInstIter *pIter)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  int ip;\n  int ic;\n  int io;\n  long local_40;\n  \n  iVar2 = pIter->iInst;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  pIter->iStart = -1;\n  pIter->iEnd = -1;\n  if (iVar2 < pIter->nInst) {\n    do {\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    } while (iVar2 < pIter->nInst);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "fts5CInstIterNext(CInstIter *pIter)" identifier (parameter_list "(CInstIter *pIter)" ( (parameter_declaration "CInstIter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  int ip;\n  int ic;\n  int io;\n  long local_40;\n  \n  iVar2 = pIter->iInst;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  pIter->iStart = -1;\n  pIter->iEnd = -1;\n  if (iVar2 < pIter->nInst) {\n    do {\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    } while (iVar2 < pIter->nInst);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int ip;" primitive_type identifier ;) (declaration "int ic;" primitive_type identifier ;) (declaration "int io;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar2 = pIter->iInst;" (assignment_expression "iVar2 = pIter->iInst" identifier = (field_expression "pIter->iInst" identifier -> field_identifier)) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "pIter->iStart = -1;" (assignment_expression "pIter->iStart = -1" (field_expression "pIter->iStart" identifier -> field_identifier) = number_literal) ;) (expression_statement "pIter->iEnd = -1;" (assignment_expression "pIter->iEnd = -1" (field_expression "pIter->iEnd" identifier -> field_identifier) = number_literal) ;) (if_statement "if (iVar2 < pIter->nInst) {\n    do {\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    } while (iVar2 < pIter->nInst);\n  }" if (parenthesized_expression "(iVar2 < pIter->nInst)" ( (binary_expression "iVar2 < pIter->nInst" identifier < (field_expression "pIter->nInst" identifier -> field_identifier)) )) (compound_statement "{\n    do {\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    } while (iVar2 < pIter->nInst);\n  }" { (do_statement "do {\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    } while (iVar2 < pIter->nInst);" do (compound_statement "{\n      iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar2 = pIter->iInst + 1;\n      pIter->iInst = iVar2;\n    }" { (expression_statement "iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io);" (assignment_expression "iVar2 = (*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io)" identifier = (call_expression "(*pIter->pApi->xInst)(pIter->pFts,iVar2,&ip,&ic,&io)" (parenthesized_expression "(*pIter->pApi->xInst)" ( (pointer_expression "*pIter->pApi->xInst" * (field_expression "pIter->pApi->xInst" (field_expression "pIter->pApi" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pIter->pFts,iVar2,&ip,&ic,&io)" ( (field_expression "pIter->pFts" identifier -> field_identifier) , identifier , (pointer_expression "&ip" & identifier) , (pointer_expression "&ic" & identifier) , (pointer_expression "&io" & identifier) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_00114bf9;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00114bf9;" goto statement_identifier ;)) (if_statement "if (pIter->iCol == ic) {\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(pIter->iCol == ic)" ( (binary_expression "pIter->iCol == ic" (field_expression "pIter->iCol" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        iVar1 = io + -1;\n        iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar1;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }" { (expression_statement "iVar1 = io + -1;" (assignment_expression "iVar1 = io + -1" identifier = (binary_expression "io + -1" identifier + number_literal)) ;) (expression_statement "iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);" (assignment_expression "iVar3 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip)" identifier = (call_expression "(*pIter->pApi->xPhraseSize)(pIter->pFts,ip)" (parenthesized_expression "(*pIter->pApi->xPhraseSize)" ( (pointer_expression "*pIter->pApi->xPhraseSize" * (field_expression "pIter->pApi->xPhraseSize" (field_expression "pIter->pApi" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pIter->pFts,ip)" ( (field_expression "pIter->pFts" identifier -> field_identifier) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + iVar1;" (assignment_expression "iVar3 = iVar3 + iVar1" identifier = (binary_expression "iVar3 + iVar1" identifier + identifier)) ;) (if_statement "if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }" if (parenthesized_expression "(pIter->iStart < 0)" ( (binary_expression "pIter->iStart < 0" (field_expression "pIter->iStart" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }" { (expression_statement "pIter->iEnd = iVar3;" (assignment_expression "pIter->iEnd = iVar3" (field_expression "pIter->iEnd" identifier -> field_identifier) = identifier) ;) (expression_statement "pIter->iStart = io;" (assignment_expression "pIter->iStart = io" (field_expression "pIter->iStart" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }" else (compound_statement "{\n          if (pIter->iEnd < io) goto LAB_00114bf9;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }" { (if_statement "if (pIter->iEnd < io) goto LAB_00114bf9;" if (parenthesized_expression "(pIter->iEnd < io)" ( (binary_expression "pIter->iEnd < io" (field_expression "pIter->iEnd" identifier -> field_identifier) < identifier) )) (goto_statement "goto LAB_00114bf9;" goto statement_identifier ;)) (if_statement "if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }" if (parenthesized_expression "(pIter->iEnd < iVar3)" ( (binary_expression "pIter->iEnd < iVar3" (field_expression "pIter->iEnd" identifier -> field_identifier) < identifier) )) (compound_statement "{\n            pIter->iEnd = iVar3;\n          }" { (expression_statement "pIter->iEnd = iVar3;" (assignment_expression "pIter->iEnd = iVar3" (field_expression "pIter->iEnd" identifier -> field_identifier) = identifier) ;) })) }))) })) (expression_statement "iVar2 = pIter->iInst + 1;" (assignment_expression "iVar2 = pIter->iInst + 1" identifier = (binary_expression "pIter->iInst + 1" (field_expression "pIter->iInst" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pIter->iInst = iVar2;" (assignment_expression "pIter->iInst = iVar2" (field_expression "pIter->iInst" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(iVar2 < pIter->nInst)" ( (binary_expression "iVar2 < pIter->nInst" identifier < (field_expression "pIter->nInst" identifier -> field_identifier)) )) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00114ba0(long *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "int FUN_00114ba0(long *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00114ba0(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x14)" identifier = (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)((long)param_1 + 0x1c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x1c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }" if (parenthesized_expression "(iVar2 < (int)param_1[3])" ( (binary_expression "iVar2 < (int)param_1[3]" identifier < (cast_expression "(int)param_1[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }" { (do_statement "do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);" do (compound_statement "{\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    }" { (expression_statement "iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44)" identifier = (call_expression "(**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" ( (pointer_expression "**(code **)(*param_1 + 0x48)" * (pointer_expression "*(code **)(*param_1 + 0x48)" * (cast_expression "(code **)(*param_1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x48)" ( (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],iVar2,&local_4c,&local_48,&local_44)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , (pointer_expression "&local_4c" & identifier) , (pointer_expression "&local_48" & identifier) , (pointer_expression "&local_44" & identifier) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_00114bf9;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00114bf9;" goto statement_identifier ;)) (if_statement "if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }" if (parenthesized_expression "((int)param_1[2] == local_48)" ( (binary_expression "(int)param_1[2] == local_48" (cast_expression "(int)param_1[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }" { (expression_statement "iVar1 = local_44 + -1;" (assignment_expression "iVar1 = local_44 + -1" identifier = (binary_expression "local_44 + -1" identifier + number_literal)) ;) (expression_statement "iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);" (assignment_expression "iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c)" identifier = (call_expression "(**(code **)(*param_1 + 0x38))(param_1[1],local_4c)" (parenthesized_expression "(**(code **)(*param_1 + 0x38))" ( (pointer_expression "**(code **)(*param_1 + 0x38)" * (pointer_expression "*(code **)(*param_1 + 0x38)" * (cast_expression "(code **)(*param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],local_4c)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + iVar1;" (assignment_expression "iVar3 = iVar3 + iVar1" identifier = (binary_expression "iVar3 + iVar1" identifier + identifier)) ;) (if_statement "if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" if (parenthesized_expression "(*(int *)((long)param_1 + 0x1c) < 0)" ( (binary_expression "*(int *)((long)param_1 + 0x1c) < 0" (pointer_expression "*(int *)((long)param_1 + 0x1c)" * (cast_expression "(int *)((long)param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) < number_literal) )) (compound_statement "{\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }" { (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)((long)param_1 + 0x1c) = local_44;" (assignment_expression "*(int *)((long)param_1 + 0x1c) = local_44" (pointer_expression "*(int *)((long)param_1 + 0x1c)" * (cast_expression "(int *)((long)param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1c)" ( (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" else (compound_statement "{\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" { (if_statement "if ((int)param_1[4] < local_44) goto LAB_00114bf9;" if (parenthesized_expression "((int)param_1[4] < local_44)" ( (binary_expression "(int)param_1[4] < local_44" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < identifier) )) (goto_statement "goto LAB_00114bf9;" goto statement_identifier ;)) (if_statement "if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }" if (parenthesized_expression "((int)param_1[4] < iVar3)" ( (binary_expression "(int)param_1[4] < iVar3" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n            *(int *)(param_1 + 4) = iVar3;\n          }" { (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) })) }))) })) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x14) + 1;" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x14) + 1" identifier = (binary_expression "*(int *)((long)param_1 + 0x14) + 1" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)((long)param_1 + 0x14) = iVar2" (pointer_expression "*(int *)((long)param_1 + 0x14)" * (cast_expression "(int *)((long)param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x14)" ( (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(iVar2 < (int)param_1[3])" ( (binary_expression "iVar2 < (int)param_1[3]" identifier < (cast_expression "(int)param_1[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00114ba0(long *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "int") (function_declarator "FUN_00114ba0(long *param_1)" (identifier "FUN_00114ba0") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  long in_FS_OFFSET;\n  undefined4 local_4c;\n  int local_48;\n  int local_44;\n  long local_40;\n  \n  iVar2 = *(int *)((long)param_1 + 0x14);\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;\n  if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }\n  iVar2 = 0;\nLAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined4 local_4c;" (type_identifier "undefined4") (identifier "local_4c") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)((long)param_1 + 0x14)" (* "*") (cast_expression "(int *)((long)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;" (assignment_expression "*(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff" (pointer_expression "*(undefined8 *)((long)param_1 + 0x1c)" (* "*") (cast_expression "(undefined8 *)((long)param_1 + 0x1c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1c)" (( "(") (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (if_statement "if (iVar2 < (int)param_1[3]) {\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }" (if "if") (parenthesized_expression "(iVar2 < (int)param_1[3])" (( "(") (binary_expression "iVar2 < (int)param_1[3]" (identifier "iVar2") (< "<") (cast_expression "(int)param_1[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);\n  }" ({ "{") (do_statement "do {\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    } while (iVar2 < (int)param_1[3]);" (do "do") (compound_statement "{\n      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);\n      if (iVar2 != 0) goto LAB_00114bf9;\n      if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }\n      iVar2 = *(int *)((long)param_1 + 0x14) + 1;\n      *(int *)((long)param_1 + 0x14) = iVar2;\n    }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44)" (parenthesized_expression "(**(code **)(*param_1 + 0x48))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x48)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x48)" (* "*") (cast_expression "(code **)(*param_1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x48)" (( "(") (binary_expression "*param_1 + 0x48" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(param_1[1],iVar2,&local_4c,&local_48,&local_44)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "iVar2") (, ",") (pointer_expression "&local_4c" (& "&") (identifier "local_4c")) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (pointer_expression "&local_44" (& "&") (identifier "local_44")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_00114bf9;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00114bf9;" (goto "goto") (statement_identifier "LAB_00114bf9") (; ";"))) (if_statement "if ((int)param_1[2] == local_48) {\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }" (if "if") (parenthesized_expression "((int)param_1[2] == local_48)" (( "(") (binary_expression "(int)param_1[2] == local_48" (cast_expression "(int)param_1[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (== "==") (identifier "local_48")) () ")")) (compound_statement "{\n        iVar1 = local_44 + -1;\n        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);\n        iVar3 = iVar3 + iVar1;\n        if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar1 = local_44 + -1;" (assignment_expression "iVar1 = local_44 + -1" (identifier "iVar1") (= "=") (binary_expression "local_44 + -1" (identifier "local_44") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);" (assignment_expression "iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c)" (identifier "iVar3") (= "=") (call_expression "(**(code **)(*param_1 + 0x38))(param_1[1],local_4c)" (parenthesized_expression "(**(code **)(*param_1 + 0x38))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x38)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x38)" (* "*") (cast_expression "(code **)(*param_1 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x38)" (( "(") (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(param_1[1],local_4c)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "local_4c") () ")")))) (; ";")) (expression_statement "iVar3 = iVar3 + iVar1;" (assignment_expression "iVar3 = iVar3 + iVar1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + iVar1" (identifier "iVar3") (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (*(int *)((long)param_1 + 0x1c) < 0) {\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }\n        else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" (if "if") (parenthesized_expression "(*(int *)((long)param_1 + 0x1c) < 0)" (( "(") (binary_expression "*(int *)((long)param_1 + 0x1c) < 0" (pointer_expression "*(int *)((long)param_1 + 0x1c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1c)" (( "(") (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          *(int *)(param_1 + 4) = iVar3;\n          *(int *)((long)param_1 + 0x1c) = local_44;\n        }" ({ "{") (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)((long)param_1 + 0x1c) = local_44;" (assignment_expression "*(int *)((long)param_1 + 0x1c) = local_44" (pointer_expression "*(int *)((long)param_1 + 0x1c)" (* "*") (cast_expression "(int *)((long)param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1c)" (( "(") (binary_expression "(long)param_1 + 0x1c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "local_44")) (; ";")) (} "}")) (else_clause "else {\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" (else "else") (compound_statement "{\n          if ((int)param_1[4] < local_44) goto LAB_00114bf9;\n          if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }\n        }" ({ "{") (if_statement "if ((int)param_1[4] < local_44) goto LAB_00114bf9;" (if "if") (parenthesized_expression "((int)param_1[4] < local_44)" (( "(") (binary_expression "(int)param_1[4] < local_44" (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (< "<") (identifier "local_44")) () ")")) (goto_statement "goto LAB_00114bf9;" (goto "goto") (statement_identifier "LAB_00114bf9") (; ";"))) (if_statement "if ((int)param_1[4] < iVar3) {\n            *(int *)(param_1 + 4) = iVar3;\n          }" (if "if") (parenthesized_expression "((int)param_1[4] < iVar3)" (( "(") (binary_expression "(int)param_1[4] < iVar3" (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n            *(int *)(param_1 + 4) = iVar3;\n          }" ({ "{") (expression_statement "*(int *)(param_1 + 4) = iVar3;" (assignment_expression "*(int *)(param_1 + 4) = iVar3" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "iVar2 = *(int *)((long)param_1 + 0x14) + 1;" (assignment_expression "iVar2 = *(int *)((long)param_1 + 0x14) + 1" (identifier "iVar2") (= "=") (binary_expression "*(int *)((long)param_1 + 0x14) + 1" (pointer_expression "*(int *)((long)param_1 + 0x14)" (* "*") (cast_expression "(int *)((long)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)((long)param_1 + 0x14) = iVar2;" (assignment_expression "*(int *)((long)param_1 + 0x14) = iVar2" (pointer_expression "*(int *)((long)param_1 + 0x14)" (* "*") (cast_expression "(int *)((long)param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x14)" (( "(") (binary_expression "(long)param_1 + 0x14" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 < (int)param_1[3])" (( "(") (binary_expression "iVar2 < (int)param_1[3]" (identifier "iVar2") (< "<") (cast_expression "(int)param_1[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00114bf9:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" (statement_identifier "LAB_00114bf9") (: ":") (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return iVar2;\n  }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *pIter)

{
  int var_6;
  int var_2;
  int var_5;
  long var_1;
  int ip;
  int var_3;
  int var_4;
  long var_7;
  
  var_2 = pIter->iInst;
  var_7 = *(long *)(var_1 + 0x28);
  pIter->iStart = -1;
  pIter->iEnd = -1;
  if (var_2 < pIter->nInst) {
    do {
      var_2 = (*pIter->pApi->xInst)(pIter->pFts,var_2,&ip,&var_3,&var_4);
      if (var_2 != 0) goto LAB_00114bf9;
      if (pIter->iCol == var_3) {
        var_6 = var_4 + -1;
        var_5 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);
        var_5 = var_5 + var_6;
        if (pIter->iStart < 0) {
          pIter->iEnd = var_5;
          pIter->iStart = var_4;
        }
        else {
          if (pIter->iEnd < var_4) goto LAB_00114bf9;
          if (pIter->iEnd < var_5) {
            pIter->iEnd = var_5;
          }
        }
      }
      var_2 = pIter->iInst + 1;
      pIter->iInst = var_2;
    } while (var_2 < pIter->nInst);
  }
  var_2 = 0;
LAB_00114bf9:
  if (var_7 == *(long *)(var_1 + 0x28)) {
    return var_2;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


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

int MASKED(long *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  long in_FS_OFFSET;
  undefined4 local_4c;
  int local_48;
  int local_44;
  long local_40;
  
  iVar2 = *(int *)((long)param_1 + 0x14);
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  *(undefined8 *)((long)param_1 + 0x1c) = 0xffffffffffffffff;
  if (iVar2 < (int)param_1[3]) {
    do {
      iVar2 = (**(code **)(*param_1 + 0x48))(param_1[1],iVar2,&local_4c,&local_48,&local_44);
      if (iVar2 != 0) goto LAB_00114bf9;
      if ((int)param_1[2] == local_48) {
        iVar1 = local_44 + -1;
        iVar3 = (**(code **)(*param_1 + 0x38))(param_1[1],local_4c);
        iVar3 = iVar3 + iVar1;
        if (*(int *)((long)param_1 + 0x1c) < 0) {
          *(int *)(param_1 + 4) = iVar3;
          *(int *)((long)param_1 + 0x1c) = local_44;
        }
        else {
          if ((int)param_1[4] < local_44) goto LAB_00114bf9;
          if ((int)param_1[4] < iVar3) {
            *(int *)(param_1 + 4) = iVar3;
          }
        }
      }
      iVar2 = *(int *)((long)param_1 + 0x14) + 1;
      *(int *)((long)param_1 + 0x14) = iVar2;
    } while (iVar2 < (int)param_1[3]);
  }
  iVar2 = 0;
LAB_00114bf9:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

