
int fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)

{
  Fts5DlidxLvl *pLvl;
  int iVar1;
  Fts5Data *pFVar2;
  
  pLvl = pIter->aLvl + iLvl;
  iVar1 = fts5DlidxLvlNext(pLvl);
  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {
    fts5DlidxIterNextR(p,pIter,iLvl + 1);
    if (pLvl[1].bEof == 0) {
      sqlite3_free(pIter->aLvl[iLvl].pData);
      pLvl->pData = (Fts5Data *)0x0;
      pLvl->iOff = 0;
      pLvl->bEof = 0;
      pLvl->iFirstOff = 0;
      pLvl->iLeafPgno = 0;
      pLvl->iRowid = 0;
      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +
                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000
                           );
      pIter->aLvl[iLvl].pData = pFVar2;
      if (pFVar2 != (Fts5Data *)0x0) {
        fts5DlidxLvlNext(pLvl);
      }
    }
  }
  return pIter->aLvl[0].bEof;
}



int FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  
  lVar4 = (long)param_3;
  piVar1 = param_2 + lVar4 * 8 + 2;
  iVar2 = FUN_00136a00(piVar1);
  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {
    FUN_001d1cb8(param_1,param_2);
    if (piVar1[0xb] == 0) {
      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));
      piVar1[0] = 0;
      piVar1[1] = 0;
      piVar1[2] = 0;
      piVar1[3] = 0;
      piVar1[4] = 0;
      piVar1[5] = 0;
      piVar1[6] = 0;
      piVar1[7] = 0;
      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +
                                   (long)param_3 * 0x80000000 +
                                   ((long)param_2[1] << 0x25) + 0x1000000000);
      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;
      if (lVar3 != 0) {
        FUN_00136a00(piVar1);
      }
    }
  }
  return param_2[5];
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
MOV R14,RDI
MOV RBP,RSI
MOV R12D,EDX
MOVSXD RBX,EDX
SHL RBX,0x5
LEA R13,[RSI + RBX*0x1 + 0x8]
MOV RDI,R13
CALL 0x00136a00
TEST EAX,EAX
JZ 0x001d1ceb
LEA EDX,[R12 + 0x1]
CMP EDX,dword ptr [RBP]
JL 0x001d1cf7
MOV EAX,dword ptr [RBP + 0x14]
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV RSI,RBP
MOV RDI,R14
CALL 0x001d1cb8
CMP dword ptr [R13 + 0x2c],0x0
JNZ 0x001d1ceb
ADD RBX,RBP
MOV RDI,qword ptr [RBX + 0x8]
CALL 0x00141303
MOV qword ptr [R13],0x0
MOV qword ptr [R13 + 0x8],0x0
MOV qword ptr [R13 + 0x10],0x0
MOV qword ptr [R13 + 0x18],0x0
MOVSXD RSI,dword ptr [RBP + 0x4]
SHL RSI,0x25
MOV RAX,0x1000000000
ADD RSI,RAX
MOVSXD R12,R12D
SHL R12,0x1f
ADD R12,RSI
MOVSXD RSI,dword ptr [R13 + 0x34]
ADD RSI,R12
MOV RDI,R14
CALL 0x001d1b6a
MOV qword ptr [RBX + 0x8],RAX
TEST RAX,RAX
JZ 0x001d1ceb
MOV RDI,R13
CALL 0x00136a00
JMP 0x001d1ceb
(translation_unit "int FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}\n\n" (function_definition "int FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}" primitive_type (function_declarator "FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined8 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar4 = (long)param_3;" (assignment_expression "lVar4 = (long)param_3" identifier = (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "piVar1 = param_2 + lVar4 * 8 + 2;" (assignment_expression "piVar1 = param_2 + lVar4 * 8 + 2" identifier = (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" identifier + (binary_expression "lVar4 * 8" identifier * number_literal)) + number_literal)) ;) (expression_statement "iVar2 = FUN_00136a00(piVar1);" (assignment_expression "iVar2 = FUN_00136a00(piVar1)" identifier = (call_expression "FUN_00136a00(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (param_3 + 1 < *param_2))" ( (binary_expression "(iVar2 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 + 1 < *param_2)" ( (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" identifier + number_literal) < (pointer_expression "*param_2" * identifier)) ))) )) (compound_statement "{\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }" { (expression_statement "FUN_001d1cb8(param_1,param_2);" (call_expression "FUN_001d1cb8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (if_statement "if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }" if (parenthesized_expression "(piVar1[0xb] == 0)" ( (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }" { (expression_statement "FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));" (call_expression "FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2))" identifier (argument_list "(*(undefined8 *)(param_2 + lVar4 * 8 + 2))" ( (pointer_expression "*(undefined8 *)(param_2 + lVar4 * 8 + 2)" * (cast_expression "(undefined8 *)(param_2 + lVar4 * 8 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + lVar4 * 8 + 2)" ( (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" identifier + (binary_expression "lVar4 * 8" identifier * number_literal)) + number_literal) )))) ))) ;) (expression_statement "piVar1[0] = 0;" (assignment_expression "piVar1[0] = 0" (subscript_expression "piVar1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[5] = 0;" (assignment_expression "piVar1[5] = 0" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[6] = 0;" (assignment_expression "piVar1[6] = 0" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[7] = 0;" (assignment_expression "piVar1[7] = 0" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);" (assignment_expression "lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" identifier = (call_expression "FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" identifier (argument_list "(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" ( identifier , (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000" (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25)" (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000" (cast_expression "(long)piVar1[0xd]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "piVar1[0xd]" identifier [ number_literal ])) + (binary_expression "(long)param_3 * 0x80000000" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + (parenthesized_expression "((long)param_2[1] << 0x25)" ( (binary_expression "(long)param_2[1] << 0x25" (cast_expression "(long)param_2[1]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) << number_literal) ))) + number_literal) )))) ;) (expression_statement "*(long *)(param_2 + lVar4 * 8 + 2) = lVar3;" (assignment_expression "*(long *)(param_2 + lVar4 * 8 + 2) = lVar3" (pointer_expression "*(long *)(param_2 + lVar4 * 8 + 2)" * (cast_expression "(long *)(param_2 + lVar4 * 8 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + lVar4 * 8 + 2)" ( (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" identifier + (binary_expression "lVar4 * 8" identifier * number_literal)) + number_literal) )))) = identifier) ;) (if_statement "if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00136a00(piVar1);\n      }" { (expression_statement "FUN_00136a00(piVar1);" (call_expression "FUN_00136a00(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) })) })) (return_statement "return param_2[5];" return (subscript_expression "param_2[5]" identifier [ number_literal ]) ;) })))
(translation_unit "int fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  Fts5DlidxLvl *pLvl;\n  int iVar1;\n  Fts5Data *pFVar2;\n  \n  pLvl = pIter->aLvl + iLvl;\n  iVar1 = fts5DlidxLvlNext(pLvl);\n  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}\n\n" (function_definition "int fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  Fts5DlidxLvl *pLvl;\n  int iVar1;\n  Fts5Data *pFVar2;\n  \n  pLvl = pIter->aLvl + iLvl;\n  iVar1 = fts5DlidxLvlNext(pLvl);\n  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}" primitive_type (function_declarator "fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)" identifier (parameter_list "(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5DlidxIter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) , (parameter_declaration "int iLvl" primitive_type identifier) ))) (compound_statement "{\n  Fts5DlidxLvl *pLvl;\n  int iVar1;\n  Fts5Data *pFVar2;\n  \n  pLvl = pIter->aLvl + iLvl;\n  iVar1 = fts5DlidxLvlNext(pLvl);\n  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}" { (declaration "Fts5DlidxLvl *pLvl;" type_identifier (pointer_declarator "*pLvl" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "Fts5Data *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (expression_statement "pLvl = pIter->aLvl + iLvl;" (assignment_expression "pLvl = pIter->aLvl + iLvl" identifier = (binary_expression "pIter->aLvl + iLvl" (field_expression "pIter->aLvl" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar1 = fts5DlidxLvlNext(pLvl);" (assignment_expression "iVar1 = fts5DlidxLvlNext(pLvl)" identifier = (call_expression "fts5DlidxLvlNext(pLvl)" identifier (argument_list "(pLvl)" ( identifier )))) ;) (if_statement "if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iLvl + 1 < pIter->nLvl))" ( (binary_expression "(iVar1 != 0) && (iLvl + 1 < pIter->nLvl)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iLvl + 1 < pIter->nLvl)" ( (binary_expression "iLvl + 1 < pIter->nLvl" (binary_expression "iLvl + 1" identifier + number_literal) < (field_expression "pIter->nLvl" identifier -> field_identifier)) ))) )) (compound_statement "{\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }" { (expression_statement "fts5DlidxIterNextR(p,pIter,iLvl + 1);" (call_expression "fts5DlidxIterNextR(p,pIter,iLvl + 1)" identifier (argument_list "(p,pIter,iLvl + 1)" ( identifier , identifier , (binary_expression "iLvl + 1" identifier + number_literal) ))) ;) (if_statement "if (pLvl[1].bEof == 0) {\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }" if (parenthesized_expression "(pLvl[1].bEof == 0)" ( (binary_expression "pLvl[1].bEof == 0" (field_expression "pLvl[1].bEof" (subscript_expression "pLvl[1]" identifier [ number_literal ]) . field_identifier) == number_literal) )) (compound_statement "{\n      sqlite3_free(pIter->aLvl[iLvl].pData);\n      pLvl->pData = (Fts5Data *)0x0;\n      pLvl->iOff = 0;\n      pLvl->bEof = 0;\n      pLvl->iFirstOff = 0;\n      pLvl->iLeafPgno = 0;\n      pLvl->iRowid = 0;\n      pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );\n      pIter->aLvl[iLvl].pData = pFVar2;\n      if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }" { (expression_statement "sqlite3_free(pIter->aLvl[iLvl].pData);" (call_expression "sqlite3_free(pIter->aLvl[iLvl].pData)" identifier (argument_list "(pIter->aLvl[iLvl].pData)" ( (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) ))) ;) (expression_statement "pLvl->pData = (Fts5Data *)0x0;" (assignment_expression "pLvl->pData = (Fts5Data *)0x0" (field_expression "pLvl->pData" identifier -> field_identifier) = (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pLvl->iOff = 0;" (assignment_expression "pLvl->iOff = 0" (field_expression "pLvl->iOff" identifier -> field_identifier) = number_literal) ;) (expression_statement "pLvl->bEof = 0;" (assignment_expression "pLvl->bEof = 0" (field_expression "pLvl->bEof" identifier -> field_identifier) = number_literal) ;) (expression_statement "pLvl->iFirstOff = 0;" (assignment_expression "pLvl->iFirstOff = 0" (field_expression "pLvl->iFirstOff" identifier -> field_identifier) = number_literal) ;) (expression_statement "pLvl->iLeafPgno = 0;" (assignment_expression "pLvl->iLeafPgno = 0" (field_expression "pLvl->iLeafPgno" identifier -> field_identifier) = number_literal) ;) (expression_statement "pLvl->iRowid = 0;" (assignment_expression "pLvl->iRowid = 0" (field_expression "pLvl->iRowid" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           );" (assignment_expression "pFVar2 = fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           )" identifier = (call_expression "fts5DataRead(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           )" identifier (argument_list "(p,(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000\n                           )" ( identifier , (binary_expression "(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000" (binary_expression "(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000 + ((long)pIter->iSegid << 0x25)" (binary_expression "(long)pLvl[1].iLeafPgno +\n                              (long)iLvl * 0x80000000" (cast_expression "(long)pLvl[1].iLeafPgno" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "pLvl[1].iLeafPgno" (subscript_expression "pLvl[1]" identifier [ number_literal ]) . field_identifier)) + (binary_expression "(long)iLvl * 0x80000000" (cast_expression "(long)iLvl" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + (parenthesized_expression "((long)pIter->iSegid << 0x25)" ( (binary_expression "(long)pIter->iSegid << 0x25" (cast_expression "(long)pIter->iSegid" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "pIter->iSegid" identifier -> field_identifier)) << number_literal) ))) + number_literal) )))) ;) (expression_statement "pIter->aLvl[iLvl].pData = pFVar2;" (assignment_expression "pIter->aLvl[iLvl].pData = pFVar2" (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (if_statement "if (pFVar2 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }" if (parenthesized_expression "(pFVar2 != (Fts5Data *)0x0)" ( (binary_expression "pFVar2 != (Fts5Data *)0x0" identifier != (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        fts5DlidxLvlNext(pLvl);\n      }" { (expression_statement "fts5DlidxLvlNext(pLvl);" (call_expression "fts5DlidxLvlNext(pLvl)" identifier (argument_list "(pLvl)" ( identifier ))) ;) })) })) })) (return_statement "return pIter->aLvl[0].bEof;" return (field_expression "pIter->aLvl[0].bEof" (subscript_expression "pIter->aLvl[0]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ number_literal ]) . field_identifier) ;) })))
(translation_unit "int FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}\n\n" (function_definition "int FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}" primitive_type (function_declarator "FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined8 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar4 = (long)param_3;" (assignment_expression "lVar4 = (long)param_3" identifier = (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "piVar1 = param_2 + lVar4 * 8 + 2;" (assignment_expression "piVar1 = param_2 + lVar4 * 8 + 2" identifier = (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" identifier + (binary_expression "lVar4 * 8" identifier * number_literal)) + number_literal)) ;) (expression_statement "iVar2 = FUN_00136a00(piVar1);" (assignment_expression "iVar2 = FUN_00136a00(piVar1)" identifier = (call_expression "FUN_00136a00(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (param_3 + 1 < *param_2))" ( (binary_expression "(iVar2 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 + 1 < *param_2)" ( (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" identifier + number_literal) < (pointer_expression "*param_2" * identifier)) ))) )) (compound_statement "{\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }" { (expression_statement "FUN_001d1cb8(param_1,param_2);" (call_expression "FUN_001d1cb8(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (if_statement "if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }" if (parenthesized_expression "(piVar1[0xb] == 0)" ( (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }" { (expression_statement "FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));" (call_expression "FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2))" identifier (argument_list "(*(undefined8 *)(param_2 + lVar4 * 8 + 2))" ( (pointer_expression "*(undefined8 *)(param_2 + lVar4 * 8 + 2)" * (cast_expression "(undefined8 *)(param_2 + lVar4 * 8 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + lVar4 * 8 + 2)" ( (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" identifier + (binary_expression "lVar4 * 8" identifier * number_literal)) + number_literal) )))) ))) ;) (expression_statement "piVar1[0] = 0;" (assignment_expression "piVar1[0] = 0" (subscript_expression "piVar1[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[5] = 0;" (assignment_expression "piVar1[5] = 0" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[6] = 0;" (assignment_expression "piVar1[6] = 0" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[7] = 0;" (assignment_expression "piVar1[7] = 0" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);" (assignment_expression "lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" identifier = (call_expression "FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" identifier (argument_list "(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" ( identifier , (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000" (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25)" (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000" (cast_expression "(long)piVar1[0xd]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "piVar1[0xd]" identifier [ number_literal ])) + (binary_expression "(long)param_3 * 0x80000000" (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + (parenthesized_expression "((long)param_2[1] << 0x25)" ( (binary_expression "(long)param_2[1] << 0x25" (cast_expression "(long)param_2[1]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) << number_literal) ))) + number_literal) )))) ;) (expression_statement "*(long *)(param_2 + lVar4 * 8 + 2) = lVar3;" (assignment_expression "*(long *)(param_2 + lVar4 * 8 + 2) = lVar3" (pointer_expression "*(long *)(param_2 + lVar4 * 8 + 2)" * (cast_expression "(long *)(param_2 + lVar4 * 8 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + lVar4 * 8 + 2)" ( (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" identifier + (binary_expression "lVar4 * 8" identifier * number_literal)) + number_literal) )))) = identifier) ;) (if_statement "if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00136a00(piVar1);\n      }" { (expression_statement "FUN_00136a00(piVar1);" (call_expression "FUN_00136a00(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) })) })) })) (return_statement "return param_2[5];" return (subscript_expression "param_2[5]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ])) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (subscript_expression IDENT [ LIT ])) << LIT) ))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) })) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "int FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}" (primitive_type "int") (function_declarator "FUN_001d1cb8(undefined8 param_1,int *param_2,int param_3)" (identifier "FUN_001d1cb8") (parameter_list "(undefined8 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar4 = (long)param_3;\n  piVar1 = param_2 + lVar4 * 8 + 2;\n  iVar2 = FUN_00136a00(piVar1);\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }\n  return param_2[5];\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (expression_statement "lVar4 = (long)param_3;" (assignment_expression "lVar4 = (long)param_3" (identifier "lVar4") (= "=") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) (; ";")) (expression_statement "piVar1 = param_2 + lVar4 * 8 + 2;" (assignment_expression "piVar1 = param_2 + lVar4 * 8 + 2" (identifier "piVar1") (= "=") (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" (identifier "param_2") (+ "+") (binary_expression "lVar4 * 8" (identifier "lVar4") (* "*") (number_literal "8"))) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = FUN_00136a00(piVar1);" (assignment_expression "iVar2 = FUN_00136a00(piVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00136a00(piVar1)" (identifier "FUN_00136a00") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (param_3 + 1 < *param_2))" (( "(") (binary_expression "(iVar2 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 + 1 < *param_2)" (( "(") (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))) () ")")) (compound_statement "{\n    FUN_001d1cb8(param_1,param_2);\n    if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }\n  }" ({ "{") (expression_statement "FUN_001d1cb8(param_1,param_2);" (call_expression "FUN_001d1cb8(param_1,param_2)" (identifier "FUN_001d1cb8") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (piVar1[0xb] == 0) {\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }" (if "if") (parenthesized_expression "(piVar1[0xb] == 0)" (( "(") (binary_expression "piVar1[0xb] == 0" (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));\n      piVar1[0] = 0;\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      piVar1[3] = 0;\n      piVar1[4] = 0;\n      piVar1[5] = 0;\n      piVar1[6] = 0;\n      piVar1[7] = 0;\n      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);\n      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;\n      if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }\n    }" ({ "{") (expression_statement "FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));" (call_expression "FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2))" (identifier "FUN_00141303") (argument_list "(*(undefined8 *)(param_2 + lVar4 * 8 + 2))" (( "(") (pointer_expression "*(undefined8 *)(param_2 + lVar4 * 8 + 2)" (* "*") (cast_expression "(undefined8 *)(param_2 + lVar4 * 8 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + lVar4 * 8 + 2)" (( "(") (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" (identifier "param_2") (+ "+") (binary_expression "lVar4 * 8" (identifier "lVar4") (* "*") (number_literal "8"))) (+ "+") (number_literal "2")) () ")")))) () ")"))) (; ";")) (expression_statement "piVar1[0] = 0;" (assignment_expression "piVar1[0] = 0" (subscript_expression "piVar1[0]" (identifier "piVar1") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[5] = 0;" (assignment_expression "piVar1[5] = 0" (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[6] = 0;" (assignment_expression "piVar1[6] = 0" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[7] = 0;" (assignment_expression "piVar1[7] = 0" (subscript_expression "piVar1[7]" (identifier "piVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000);" (assignment_expression "lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" (identifier "lVar3") (= "=") (call_expression "FUN_001d1b6a(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" (identifier "FUN_001d1b6a") (argument_list "(param_1,(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000)" (( "(") (identifier "param_1") (, ",") (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25) + 0x1000000000" (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000 +\n                                   ((long)param_2[1] << 0x25)" (binary_expression "(long)piVar1[0xd] +\n                                   (long)param_3 * 0x80000000" (cast_expression "(long)piVar1[0xd]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "piVar1[0xd]" (identifier "piVar1") ([ "[") (number_literal "0xd") (] "]"))) (+ "+") (binary_expression "(long)param_3 * 0x80000000" (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3")) (* "*") (number_literal "0x80000000"))) (+ "+") (parenthesized_expression "((long)param_2[1] << 0x25)" (( "(") (binary_expression "(long)param_2[1] << 0x25" (cast_expression "(long)param_2[1]" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "0x25")) () ")"))) (+ "+") (number_literal "0x1000000000")) () ")")))) (; ";")) (expression_statement "*(long *)(param_2 + lVar4 * 8 + 2) = lVar3;" (assignment_expression "*(long *)(param_2 + lVar4 * 8 + 2) = lVar3" (pointer_expression "*(long *)(param_2 + lVar4 * 8 + 2)" (* "*") (cast_expression "(long *)(param_2 + lVar4 * 8 + 2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + lVar4 * 8 + 2)" (( "(") (binary_expression "param_2 + lVar4 * 8 + 2" (binary_expression "param_2 + lVar4 * 8" (identifier "param_2") (+ "+") (binary_expression "lVar4 * 8" (identifier "lVar4") (* "*") (number_literal "8"))) (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "lVar3")) (; ";")) (if_statement "if (lVar3 != 0) {\n        FUN_00136a00(piVar1);\n      }" (if "if") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00136a00(piVar1);\n      }" ({ "{") (expression_statement "FUN_00136a00(piVar1);" (call_expression "FUN_00136a00(piVar1)" (identifier "FUN_00136a00") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return param_2[5];" (return "return") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (; ";")) (} "}")))

int function_1(type_1 *p,type_2 *pIter,int var_1)

{
  type_3 *pLvl;
  int var_3;
  type_4 *var_6;
  
  pLvl = pIter->aLvl + var_1;
  var_3 = var_2(pLvl);
  if ((var_3 != 0) && (var_1 + 1 < pIter->nLvl)) {
    function_1(p,pIter,var_1 + 1);
    if (pLvl[1].bEof == 0) {
      var_4(pIter->aLvl[var_1].pData);
      pLvl->pData = (type_4 *)0x0;
      pLvl->iOff = 0;
      pLvl->bEof = 0;
      pLvl->iFirstOff = 0;
      pLvl->iLeafPgno = 0;
      pLvl->iRowid = 0;
      var_6 = var_5(p,(long)pLvl[1].iLeafPgno +
                              (long)var_1 * 0x80000000 + ((long)pIter->iSegid << 0x25) + 0x1000000000
                           );
      pIter->aLvl[var_1].pData = var_6;
      if (var_6 != (type_4 *)0x0) {
        var_2(pLvl);
      }
    }
  }
  return pIter->aLvl[0].bEof;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (identifier)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))))) (return_statement (subscript_expression argument: (identifier) index: (number_literal))))))

int MASKED(undefined8 param_1,int *param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  long lVar3;
  long lVar4;
  
  lVar4 = (long)param_3;
  piVar1 = param_2 + lVar4 * 8 + 2;
  iVar2 = FUN_00136a00(piVar1);
  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {
    MASKED(param_1,param_2);
    if (piVar1[0xb] == 0) {
      FUN_00141303(*(undefined8 *)(param_2 + lVar4 * 8 + 2));
      piVar1[0] = 0;
      piVar1[1] = 0;
      piVar1[2] = 0;
      piVar1[3] = 0;
      piVar1[4] = 0;
      piVar1[5] = 0;
      piVar1[6] = 0;
      piVar1[7] = 0;
      lVar3 = FUN_001d1b6a(param_1,(long)piVar1[0xd] +
                                   (long)param_3 * 0x80000000 +
                                   ((long)param_2[1] << 0x25) + 0x1000000000);
      *(long *)(param_2 + lVar4 * 8 + 2) = lVar3;
      if (lVar3 != 0) {
        FUN_00136a00(piVar1);
      }
    }
  }
  return param_2[5];
}

