
int __regparm3 fts5CInstIterNext(CInstIter *pIter)

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



int __regparm3 FUN_0003d010(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  undefined4 local_2c;
  int local_28;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  param_1[5] = -1;
  iVar1 = param_1[3];
  param_1[6] = -1;
  if (iVar1 < param_1[4]) {
    do {
      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);
      if (iVar1 != 0) goto LAB_0003d064;
      if (param_1[2] == local_28) {
        iVar3 = local_24 + -1;
        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);
        iVar3 = iVar3 + iVar2;
        if (param_1[5] < 0) {
          param_1[6] = iVar3;
          param_1[5] = local_24;
        }
        else {
          if (param_1[6] < local_24) goto LAB_0003d064;
          if (param_1[6] < iVar3) {
            param_1[6] = iVar3;
          }
        }
      }
      iVar1 = param_1[3] + 1;
      param_1[3] = iVar1;
    } while (iVar1 < param_1[4]);
  }
  iVar1 = 0;
LAB_0003d064:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return iVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
LEA EDI,[ESP + 0x18]
MOV dword ptr [EBX + 0x14],0xffffffff
MOV EAX,dword ptr [EBX + 0xc]
MOV dword ptr [EBX + 0x18],0xffffffff
LEA ESI,[ESP + 0x14]
CMP dword ptr [EBX + 0x10],EAX
JLE 0x0003d097
LEA ESI,[ESI]
NOP
SUB ESP,0xc
MOV EDX,dword ptr [EBX]
PUSH EDI
PUSH ESI
LEA ECX,[ESP + 0x24]
PUSH ECX
PUSH EAX
PUSH dword ptr [EBX + 0x4]
CALL dword ptr [EDX + 0x24]
MOV EDX,EAX
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0003d080
MOV ESI,dword ptr [ESP + 0x1c]
XOR ESI,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x0003d0ec
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x14]
CMP dword ptr [EBX + 0x8],EAX
JZ 0x0003d0a0
MOV EAX,dword ptr [EBX + 0xc]
ADD EAX,0x1
MOV dword ptr [EBX + 0xc],EAX
CMP dword ptr [EBX + 0x10],EAX
JG 0x0003d048
XOR EDX,EDX
JMP 0x0003d064
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
PUSH dword ptr [ESP + 0x18]
LEA EBP,[EAX + -0x1]
MOV EAX,dword ptr [EBX]
PUSH dword ptr [EBX + 0x4]
CALL dword ptr [EAX + 0x1c]
MOV EDX,dword ptr [ESP + 0x1c]
ADD EBP,EAX
MOV EAX,dword ptr [EBX + 0x14]
ADD ESP,0x10
TEST EAX,EAX
JS 0x0003d0e0
MOV EAX,dword ptr [EBX + 0x18]
CMP EAX,dword ptr [ESP + 0x18]
JL 0x0003d064
CMP EAX,EBP
JGE 0x0003d089
MOV dword ptr [EBX + 0x18],EBP
JMP 0x0003d089
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [EBX + 0x18],EBP
MOV dword ptr [EBX + 0x14],EAX
JMP 0x0003d089
CALL 0x00116110
(translation_unit "int __regparm3 FUN_0003d010(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_0003d010(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d010(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = param_1[3];" (assignment_expression "iVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[6] = -1;" (assignment_expression "param_1[6] = -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }" if (parenthesized_expression "(iVar1 < param_1[4])" ( (binary_expression "iVar1 < param_1[4]" identifier < (subscript_expression "param_1[4]" identifier [ number_literal ])) )) (compound_statement "{\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }" { (do_statement "do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);" do (compound_statement "{\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    }" { (expression_statement "iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24)" identifier = (call_expression "(**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],iVar1,&local_2c,&local_28,&local_24)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0003d064;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003d064;" goto statement_identifier ;)) (if_statement "if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(param_1[2] == local_28)" ( (binary_expression "param_1[2] == local_28" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }" { (expression_statement "iVar3 = local_24 + -1;" (assignment_expression "iVar3 = local_24 + -1" identifier = (binary_expression "local_24 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c)" identifier = (call_expression "(**(code **)(*param_1 + 0x1c))(param_1[1],local_2c)" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" ( (pointer_expression "**(code **)(*param_1 + 0x1c)" * (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],local_2c)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + iVar2;" (assignment_expression "iVar3 = iVar3 + iVar2" identifier = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (if_statement "if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" if (parenthesized_expression "(param_1[5] < 0)" ( (binary_expression "param_1[5] < 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }" { (expression_statement "param_1[6] = iVar3;" (assignment_expression "param_1[6] = iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = local_24;" (assignment_expression "param_1[5] = local_24" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" else (compound_statement "{\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" { (if_statement "if (param_1[6] < local_24) goto LAB_0003d064;" if (parenthesized_expression "(param_1[6] < local_24)" ( (binary_expression "param_1[6] < local_24" (subscript_expression "param_1[6]" identifier [ number_literal ]) < identifier) )) (goto_statement "goto LAB_0003d064;" goto statement_identifier ;)) (if_statement "if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }" if (parenthesized_expression "(param_1[6] < iVar3)" ( (binary_expression "param_1[6] < iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n            param_1[6] = iVar3;\n          }" { (expression_statement "param_1[6] = iVar3;" (assignment_expression "param_1[6] = iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) })) }))) })) (expression_statement "iVar1 = param_1[3] + 1;" (assignment_expression "iVar1 = param_1[3] + 1" identifier = (binary_expression "param_1[3] + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(iVar1 < param_1[4])" ( (binary_expression "iVar1 < param_1[4]" identifier < (subscript_expression "param_1[4]" identifier [ number_literal ])) )) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00116110();\n  }" { comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm3 fts5CInstIterNext(CInstIter *pIter)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int ip;\n  int ic;\n  int io;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIter->iStart = -1;\n  iVar1 = pIter->iInst;\n  pIter->iEnd = -1;\n  if (iVar1 < pIter->nInst) {\n    do {\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    } while (iVar1 < pIter->nInst);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 fts5CInstIterNext(CInstIter *pIter)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  int ip;\n  int ic;\n  int io;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIter->iStart = -1;\n  iVar1 = pIter->iInst;\n  pIter->iEnd = -1;\n  if (iVar1 < pIter->nInst) {\n    do {\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    } while (iVar1 < pIter->nInst);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (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  int in_GS_OFFSET;\n  int ip;\n  int ic;\n  int io;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pIter->iStart = -1;\n  iVar1 = pIter->iInst;\n  pIter->iEnd = -1;\n  if (iVar1 < pIter->nInst) {\n    do {\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    } while (iVar1 < pIter->nInst);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int ip;" primitive_type identifier ;) (declaration "int ic;" primitive_type identifier ;) (declaration "int io;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pIter->iStart = -1;" (assignment_expression "pIter->iStart = -1" (field_expression "pIter->iStart" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar1 = pIter->iInst;" (assignment_expression "iVar1 = pIter->iInst" identifier = (field_expression "pIter->iInst" identifier -> field_identifier)) ;) (expression_statement "pIter->iEnd = -1;" (assignment_expression "pIter->iEnd = -1" (field_expression "pIter->iEnd" identifier -> field_identifier) = number_literal) ;) (if_statement "if (iVar1 < pIter->nInst) {\n    do {\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    } while (iVar1 < pIter->nInst);\n  }" if (parenthesized_expression "(iVar1 < pIter->nInst)" ( (binary_expression "iVar1 < pIter->nInst" identifier < (field_expression "pIter->nInst" identifier -> field_identifier)) )) (compound_statement "{\n    do {\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    } while (iVar1 < pIter->nInst);\n  }" { (do_statement "do {\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    } while (iVar1 < pIter->nInst);" do (compound_statement "{\n      iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }\n      iVar1 = pIter->iInst + 1;\n      pIter->iInst = iVar1;\n    }" { (expression_statement "iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io);" (assignment_expression "iVar1 = (*pIter->pApi->xInst)(pIter->pFts,iVar1,&ip,&ic,&io)" identifier = (call_expression "(*pIter->pApi->xInst)(pIter->pFts,iVar1,&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,iVar1,&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 (iVar1 != 0) goto LAB_0003d064;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003d064;" goto statement_identifier ;)) (if_statement "if (pIter->iCol == ic) {\n        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\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        iVar3 = io + -1;\n        iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);\n        iVar3 = iVar3 + iVar2;\n        if (pIter->iStart < 0) {\n          pIter->iEnd = iVar3;\n          pIter->iStart = io;\n        }\n        else {\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }\n      }" { (expression_statement "iVar3 = io + -1;" (assignment_expression "iVar3 = io + -1" identifier = (binary_expression "io + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (*pIter->pApi->xPhraseSize)(pIter->pFts,ip);" (assignment_expression "iVar2 = (*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 + iVar2;" (assignment_expression "iVar3 = iVar3 + iVar2" identifier = (binary_expression "iVar3 + iVar2" 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_0003d064;\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_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }" else (compound_statement "{\n          if (pIter->iEnd < io) goto LAB_0003d064;\n          if (pIter->iEnd < iVar3) {\n            pIter->iEnd = iVar3;\n          }\n        }" { (if_statement "if (pIter->iEnd < io) goto LAB_0003d064;" if (parenthesized_expression "(pIter->iEnd < io)" ( (binary_expression "pIter->iEnd < io" (field_expression "pIter->iEnd" identifier -> field_identifier) < identifier) )) (goto_statement "goto LAB_0003d064;" 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 "iVar1 = pIter->iInst + 1;" (assignment_expression "iVar1 = pIter->iInst + 1" identifier = (binary_expression "pIter->iInst + 1" (field_expression "pIter->iInst" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pIter->iInst = iVar1;" (assignment_expression "pIter->iInst = iVar1" (field_expression "pIter->iInst" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(iVar1 < pIter->nInst)" ( (binary_expression "iVar1 < pIter->nInst" identifier < (field_expression "pIter->nInst" identifier -> field_identifier)) )) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0003d010(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_0003d010(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003d010(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = param_1[3];" (assignment_expression "iVar1 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[6] = -1;" (assignment_expression "param_1[6] = -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }" if (parenthesized_expression "(iVar1 < param_1[4])" ( (binary_expression "iVar1 < param_1[4]" identifier < (subscript_expression "param_1[4]" identifier [ number_literal ])) )) (compound_statement "{\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }" { (do_statement "do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);" do (compound_statement "{\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    }" { (expression_statement "iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24)" identifier = (call_expression "(**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],iVar1,&local_2c,&local_28,&local_24)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier , (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0003d064;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0003d064;" goto statement_identifier ;)) (if_statement "if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }" if (parenthesized_expression "(param_1[2] == local_28)" ( (binary_expression "param_1[2] == local_28" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }" { (expression_statement "iVar3 = local_24 + -1;" (assignment_expression "iVar3 = local_24 + -1" identifier = (binary_expression "local_24 + -1" identifier + number_literal)) ;) (expression_statement "iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c)" identifier = (call_expression "(**(code **)(*param_1 + 0x1c))(param_1[1],local_2c)" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" ( (pointer_expression "**(code **)(*param_1 + 0x1c)" * (pointer_expression "*(code **)(*param_1 + 0x1c)" * (cast_expression "(code **)(*param_1 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x1c)" ( (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1[1],local_2c)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar3 = iVar3 + iVar2;" (assignment_expression "iVar3 = iVar3 + iVar2" identifier = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (if_statement "if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" if (parenthesized_expression "(param_1[5] < 0)" ( (binary_expression "param_1[5] < 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }" { (expression_statement "param_1[6] = iVar3;" (assignment_expression "param_1[6] = iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = local_24;" (assignment_expression "param_1[5] = local_24" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" else (compound_statement "{\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" { (if_statement "if (param_1[6] < local_24) goto LAB_0003d064;" if (parenthesized_expression "(param_1[6] < local_24)" ( (binary_expression "param_1[6] < local_24" (subscript_expression "param_1[6]" identifier [ number_literal ]) < identifier) )) (goto_statement "goto LAB_0003d064;" goto statement_identifier ;)) (if_statement "if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }" if (parenthesized_expression "(param_1[6] < iVar3)" ( (binary_expression "param_1[6] < iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n            param_1[6] = iVar3;\n          }" { (expression_statement "param_1[6] = iVar3;" (assignment_expression "param_1[6] = iVar3" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) })) }))) })) (expression_statement "iVar1 = param_1[3] + 1;" (assignment_expression "iVar1 = param_1[3] + 1" identifier = (binary_expression "param_1[3] + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(iVar1 < param_1[4])" ( (binary_expression "iVar1 < param_1[4]" identifier < (subscript_expression "param_1[4]" identifier [ number_literal ])) )) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00116110();\n  }" { (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (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 (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 (subscript_expression IDENT [ LIT ]) < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0003d010(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003d010(int *param_1)" (identifier "FUN_0003d010") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  param_1[5] = -1;\n  iVar1 = param_1[3];\n  param_1[6] = -1;\n  if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }\n  iVar1 = 0;\nLAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }\n  return iVar1;\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 "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "param_1[5] = -1;" (assignment_expression "param_1[5] = -1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar1 = param_1[3];" (assignment_expression "iVar1 = param_1[3]" (identifier "iVar1") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_1[6] = -1;" (assignment_expression "param_1[6] = -1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "-1")) (; ";")) (if_statement "if (iVar1 < param_1[4]) {\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }" (if "if") (parenthesized_expression "(iVar1 < param_1[4])" (( "(") (binary_expression "iVar1 < param_1[4]" (identifier "iVar1") (< "<") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) () ")")) (compound_statement "{\n    do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);\n  }" ({ "{") (do_statement "do {\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    } while (iVar1 < param_1[4]);" (do "do") (compound_statement "{\n      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);\n      if (iVar1 != 0) goto LAB_0003d064;\n      if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }\n      iVar1 = param_1[3] + 1;\n      param_1[3] = iVar1;\n    }" ({ "{") (expression_statement "iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);" (assignment_expression "iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24)" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x24)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x24)" (* "*") (cast_expression "(code **)(*param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x24)" (( "(") (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(param_1[1],iVar1,&local_2c,&local_28,&local_24)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "iVar1") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_0003d064;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0003d064;" (goto "goto") (statement_identifier "LAB_0003d064") (; ";"))) (if_statement "if (param_1[2] == local_28) {\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(param_1[2] == local_28)" (( "(") (binary_expression "param_1[2] == local_28" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "local_28")) () ")")) (compound_statement "{\n        iVar3 = local_24 + -1;\n        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);\n        iVar3 = iVar3 + iVar2;\n        if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar3 = local_24 + -1;" (assignment_expression "iVar3 = local_24 + -1" (identifier "iVar3") (= "=") (binary_expression "local_24 + -1" (identifier "local_24") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x1c))(param_1[1],local_2c)" (parenthesized_expression "(**(code **)(*param_1 + 0x1c))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x1c)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x1c)" (* "*") (cast_expression "(code **)(*param_1 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x1c)" (( "(") (binary_expression "*param_1 + 0x1c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(param_1[1],local_2c)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "local_2c") () ")")))) (; ";")) (expression_statement "iVar3 = iVar3 + iVar2;" (assignment_expression "iVar3 = iVar3 + iVar2" (identifier "iVar3") (= "=") (binary_expression "iVar3 + iVar2" (identifier "iVar3") (+ "+") (identifier "iVar2"))) (; ";")) (if_statement "if (param_1[5] < 0) {\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }\n        else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" (if "if") (parenthesized_expression "(param_1[5] < 0)" (( "(") (binary_expression "param_1[5] < 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          param_1[6] = iVar3;\n          param_1[5] = local_24;\n        }" ({ "{") (expression_statement "param_1[6] = iVar3;" (assignment_expression "param_1[6] = iVar3" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_1[5] = local_24;" (assignment_expression "param_1[5] = local_24" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "local_24")) (; ";")) (} "}")) (else_clause "else {\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" (else "else") (compound_statement "{\n          if (param_1[6] < local_24) goto LAB_0003d064;\n          if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }\n        }" ({ "{") (if_statement "if (param_1[6] < local_24) goto LAB_0003d064;" (if "if") (parenthesized_expression "(param_1[6] < local_24)" (( "(") (binary_expression "param_1[6] < local_24" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (< "<") (identifier "local_24")) () ")")) (goto_statement "goto LAB_0003d064;" (goto "goto") (statement_identifier "LAB_0003d064") (; ";"))) (if_statement "if (param_1[6] < iVar3) {\n            param_1[6] = iVar3;\n          }" (if "if") (parenthesized_expression "(param_1[6] < iVar3)" (( "(") (binary_expression "param_1[6] < iVar3" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n            param_1[6] = iVar3;\n          }" ({ "{") (expression_statement "param_1[6] = iVar3;" (assignment_expression "param_1[6] = iVar3" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "iVar1 = param_1[3] + 1;" (assignment_expression "iVar1 = param_1[3] + 1" (identifier "iVar1") (= "=") (binary_expression "param_1[3] + 1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[3] = iVar1;" (assignment_expression "param_1[3] = iVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < param_1[4])" (( "(") (binary_expression "iVar1 < param_1[4]" (identifier "iVar1") (< "<") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0003d064:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (statement_identifier "LAB_0003d064") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00116110();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00116110();\n  }" ({ "{") (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pIter)

{
  int var_2;
  int var_6;
  int var_5;
  int var_1;
  int ip;
  int var_3;
  int var_4;
  int var_7;
  
  var_7 = *(int *)(var_1 + 0x14);
  pIter->iStart = -1;
  var_2 = pIter->iInst;
  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_0003d064;
      if (pIter->iCol == var_3) {
        var_5 = var_4 + -1;
        var_6 = (*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_0003d064;
          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_0003d064:
  if (var_7 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_8();
  }
  return var_2;
}


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

int __regparm3 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int in_GS_OFFSET;
  undefined4 local_2c;
  int local_28;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  param_1[5] = -1;
  iVar1 = param_1[3];
  param_1[6] = -1;
  if (iVar1 < param_1[4]) {
    do {
      iVar1 = (**(code **)(*param_1 + 0x24))(param_1[1],iVar1,&local_2c,&local_28,&local_24);
      if (iVar1 != 0) goto LAB_0003d064;
      if (param_1[2] == local_28) {
        iVar3 = local_24 + -1;
        iVar2 = (**(code **)(*param_1 + 0x1c))(param_1[1],local_2c);
        iVar3 = iVar3 + iVar2;
        if (param_1[5] < 0) {
          param_1[6] = iVar3;
          param_1[5] = local_24;
        }
        else {
          if (param_1[6] < local_24) goto LAB_0003d064;
          if (param_1[6] < iVar3) {
            param_1[6] = iVar3;
          }
        }
      }
      iVar1 = param_1[3] + 1;
      param_1[3] = iVar1;
    } while (iVar1 < param_1[4]);
  }
  iVar1 = 0;
LAB_0003d064:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00116110();
  }
  return iVar1;
}

