
i64 fts5IndexDataVersion(Fts5Index *p)

{
  int iVar1;
  Fts5Index *p_1;
  sqlite3_stmt *psVar2;
  int in_t9;
  i64 iVar3;
  
  if (p->rc != 0) {
    return 0;
  }
  psVar2 = p->pDataVersion;
  if (psVar2 == (sqlite3_stmt *)0x0) {
    p_1 = (Fts5Index *)
          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);
    iVar1 = fts5IndexPrepareStmt
                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)
    ;
    p->rc = iVar1;
    if (iVar1 != 0) {
      return 0;
    }
    psVar2 = p->pDataVersion;
  }
  iVar1 = (**(code **)(in_t9 + 0x66fb0))(psVar2);
  if (iVar1 == 100) {
    iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);
  }
  else {
    iVar3 = 0;
  }
  iVar1 = (**(code **)(in_t9 + 0x6707c))(p->pDataVersion);
  p->rc = iVar1;
  return iVar3;
}



undefined8 FUN_001299e0(int *param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined8 uVar3;
  
  if (param_1[9] != 0) {
    return 0;
  }
  iVar2 = param_1[0x11];
  if (iVar2 == 0) {
    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)
                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,
                       *(undefined4 *)(*param_1 + 4));
    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);
    param_1[9] = iVar2;
    if (iVar2 != 0) {
      return 0;
    }
    iVar2 = param_1[0x11];
  }
  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);
  if (iVar2 == 100) {
    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);
  }
  else {
    uVar3 = 0;
  }
  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);
  param_1[9] = iVar2;
  return uVar3;
}


lui gp,0x7
addiu gp,gp,-0x10c0
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s3,0x20(sp)
sw s2,0x1c(sp)
sw s0,0x18(sp)
lw v0,0x24(a0)
bne v0,zero,0x00129a74
_lw ra,0x24(sp)
or s0,a0,zero
lw a0,0x44(a0)
beq a0,zero,0x00129a98
_lw t9,-0x7fbc(gp)
lw t9,-0x7f90(gp)
jalr t9
_nop
li v1,0x64
beq v0,v1,0x00129ae0
_lw gp,0x10(sp)
or s3,zero,zero
or s2,zero,zero
lw t9,-0x7ec4(gp)
jalr t9
_lw a0,0x44(s0)
or v1,s3,zero
sw v0,0x24(s0)
or v0,s2,zero
lw ra,0x24(sp)
lw s3,0x20(sp)
lw s2,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or s3,zero,zero
or s2,zero,zero
lw s0,0x18(sp)
or v1,s3,zero
lw s3,0x20(sp)
or v0,s2,zero
lw s2,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x0(s0)
lw a0,-0x7fc4(gp)
lw a1,0x4(v0)
jalr t9
_addiu a0,a0,-0x7c8
addiu a2,s0,0x44
lw gp,0x10(sp)
addiu a1,s0,0x24
lw a0,0x0(s0)
lw t9,-0x7cbc(gp)
addiu t9,t9,0xecc
bal 0x00120ecc
_or a3,v0,zero
lw gp,0x10(sp)
bne v0,zero,0x00129a70
_sw v0,0x24(s0)
b 0x00129a20
_lw a0,0x44(s0)
lw t9,-0x7f7c(gp)
or a1,zero,zero
jalr t9
_lw a0,0x44(s0)
lw gp,0x10(sp)
or s3,v1,zero
b 0x00129a40
_or s2,v0,zero
(translation_unit "undefined8 FUN_001299e0(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}\n\n" (function_definition "undefined8 FUN_001299e0(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}" type_identifier (function_declarator "FUN_001299e0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (if_statement "if (param_1[9] != 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" identifier = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }" { (expression_statement "uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));" (assignment_expression "uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" identifier = (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" ( (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" * (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" ( (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8" identifier + number_literal) , (pointer_expression "*(undefined4 *)(*param_1 + 4)" * (cast_expression "(undefined4 *)(*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) )))) ;) (expression_statement "iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);" (assignment_expression "iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" identifier = (call_expression "FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" identifier (argument_list "(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_1 + 0x11" identifier + number_literal) , identifier )))) ;) (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" identifier = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2)" identifier = (call_expression "(*(code *)PTR_sqlite3_step_00190990)(iVar2)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_00190990)" ( (pointer_expression "*(code *)PTR_sqlite3_step_00190990" * (cast_expression "(code *)PTR_sqlite3_step_00190990" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }" { (expression_statement "uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);" (assignment_expression "uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_int64_001909a4)" ( (pointer_expression "*(code *)PTR_sqlite3_column_int64_001909a4" * (cast_expression "(code *)PTR_sqlite3_column_int64_001909a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x11],0)" ( (subscript_expression "param_1[0x11]" identifier [ number_literal ]) , number_literal )))) ;) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11])" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11])" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_00190a5c)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_00190a5c" * (cast_expression "(code *)PTR_sqlite3_reset_00190a5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x11])" ( (subscript_expression "param_1[0x11]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "i64 fts5IndexDataVersion(Fts5Index *p)\n\n{\n  int iVar1;\n  Fts5Index *p_1;\n  sqlite3_stmt *psVar2;\n  int in_t9;\n  i64 iVar3;\n  \n  if (p->rc != 0) {\n    return 0;\n  }\n  psVar2 = p->pDataVersion;\n  if (psVar2 == (sqlite3_stmt *)0x0) {\n    p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);\n    iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)\n    ;\n    p->rc = iVar1;\n    if (iVar1 != 0) {\n      return 0;\n    }\n    psVar2 = p->pDataVersion;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x66fb0))(psVar2);\n  if (iVar1 == 100) {\n    iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);\n  }\n  else {\n    iVar3 = 0;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x6707c))(p->pDataVersion);\n  p->rc = iVar1;\n  return iVar3;\n}\n\n" (function_definition "i64 fts5IndexDataVersion(Fts5Index *p)\n\n{\n  int iVar1;\n  Fts5Index *p_1;\n  sqlite3_stmt *psVar2;\n  int in_t9;\n  i64 iVar3;\n  \n  if (p->rc != 0) {\n    return 0;\n  }\n  psVar2 = p->pDataVersion;\n  if (psVar2 == (sqlite3_stmt *)0x0) {\n    p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);\n    iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)\n    ;\n    p->rc = iVar1;\n    if (iVar1 != 0) {\n      return 0;\n    }\n    psVar2 = p->pDataVersion;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x66fb0))(psVar2);\n  if (iVar1 == 100) {\n    iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);\n  }\n  else {\n    iVar3 = 0;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x6707c))(p->pDataVersion);\n  p->rc = iVar1;\n  return iVar3;\n}" type_identifier (function_declarator "fts5IndexDataVersion(Fts5Index *p)" identifier (parameter_list "(Fts5Index *p)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  Fts5Index *p_1;\n  sqlite3_stmt *psVar2;\n  int in_t9;\n  i64 iVar3;\n  \n  if (p->rc != 0) {\n    return 0;\n  }\n  psVar2 = p->pDataVersion;\n  if (psVar2 == (sqlite3_stmt *)0x0) {\n    p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);\n    iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)\n    ;\n    p->rc = iVar1;\n    if (iVar1 != 0) {\n      return 0;\n    }\n    psVar2 = p->pDataVersion;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x66fb0))(psVar2);\n  if (iVar1 == 100) {\n    iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);\n  }\n  else {\n    iVar3 = 0;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x6707c))(p->pDataVersion);\n  p->rc = iVar1;\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Fts5Index *p_1;" type_identifier (pointer_declarator "*p_1" * identifier) ;) (declaration "sqlite3_stmt *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "i64 iVar3;" type_identifier identifier ;) (if_statement "if (p->rc != 0) {\n    return 0;\n  }" if (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "psVar2 = p->pDataVersion;" (assignment_expression "psVar2 = p->pDataVersion" identifier = (field_expression "p->pDataVersion" identifier -> field_identifier)) ;) (if_statement "if (psVar2 == (sqlite3_stmt *)0x0) {\n    p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);\n    iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)\n    ;\n    p->rc = iVar1;\n    if (iVar1 != 0) {\n      return 0;\n    }\n    psVar2 = p->pDataVersion;\n  }" if (parenthesized_expression "(psVar2 == (sqlite3_stmt *)0x0)" ( (binary_expression "psVar2 == (sqlite3_stmt *)0x0" identifier == (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);\n    iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)\n    ;\n    p->rc = iVar1;\n    if (iVar1 != 0) {\n      return 0;\n    }\n    psVar2 = p->pDataVersion;\n  }" { (expression_statement "p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb);" (assignment_expression "p_1 = (Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb)" identifier = (cast_expression "(Fts5Index *)\n          (**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb)" ( (type_descriptor "Fts5Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(in_t9 + 0x66f84))(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb)" (parenthesized_expression "(**(code **)(in_t9 + 0x66f84))" ( (pointer_expression "**(code **)(in_t9 + 0x66f84)" * (pointer_expression "*(code **)(in_t9 + 0x66f84)" * (cast_expression "(code **)(in_t9 + 0x66f84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x66f84)" ( (binary_expression "in_t9 + 0x66f84" identifier + number_literal) ))))) )) (argument_list "(*(int *)(in_t9 + 0x66f7c) + -0x7c8,p->pConfig->zDb)" ( (binary_expression "*(int *)(in_t9 + 0x66f7c) + -0x7c8" (pointer_expression "*(int *)(in_t9 + 0x66f7c)" * (cast_expression "(int *)(in_t9 + 0x66f7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x66f7c)" ( (binary_expression "in_t9 + 0x66f7c" identifier + number_literal) )))) + number_literal) , (field_expression "p->pConfig->zDb" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) ))))) ;) (expression_statement "iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)\n    ;" (assignment_expression "iVar1 = fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)" identifier = (call_expression "fts5IndexPrepareStmt\n                      ((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)" identifier (argument_list "((Fts5Index *)p->pConfig,(sqlite3_stmt **)&p->rc,(char *)&p->pDataVersion,p_1)" ( (cast_expression "(Fts5Index *)p->pConfig" ( (type_descriptor "Fts5Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p->pConfig" identifier -> field_identifier)) , (cast_expression "(sqlite3_stmt **)&p->rc" ( (type_descriptor "sqlite3_stmt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier))) , (cast_expression "(char *)&p->pDataVersion" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->pDataVersion" & (field_expression "p->pDataVersion" identifier -> field_identifier))) , identifier )))) ;) (expression_statement "p->rc = iVar1;" (assignment_expression "p->rc = iVar1" (field_expression "p->rc" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "psVar2 = p->pDataVersion;" (assignment_expression "psVar2 = p->pDataVersion" identifier = (field_expression "p->pDataVersion" identifier -> field_identifier)) ;) })) (expression_statement "iVar1 = (**(code **)(in_t9 + 0x66fb0))(psVar2);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0x66fb0))(psVar2)" identifier = (call_expression "(**(code **)(in_t9 + 0x66fb0))(psVar2)" (parenthesized_expression "(**(code **)(in_t9 + 0x66fb0))" ( (pointer_expression "**(code **)(in_t9 + 0x66fb0)" * (pointer_expression "*(code **)(in_t9 + 0x66fb0)" * (cast_expression "(code **)(in_t9 + 0x66fb0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x66fb0)" ( (binary_expression "in_t9 + 0x66fb0" identifier + number_literal) ))))) )) (argument_list "(psVar2)" ( identifier )))) ;) (if_statement "if (iVar1 == 100) {\n    iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);\n  }\n  else {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar1 == 100)" ( (binary_expression "iVar1 == 100" identifier == number_literal) )) (compound_statement "{\n    iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);\n  }" { (expression_statement "iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0);" (assignment_expression "iVar3 = (**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0)" identifier = (call_expression "(**(code **)(in_t9 + 0x66fc4))(p->pDataVersion,0)" (parenthesized_expression "(**(code **)(in_t9 + 0x66fc4))" ( (pointer_expression "**(code **)(in_t9 + 0x66fc4)" * (pointer_expression "*(code **)(in_t9 + 0x66fc4)" * (cast_expression "(code **)(in_t9 + 0x66fc4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x66fc4)" ( (binary_expression "in_t9 + 0x66fc4" identifier + number_literal) ))))) )) (argument_list "(p->pDataVersion,0)" ( (field_expression "p->pDataVersion" identifier -> field_identifier) , number_literal )))) ;) }) (else_clause "else {\n    iVar3 = 0;\n  }" else (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar1 = (**(code **)(in_t9 + 0x6707c))(p->pDataVersion);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0x6707c))(p->pDataVersion)" identifier = (call_expression "(**(code **)(in_t9 + 0x6707c))(p->pDataVersion)" (parenthesized_expression "(**(code **)(in_t9 + 0x6707c))" ( (pointer_expression "**(code **)(in_t9 + 0x6707c)" * (pointer_expression "*(code **)(in_t9 + 0x6707c)" * (cast_expression "(code **)(in_t9 + 0x6707c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x6707c)" ( (binary_expression "in_t9 + 0x6707c" identifier + number_literal) ))))) )) (argument_list "(p->pDataVersion)" ( (field_expression "p->pDataVersion" identifier -> field_identifier) )))) ;) (expression_statement "p->rc = iVar1;" (assignment_expression "p->rc = iVar1" (field_expression "p->rc" identifier -> field_identifier) = identifier) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "undefined8 FUN_001299e0(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}\n\n" (function_definition "undefined8 FUN_001299e0(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}" type_identifier (function_declarator "FUN_001299e0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (if_statement "if (param_1[9] != 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" identifier = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }" { (expression_statement "uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));" (assignment_expression "uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" identifier = (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" ( (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" * (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" ( (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8" identifier + number_literal) , (pointer_expression "*(undefined4 *)(*param_1 + 4)" * (cast_expression "(undefined4 *)(*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) )))) ;) (expression_statement "iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);" (assignment_expression "iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" identifier = (call_expression "FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" identifier (argument_list "(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_1 + 0x11" identifier + number_literal) , identifier )))) ;) (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 != 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" identifier = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2)" identifier = (call_expression "(*(code *)PTR_sqlite3_step_00190990)(iVar2)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_00190990)" ( (pointer_expression "*(code *)PTR_sqlite3_step_00190990" * (cast_expression "(code *)PTR_sqlite3_step_00190990" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (if_statement "if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }" { (expression_statement "uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);" (assignment_expression "uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_int64_001909a4)" ( (pointer_expression "*(code *)PTR_sqlite3_column_int64_001909a4" * (cast_expression "(code *)PTR_sqlite3_column_int64_001909a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x11],0)" ( (subscript_expression "param_1[0x11]" identifier [ number_literal ]) , number_literal )))) ;) }) (else_clause "else {\n    uVar3 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11])" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11])" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_00190a5c)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_00190a5c" * (cast_expression "(code *)PTR_sqlite3_reset_00190a5c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x11])" ( (subscript_expression "param_1[0x11]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_001299e0(int *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}" (type_identifier "undefined8") (function_declarator "FUN_001299e0(int *param_1)" (identifier "FUN_001299e0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined8 uVar3;\n  \n  if (param_1[9] != 0) {\n    return 0;\n  }\n  iVar2 = param_1[0x11];\n  if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }\n  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);\n  if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);\n  param_1[9] = iVar2;\n  return uVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (if_statement "if (param_1[9] != 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));\n    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);\n    param_1[9] = iVar2;\n    if (iVar2 != 0) {\n      return 0;\n    }\n    iVar2 = param_1[0x11];\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4));" (assignment_expression "uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_mprintf_00190964)\n                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" (parenthesized_expression "(*(code *)PTR_sqlite3_mprintf_00190964)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mprintf_00190964" (* "*") (cast_expression "(code *)PTR_sqlite3_mprintf_00190964" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mprintf_00190964"))) () ")")) (argument_list "(PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,\n                       *(undefined4 *)(*param_1 + 4))" (( "(") (binary_expression "PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8" (identifier "PTR_s_o_page_from_root____pageno_INTEG_0019095c") (+ "+") (number_literal "-0x7c8")) (, ",") (pointer_expression "*(undefined4 *)(*param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);" (assignment_expression "iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" (identifier "FUN_00120ecc") (argument_list "(*param_1,param_1 + 9,param_1 + 0x11,uVar1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) (, ",") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_step_00190990)(iVar2)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_00190990)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_step_00190990" (* "*") (cast_expression "(code *)PTR_sqlite3_step_00190990" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_step_00190990"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == 100) {\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }\n  else {\n    uVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 100)" (( "(") (binary_expression "iVar2 == 100" (identifier "iVar2") (== "==") (number_literal "100")) () ")")) (compound_statement "{\n    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);\n  }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);" (assignment_expression "uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_int64_001909a4)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_column_int64_001909a4" (* "*") (cast_expression "(code *)PTR_sqlite3_column_int64_001909a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_column_int64_001909a4"))) () ")")) (argument_list "(param_1[0x11],0)" (( "(") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]")) (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = 0;\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11])" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11])" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_00190a5c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_reset_00190a5c" (* "*") (cast_expression "(code *)PTR_sqlite3_reset_00190a5c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_reset_00190a5c"))) () ")")) (argument_list "(param_1[0x11])" (( "(") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

type_1 function_1(type_2 *p)

{
  int var_4;
  type_2 *p_1;
  type_3 *var_1;
  int var_2;
  type_1 iVar3;
  
  if (p->rc != 0) {
    return 0;
  }
  var_1 = p->pDataVersion;
  if (var_1 == (type_3 *)0x0) {
    p_1 = (type_2 *)
          (**(type_4 **)(var_2 + 0x66f84))(*(int *)(var_2 + 0x66f7c) + -0x7c8,p->pConfig->zDb);
    var_4 = var_3
                      ((type_2 *)p->pConfig,(type_3 **)&p->rc,(char *)&p->pDataVersion,p_1)
    ;
    p->rc = var_4;
    if (var_4 != 0) {
      return 0;
    }
    var_1 = p->pDataVersion;
  }
  var_4 = (**(type_4 **)(var_2 + 0x66fb0))(var_1);
  if (var_4 == 100) {
    iVar3 = (**(type_4 **)(var_2 + 0x66fc4))(p->pDataVersion,0);
  }
  else {
    iVar3 = 0;
  }
  var_4 = (**(type_4 **)(var_2 + 0x6707c))(p->pDataVersion);
  p->rc = var_4;
  return iVar3;
}


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

undefined8 MASKED(int *param_1)

{
  undefined4 uVar1;
  int iVar2;
  undefined8 uVar3;
  
  if (param_1[9] != 0) {
    return 0;
  }
  iVar2 = param_1[0x11];
  if (iVar2 == 0) {
    uVar1 = (*(code *)PTR_sqlite3_mprintf_00190964)
                      (PTR_s_o_page_from_root____pageno_INTEG_0019095c + -0x7c8,
                       *(undefined4 *)(*param_1 + 4));
    iVar2 = FUN_00120ecc(*param_1,param_1 + 9,param_1 + 0x11,uVar1);
    param_1[9] = iVar2;
    if (iVar2 != 0) {
      return 0;
    }
    iVar2 = param_1[0x11];
  }
  iVar2 = (*(code *)PTR_sqlite3_step_00190990)(iVar2);
  if (iVar2 == 100) {
    uVar3 = (*(code *)PTR_sqlite3_column_int64_001909a4)(param_1[0x11],0);
  }
  else {
    uVar3 = 0;
  }
  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_1[0x11]);
  param_1[9] = iVar2;
  return uVar3;
}

