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

{
  int iVar1;
  Fts5Data *pFVar2;
  Fts5DlidxLvl *pFVar3;
  code *pcVar4;
  undefined1 *puVar5;
  undefined4 in_stack_ffffffdc;
  
  pFVar3 = pIter->aLvl + iLvl;
  puVar5 = &_gp;
  pcVar4 = (code *)(PTR_LAB_00190ba4 + 0x687c);
  iVar1 = (*pcVar4)(pFVar3);
  if (((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&
     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)) {
    (**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);
    (**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);
    pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));
    pIter->aLvl[iLvl].pData = pFVar2;
    if (pFVar2 != (Fts5Data *)0x0) {
      (*pcVar4)(pFVar3);
    }
  }
  return pIter->aLvl[0].bEof;
}



int FUN_00139960(undefined4 param_1,int *param_2,int param_3)

{
  int iVar1;
  int *piVar2;
  code *pcVar3;
  
  piVar2 = param_2 + param_3 * 8 + 2;
  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);
  iVar1 = (*pcVar3)(piVar2);
  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)
     ) {
    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);
    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);
    iVar1 = FUN_001396f8(param_1);
    param_2[param_3 * 8 + 2] = iVar1;
    if (iVar1 != 0) {
      (*pcVar3)(piVar2);
    }
  }
  return param_2[4];
}


lui gp,0x6
addiu gp,gp,-0x1040
addu gp,gp,t9
addiu sp,sp,-0x38
sw s4,0x2c(sp)
sll s4,a2,0x5
sw s1,0x20(sp)
sw s0,0x1c(sp)
addiu s0,s4,0x8
lw s1,-0x7d7c(gp)
addu s0,a1,s0
sw gp,0x10(sp)
sw s5,0x30(sp)
or s5,a0,zero
addiu s1,s1,0x687c
sw s3,0x28(sp)
sw s2,0x24(sp)
or a0,s0,zero
sw ra,0x34(sp)
or t9,s1,zero
or s3,a2,zero
jalr t9
_or s2,a1,zero
beq v0,zero,0x001399d8
_lw gp,0x10(sp)
lw v0,0x0(s2)
addiu a2,s3,0x1
slt v0,a2,v0
bne v0,zero,0x00139a00
_lw t9,-0x7ce4(gp)
lw ra,0x34(sp)
lw v0,0x10(s2)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
or a1,s2,zero
addiu t9,t9,-0x66a0
bal 0x00139960
_or a0,s5,zero
lw v0,0x28(s0)
bne v0,zero,0x001399d8
_lw gp,0x10(sp)
addu s4,s2,s4
lw t9,-0x7fb4(gp)
jalr t9
_lw a0,0x8(s4)
li a2,0x20
lw gp,0x10(sp)
or a1,zero,zero
lw t9,-0x7bc8(gp)
jalr t9
_or a0,s0,zero
sra v0,s3,0x1f
lw a2,0x4(s2)
srl v1,s3,0x1
lw a3,0x30(s0)
sll v0,v0,0x1f
lw gp,0x10(sp)
sll s3,s3,0x1f
sll a2,a2,0x5
or v0,v1,v0
addiu a2,a2,0x10
sra v1,a3,0x1f
lw t9,-0x7ce4(gp)
addu a2,a2,v0
addu a3,s3,a3
addu a2,a2,v1
sltu s3,a3,s3
addu a2,s3,a2
addiu t9,t9,-0x6908
bal 0x001396f8
_or a0,s5,zero
beq v0,zero,0x001399d8
_sw v0,0x8(s4)
or t9,s1,zero
jalr t9
_or a0,s0,zero
b 0x001399dc
_lw ra,0x34(sp)
(translation_unit "int FUN_00139960(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}\n\n" (function_definition "int FUN_00139960(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}" primitive_type (function_declarator "FUN_00139960(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 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 iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "piVar2 = param_2 + param_3 * 8 + 2;" (assignment_expression "piVar2 = param_2 + param_3 * 8 + 2" identifier = (binary_expression "param_2 + param_3 * 8 + 2" (binary_expression "param_2 + param_3 * 8" identifier + (binary_expression "param_3 * 8" identifier * number_literal)) + number_literal)) ;) (expression_statement "pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba4 + 0x687c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba4 + 0x687c)" ( (binary_expression "PTR_LAB_00190ba4 + 0x687c" identifier + number_literal) )))) ;) (expression_statement "iVar1 = (*pcVar3)(piVar2);" (assignment_expression "iVar1 = (*pcVar3)(piVar2)" identifier = (call_expression "(*pcVar3)(piVar2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(piVar2)" ( identifier )))) ;) (if_statement "if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }" if (parenthesized_expression "(((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     )" ( (binary_expression "((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)" (parenthesized_expression "((iVar1 != 0) && (param_3 + 1 < *param_2))" ( (binary_expression "(iVar1 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 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)) ))) )) && (parenthesized_expression "(FUN_00139960(param_1,param_2), piVar2[10] == 0)" ( (comma_expression "FUN_00139960(param_1,param_2), piVar2[10] == 0" (call_expression "FUN_00139960(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) , (binary_expression "piVar2[10] == 0" (subscript_expression "piVar2[10]" identifier [ number_literal ]) == number_literal)) ))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }" { (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" * (cast_expression "(code *)PTR_sqlite3_free_0019096c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[param_3 * 8 + 2])" ( (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) ))) ;) (expression_statement "(*(code *)PTR_memset_00190d58)(piVar2,0,0x20);" (call_expression "(*(code *)PTR_memset_00190d58)(piVar2,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar1 = FUN_001396f8(param_1);" (assignment_expression "iVar1 = FUN_001396f8(param_1)" identifier = (call_expression "FUN_001396f8(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_2[param_3 * 8 + 2] = iVar1;" (assignment_expression "param_2[param_3 * 8 + 2] = iVar1" (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      (*pcVar3)(piVar2);\n    }" { (expression_statement "(*pcVar3)(piVar2);" (call_expression "(*pcVar3)(piVar2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(piVar2)" ( identifier ))) ;) })) })) (return_statement "return param_2[4];" return (subscript_expression "param_2[4]" identifier [ number_literal ]) ;) })))
(translation_unit "int fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  int iVar1;\n  Fts5Data *pFVar2;\n  Fts5DlidxLvl *pFVar3;\n  code *pcVar4;\n  undefined1 *puVar5;\n  undefined4 in_stack_ffffffdc;\n  \n  pFVar3 = pIter->aLvl + iLvl;\n  puVar5 = &_gp;\n  pcVar4 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar4)(pFVar3);\n  if (((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&\n     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)) {\n    (**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);\n    (**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);\n    pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));\n    pIter->aLvl[iLvl].pData = pFVar2;\n    if (pFVar2 != (Fts5Data *)0x0) {\n      (*pcVar4)(pFVar3);\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}\n\n" (function_definition "int fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  int iVar1;\n  Fts5Data *pFVar2;\n  Fts5DlidxLvl *pFVar3;\n  code *pcVar4;\n  undefined1 *puVar5;\n  undefined4 in_stack_ffffffdc;\n  \n  pFVar3 = pIter->aLvl + iLvl;\n  puVar5 = &_gp;\n  pcVar4 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar4)(pFVar3);\n  if (((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&\n     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)) {\n    (**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);\n    (**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);\n    pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));\n    pIter->aLvl[iLvl].pData = pFVar2;\n    if (pFVar2 != (Fts5Data *)0x0) {\n      (*pcVar4)(pFVar3);\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  int iVar1;\n  Fts5Data *pFVar2;\n  Fts5DlidxLvl *pFVar3;\n  code *pcVar4;\n  undefined1 *puVar5;\n  undefined4 in_stack_ffffffdc;\n  \n  pFVar3 = pIter->aLvl + iLvl;\n  puVar5 = &_gp;\n  pcVar4 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar4)(pFVar3);\n  if (((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&\n     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)) {\n    (**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);\n    (**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);\n    pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));\n    pIter->aLvl[iLvl].pData = pFVar2;\n    if (pFVar2 != (Fts5Data *)0x0) {\n      (*pcVar4)(pFVar3);\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Fts5Data *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "Fts5DlidxLvl *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 in_stack_ffffffdc;" type_identifier identifier ;) (expression_statement "pFVar3 = pIter->aLvl + iLvl;" (assignment_expression "pFVar3 = pIter->aLvl + iLvl" identifier = (binary_expression "pIter->aLvl + iLvl" (field_expression "pIter->aLvl" identifier -> field_identifier) + identifier)) ;) (expression_statement "puVar5 = &_gp;" (assignment_expression "puVar5 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "pcVar4 = (code *)(PTR_LAB_00190ba4 + 0x687c);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_00190ba4 + 0x687c)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba4 + 0x687c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba4 + 0x687c)" ( (binary_expression "PTR_LAB_00190ba4 + 0x687c" identifier + number_literal) )))) ;) (expression_statement "iVar1 = (*pcVar4)(pFVar3);" (assignment_expression "iVar1 = (*pcVar4)(pFVar3)" identifier = (call_expression "(*pcVar4)(pFVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(pFVar3)" ( identifier )))) ;) (if_statement "if (((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&\n     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)) {\n    (**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);\n    (**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);\n    pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));\n    pIter->aLvl[iLvl].pData = pFVar2;\n    if (pFVar2 != (Fts5Data *)0x0) {\n      (*pcVar4)(pFVar3);\n    }\n  }" if (parenthesized_expression "(((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&\n     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0))" ( (binary_expression "((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) &&\n     (fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)" (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)) ))) )) && (parenthesized_expression "(fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0)" ( (comma_expression "fts5DlidxIterNextR(p,pIter,iLvl + 1), *(int *)((int)(pFVar3 + 1) + 8) == 0" (call_expression "fts5DlidxIterNextR(p,pIter,iLvl + 1)" identifier (argument_list "(p,pIter,iLvl + 1)" ( identifier , identifier , (binary_expression "iLvl + 1" identifier + number_literal) ))) , (binary_expression "*(int *)((int)(pFVar3 + 1) + 8) == 0" (pointer_expression "*(int *)((int)(pFVar3 + 1) + 8)" * (cast_expression "(int *)((int)(pFVar3 + 1) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(pFVar3 + 1) + 8)" ( (binary_expression "(int)(pFVar3 + 1) + 8" (cast_expression "(int)(pFVar3 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pFVar3 + 1)" ( (binary_expression "pFVar3 + 1" identifier + number_literal) ))) + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\n    (**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);\n    (**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);\n    pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));\n    pIter->aLvl[iLvl].pData = pFVar2;\n    if (pFVar2 != (Fts5Data *)0x0) {\n      (*pcVar4)(pFVar3);\n    }\n  }" { (expression_statement "(**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData);" (call_expression "(**(code **)(puVar5 + -0x7fb4))(pIter->aLvl[iLvl].pData)" (parenthesized_expression "(**(code **)(puVar5 + -0x7fb4))" ( (pointer_expression "**(code **)(puVar5 + -0x7fb4)" * (pointer_expression "*(code **)(puVar5 + -0x7fb4)" * (cast_expression "(code **)(puVar5 + -0x7fb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x7fb4)" ( (binary_expression "puVar5 + -0x7fb4" identifier + number_literal) ))))) )) (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 "(**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20);" (call_expression "(**(code **)(puVar5 + -0x7bc8))(pFVar3,0,0x20)" (parenthesized_expression "(**(code **)(puVar5 + -0x7bc8))" ( (pointer_expression "**(code **)(puVar5 + -0x7bc8)" * (pointer_expression "*(code **)(puVar5 + -0x7bc8)" * (cast_expression "(code **)(puVar5 + -0x7bc8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + -0x7bc8)" ( (binary_expression "puVar5 + -0x7bc8" identifier + number_literal) ))))) )) (argument_list "(pFVar3,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc));" (assignment_expression "pFVar2 = fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc))" identifier = (call_expression "fts5DataRead(p,CONCAT44(puVar5,in_stack_ffffffdc))" identifier (argument_list "(p,CONCAT44(puVar5,in_stack_ffffffdc))" ( identifier , (call_expression "CONCAT44(puVar5,in_stack_ffffffdc)" identifier (argument_list "(puVar5,in_stack_ffffffdc)" ( identifier , identifier ))) )))) ;) (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      (*pcVar4)(pFVar3);\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      (*pcVar4)(pFVar3);\n    }" { (expression_statement "(*pcVar4)(pFVar3);" (call_expression "(*pcVar4)(pFVar3)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(pFVar3)" ( 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_00139960(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}\n\n" (function_definition "int FUN_00139960(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}" primitive_type (function_declarator "FUN_00139960(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 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 iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "piVar2 = param_2 + param_3 * 8 + 2;" (assignment_expression "piVar2 = param_2 + param_3 * 8 + 2" identifier = (binary_expression "param_2 + param_3 * 8 + 2" (binary_expression "param_2 + param_3 * 8" identifier + (binary_expression "param_3 * 8" identifier * number_literal)) + number_literal)) ;) (expression_statement "pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c)" identifier = (cast_expression "(code *)(PTR_LAB_00190ba4 + 0x687c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00190ba4 + 0x687c)" ( (binary_expression "PTR_LAB_00190ba4 + 0x687c" identifier + number_literal) )))) ;) (expression_statement "iVar1 = (*pcVar3)(piVar2);" (assignment_expression "iVar1 = (*pcVar3)(piVar2)" identifier = (call_expression "(*pcVar3)(piVar2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(piVar2)" ( identifier )))) ;) (if_statement "if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }" if (parenthesized_expression "(((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     )" ( (binary_expression "((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)" (parenthesized_expression "((iVar1 != 0) && (param_3 + 1 < *param_2))" ( (binary_expression "(iVar1 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 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)) ))) )) && (parenthesized_expression "(FUN_00139960(param_1,param_2), piVar2[10] == 0)" ( (comma_expression "FUN_00139960(param_1,param_2), piVar2[10] == 0" (call_expression "FUN_00139960(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) , (binary_expression "piVar2[10] == 0" (subscript_expression "piVar2[10]" identifier [ number_literal ]) == number_literal)) ))) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }" { (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" * (cast_expression "(code *)PTR_sqlite3_free_0019096c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[param_3 * 8 + 2])" ( (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) ))) ;) (expression_statement "(*(code *)PTR_memset_00190d58)(piVar2,0,0x20);" (call_expression "(*(code *)PTR_memset_00190d58)(piVar2,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" ( (pointer_expression "*(code *)PTR_memset_00190d58" * (cast_expression "(code *)PTR_memset_00190d58" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x20)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar1 = FUN_001396f8(param_1);" (assignment_expression "iVar1 = FUN_001396f8(param_1)" identifier = (call_expression "FUN_001396f8(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "param_2[param_3 * 8 + 2] = iVar1;" (assignment_expression "param_2[param_3 * 8 + 2] = iVar1" (subscript_expression "param_2[param_3 * 8 + 2]" identifier [ (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" identifier * number_literal) + number_literal) ]) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      (*pcVar3)(piVar2);\n    }" { (expression_statement "(*pcVar3)(piVar2);" (call_expression "(*pcVar3)(piVar2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(piVar2)" ( identifier ))) ;) })) })) (return_statement "return param_2[4];" return (subscript_expression "param_2[4]" 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * IDENT)) ))) )) && (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) , (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) })) })) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "int FUN_00139960(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}" (primitive_type "int") (function_declarator "FUN_00139960(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_00139960") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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 iVar1;\n  int *piVar2;\n  code *pcVar3;\n  \n  piVar2 = param_2 + param_3 * 8 + 2;\n  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);\n  iVar1 = (*pcVar3)(piVar2);\n  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }\n  return param_2[4];\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "piVar2 = param_2 + param_3 * 8 + 2;" (assignment_expression "piVar2 = param_2 + param_3 * 8 + 2" (identifier "piVar2") (= "=") (binary_expression "param_2 + param_3 * 8 + 2" (binary_expression "param_2 + param_3 * 8" (identifier "param_2") (+ "+") (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8"))) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_LAB_00190ba4 + 0x687c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00190ba4 + 0x687c)" (( "(") (binary_expression "PTR_LAB_00190ba4 + 0x687c" (identifier "PTR_LAB_00190ba4") (+ "+") (number_literal "0x687c")) () ")")))) (; ";")) (expression_statement "iVar1 = (*pcVar3)(piVar2);" (assignment_expression "iVar1 = (*pcVar3)(piVar2)" (identifier "iVar1") (= "=") (call_expression "(*pcVar3)(piVar2)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")")))) (; ";")) (if_statement "if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     ) {\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }" (if "if") (parenthesized_expression "(((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)\n     )" (( "(") (binary_expression "((iVar1 != 0) && (param_3 + 1 < *param_2)) && (FUN_00139960(param_1,param_2), piVar2[10] == 0)" (parenthesized_expression "((iVar1 != 0) && (param_3 + 1 < *param_2))" (( "(") (binary_expression "(iVar1 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (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"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(FUN_00139960(param_1,param_2), piVar2[10] == 0)" (( "(") (comma_expression "FUN_00139960(param_1,param_2), piVar2[10] == 0" (call_expression "FUN_00139960(param_1,param_2)" (identifier "FUN_00139960") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (, ",") (binary_expression "piVar2[10] == 0" (subscript_expression "piVar2[10]" (identifier "piVar2") ([ "[") (number_literal "10") (] "]")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);\n    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);\n    iVar1 = FUN_001396f8(param_1);\n    param_2[param_3 * 8 + 2] = iVar1;\n    if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }\n  }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);" (call_expression "(*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2])" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0019096c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0019096c" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0019096c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0019096c"))) () ")")) (argument_list "(param_2[param_3 * 8 + 2])" (( "(") (subscript_expression "param_2[param_3 * 8 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "2")) (] "]")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_00190d58)(piVar2,0,0x20);" (call_expression "(*(code *)PTR_memset_00190d58)(piVar2,0,0x20)" (parenthesized_expression "(*(code *)PTR_memset_00190d58)" (( "(") (pointer_expression "*(code *)PTR_memset_00190d58" (* "*") (cast_expression "(code *)PTR_memset_00190d58" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00190d58"))) () ")")) (argument_list "(piVar2,0,0x20)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_001396f8(param_1);" (assignment_expression "iVar1 = FUN_001396f8(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_001396f8(param_1)" (identifier "FUN_001396f8") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "param_2[param_3 * 8 + 2] = iVar1;" (assignment_expression "param_2[param_3 * 8 + 2] = iVar1" (subscript_expression "param_2[param_3 * 8 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 8 + 2" (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8")) (+ "+") (number_literal "2")) (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 != 0) {\n      (*pcVar3)(piVar2);\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*pcVar3)(piVar2);\n    }" ({ "{") (expression_statement "(*pcVar3)(piVar2);" (call_expression "(*pcVar3)(piVar2)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return param_2[4];" (return "return") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (; ";")) (} "}")))
(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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))))) right: (parenthesized_expression (comma_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (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: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))))))) (return_statement (subscript_expression argument: (identifier) index: (number_literal))))))

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

{
  int iVar1;
  int *piVar2;
  code *pcVar3;
  
  piVar2 = param_2 + param_3 * 8 + 2;
  pcVar3 = (code *)(PTR_LAB_00190ba4 + 0x687c);
  iVar1 = (*pcVar3)(piVar2);
  if (((iVar1 != 0) && (param_3 + 1 < *param_2)) && (MASKED(param_1,param_2), piVar2[10] == 0)
     ) {
    (*(code *)PTR_sqlite3_free_0019096c)(param_2[param_3 * 8 + 2]);
    (*(code *)PTR_memset_00190d58)(piVar2,0,0x20);
    iVar1 = FUN_001396f8(param_1);
    param_2[param_3 * 8 + 2] = iVar1;
    if (iVar1 != 0) {
      (*pcVar3)(piVar2);
    }
  }
  return param_2[4];
}

