
int fts3CursorSeek(sqlite3_context *pContext,Fts3Cursor *pCsr)

{
  int iVar1;
  sqlite3_stmt *psVar2;
  int in_t9;
  code *pcVar3;
  
  psVar2 = pCsr->pStmt;
  if (psVar2 == (sqlite3_stmt *)0x0) {
    iVar1 = fts3CursorSeekStmt(pCsr);
    if (iVar1 != 0) goto LAB_0012be7c;
    psVar2 = pCsr->pStmt;
  }
  (**(code **)(in_t9 + 0x64c8c))(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId);
  pcVar3 = *(code **)(in_t9 + 0x64b8c);
  pCsr->isRequireSeek = '\0';
  iVar1 = (*pcVar3)(pCsr->pStmt);
  if (iVar1 == 100) {
    return 0;
  }
  iVar1 = (**(code **)(in_t9 + 0x64c58))(pCsr->pStmt);
  if (iVar1 == 0) {
    if ((pCsr->base).pVtab[3].nRef != 0) {
      return 0;
    }
    iVar1 = 0x10b;
    pCsr->isEof = '\x01';
  }
LAB_0012be7c:
  if (pContext != (sqlite3_context *)0x0) {
    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);
  }
  return iVar1;
}



int FUN_0012be04(int param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  
  iVar2 = param_2[3];
  if (iVar2 == 0) {
    iVar2 = FUN_0012131c(param_2);
    if (iVar2 != 0) goto LAB_0012be7c;
    iVar2 = param_2[3];
  }
  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);
  puVar1 = PTR_sqlite3_step_00190990;
  *(undefined1 *)((int)param_2 + 7) = 0;
  iVar2 = (*(code *)puVar1)(param_2[3]);
  if (iVar2 == 100) {
    return 0;
  }
  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);
  if (iVar2 == 0) {
    if (*(int *)(*param_2 + 0x28) != 0) {
      return 0;
    }
    iVar2 = 0x10b;
    *(undefined1 *)((int)param_2 + 6) = 1;
  }
LAB_0012be7c:
  if (param_1 != 0) {
    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);
  }
  return iVar2;
}


lui gp,0x7
addiu gp,gp,-0x34e4
addu gp,gp,t9
addiu sp,sp,-0x30
sw s1,0x28(sp)
or s1,a0,zero
sw s0,0x24(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw a0,0xc(a1)
beq a0,zero,0x0012bed4
_or s0,a1,zero
lw t9,-0x7e90(gp)
li a1,0x1
lw a3,0x24(s0)
jalr t9
_lw a2,0x20(s0)
lw gp,0x10(sp)
lw a0,0xc(s0)
lw t9,-0x7f90(gp)
jalr t9
_sb zero,0x7(s0)
li v1,0x64
beq v0,v1,0x0012bebc
_lw gp,0x10(sp)
lw t9,-0x7ec4(gp)
jalr t9
_lw a0,0xc(s0)
beq v0,zero,0x0012beac
_lw gp,0x10(sp)
beq s1,zero,0x0012be98
_lw t9,-0x7f4c(gp)
or a1,v0,zero
sw v0,0x1c(sp)
jalr t9
_or a0,s1,zero
lw v0,0x1c(sp)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw v0,0x0(s0)
lw v0,0x28(v0)
beq v0,zero,0x0012bef4
_li v1,0x1
lw ra,0x2c(sp)
or v0,zero,zero
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7cbc(gp)
addiu t9,t9,0x131c
bal 0x0012131c
_or a0,a1,zero
bne v0,zero,0x0012be7c
_lw gp,0x10(sp)
b 0x0012be34
_lw a0,0xc(s0)
li v0,0x10b
b 0x0012be7c
_sb v1,0x6(s0)
(translation_unit "int FUN_0012be04(int param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0012be04(int param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0012be04(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = param_2[3];" (assignment_expression "iVar2 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }" { (expression_statement "iVar2 = FUN_0012131c(param_2);" (assignment_expression "iVar2 = FUN_0012131c(param_2)" identifier = (call_expression "FUN_0012131c(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0012be7c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0012be7c;" goto statement_identifier ;)) (expression_statement "iVar2 = param_2[3];" (assignment_expression "iVar2 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) })) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9])" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_00190a90)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int64_00190a90" * (cast_expression "(code *)PTR_sqlite3_bind_int64_00190a90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,1,param_2[8],param_2[9])" ( identifier , number_literal , (subscript_expression "param_2[8]" identifier [ number_literal ]) , (subscript_expression "param_2[9]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1 = PTR_sqlite3_step_00190990;" (assignment_expression "puVar1 = PTR_sqlite3_step_00190990" identifier = identifier) ;) (expression_statement "*(undefined1 *)((int)param_2 + 7) = 0;" (assignment_expression "*(undefined1 *)((int)param_2 + 7) = 0" (pointer_expression "*(undefined1 *)((int)param_2 + 7)" * (cast_expression "(undefined1 *)((int)param_2 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 7)" ( (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = (*(code *)puVar1)(param_2[3]);" (assignment_expression "iVar2 = (*(code *)puVar1)(param_2[3])" identifier = (call_expression "(*(code *)puVar1)(param_2[3])" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[3])" ( (subscript_expression "param_2[3]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 100) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3])" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3])" (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_2[3])" ( (subscript_expression "param_2[3]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }" { (if_statement "if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(*param_2 + 0x28) != 0)" ( (binary_expression "*(int *)(*param_2 + 0x28) != 0" (pointer_expression "*(int *)(*param_2 + 0x28)" * (cast_expression "(int *)(*param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 0x28)" ( (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + 6) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 6) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 6)" * (cast_expression "(undefined1 *)((int)param_2 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 6)" ( (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (labeled_statement "LAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" statement_identifier : (if_statement "if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" { (expression_statement "(*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);" (call_expression "(*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_code_001909d4)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_code_001909d4" * (cast_expression "(code *)PTR_sqlite3_result_error_code_001909d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar2)" ( identifier , identifier ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int fts3CursorSeek(sqlite3_context *pContext,Fts3Cursor *pCsr)\n\n{\n  int iVar1;\n  sqlite3_stmt *psVar2;\n  int in_t9;\n  code *pcVar3;\n  \n  psVar2 = pCsr->pStmt;\n  if (psVar2 == (sqlite3_stmt *)0x0) {\n    iVar1 = fts3CursorSeekStmt(pCsr);\n    if (iVar1 != 0) goto LAB_0012be7c;\n    psVar2 = pCsr->pStmt;\n  }\n  (**(code **)(in_t9 + 0x64c8c))(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId);\n  pcVar3 = *(code **)(in_t9 + 0x64b8c);\n  pCsr->isRequireSeek = '\0';\n  iVar1 = (*pcVar3)(pCsr->pStmt);\n  if (iVar1 == 100) {\n    return 0;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x64c58))(pCsr->pStmt);\n  if (iVar1 == 0) {\n    if ((pCsr->base).pVtab[3].nRef != 0) {\n      return 0;\n    }\n    iVar1 = 0x10b;\n    pCsr->isEof = '\x01';\n  }\nLAB_0012be7c:\n  if (pContext != (sqlite3_context *)0x0) {\n    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);\n  }\n  return iVar1;\n}\n\n" (function_definition "int fts3CursorSeek(sqlite3_context *pContext,Fts3Cursor *pCsr)\n\n{\n  int iVar1;\n  sqlite3_stmt *psVar2;\n  int in_t9;\n  code *pcVar3;\n  \n  psVar2 = pCsr->pStmt;\n  if (psVar2 == (sqlite3_stmt *)0x0) {\n    iVar1 = fts3CursorSeekStmt(pCsr);\n    if (iVar1 != 0) goto LAB_0012be7c;\n    psVar2 = pCsr->pStmt;\n  }\n  (**(code **)(in_t9 + 0x64c8c))(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId);\n  pcVar3 = *(code **)(in_t9 + 0x64b8c);\n  pCsr->isRequireSeek = '\0';\n  iVar1 = (*pcVar3)(pCsr->pStmt);\n  if (iVar1 == 100) {\n    return 0;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x64c58))(pCsr->pStmt);\n  if (iVar1 == 0) {\n    if ((pCsr->base).pVtab[3].nRef != 0) {\n      return 0;\n    }\n    iVar1 = 0x10b;\n    pCsr->isEof = '\x01';\n  }\nLAB_0012be7c:\n  if (pContext != (sqlite3_context *)0x0) {\n    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "fts3CursorSeek(sqlite3_context *pContext,Fts3Cursor *pCsr)" identifier (parameter_list "(sqlite3_context *pContext,Fts3Cursor *pCsr)" ( (parameter_declaration "sqlite3_context *pContext" type_identifier (pointer_declarator "*pContext" * identifier)) , (parameter_declaration "Fts3Cursor *pCsr" type_identifier (pointer_declarator "*pCsr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  sqlite3_stmt *psVar2;\n  int in_t9;\n  code *pcVar3;\n  \n  psVar2 = pCsr->pStmt;\n  if (psVar2 == (sqlite3_stmt *)0x0) {\n    iVar1 = fts3CursorSeekStmt(pCsr);\n    if (iVar1 != 0) goto LAB_0012be7c;\n    psVar2 = pCsr->pStmt;\n  }\n  (**(code **)(in_t9 + 0x64c8c))(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId);\n  pcVar3 = *(code **)(in_t9 + 0x64b8c);\n  pCsr->isRequireSeek = '\0';\n  iVar1 = (*pcVar3)(pCsr->pStmt);\n  if (iVar1 == 100) {\n    return 0;\n  }\n  iVar1 = (**(code **)(in_t9 + 0x64c58))(pCsr->pStmt);\n  if (iVar1 == 0) {\n    if ((pCsr->base).pVtab[3].nRef != 0) {\n      return 0;\n    }\n    iVar1 = 0x10b;\n    pCsr->isEof = '\x01';\n  }\nLAB_0012be7c:\n  if (pContext != (sqlite3_context *)0x0) {\n    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_stmt *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "psVar2 = pCsr->pStmt;" (assignment_expression "psVar2 = pCsr->pStmt" identifier = (field_expression "pCsr->pStmt" identifier -> field_identifier)) ;) (if_statement "if (psVar2 == (sqlite3_stmt *)0x0) {\n    iVar1 = fts3CursorSeekStmt(pCsr);\n    if (iVar1 != 0) goto LAB_0012be7c;\n    psVar2 = pCsr->pStmt;\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    iVar1 = fts3CursorSeekStmt(pCsr);\n    if (iVar1 != 0) goto LAB_0012be7c;\n    psVar2 = pCsr->pStmt;\n  }" { (expression_statement "iVar1 = fts3CursorSeekStmt(pCsr);" (assignment_expression "iVar1 = fts3CursorSeekStmt(pCsr)" identifier = (call_expression "fts3CursorSeekStmt(pCsr)" identifier (argument_list "(pCsr)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) goto LAB_0012be7c;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0012be7c;" goto statement_identifier ;)) (expression_statement "psVar2 = pCsr->pStmt;" (assignment_expression "psVar2 = pCsr->pStmt" identifier = (field_expression "pCsr->pStmt" identifier -> field_identifier)) ;) })) (expression_statement "(**(code **)(in_t9 + 0x64c8c))(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId);" (call_expression "(**(code **)(in_t9 + 0x64c8c))(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId)" (parenthesized_expression "(**(code **)(in_t9 + 0x64c8c))" ( (pointer_expression "**(code **)(in_t9 + 0x64c8c)" * (pointer_expression "*(code **)(in_t9 + 0x64c8c)" * (cast_expression "(code **)(in_t9 + 0x64c8c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x64c8c)" ( (binary_expression "in_t9 + 0x64c8c" identifier + number_literal) ))))) )) (argument_list "(psVar2,1,*(undefined4 *)&pCsr->iPrevId,(int)pCsr->iPrevId)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)&pCsr->iPrevId" * (cast_expression "(undefined4 *)&pCsr->iPrevId" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCsr->iPrevId" & (field_expression "pCsr->iPrevId" identifier -> field_identifier)))) , (cast_expression "(int)pCsr->iPrevId" ( (type_descriptor "int" primitive_type) ) (field_expression "pCsr->iPrevId" identifier -> field_identifier)) ))) ;) (expression_statement "pcVar3 = *(code **)(in_t9 + 0x64b8c);" (assignment_expression "pcVar3 = *(code **)(in_t9 + 0x64b8c)" identifier = (pointer_expression "*(code **)(in_t9 + 0x64b8c)" * (cast_expression "(code **)(in_t9 + 0x64b8c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x64b8c)" ( (binary_expression "in_t9 + 0x64b8c" identifier + number_literal) ))))) ;) (expression_statement "pCsr->isRequireSeek = '\0';" (assignment_expression "pCsr->isRequireSeek = '\0'" (field_expression "pCsr->isRequireSeek" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar1 = (*pcVar3)(pCsr->pStmt);" (assignment_expression "iVar1 = (*pcVar3)(pCsr->pStmt)" identifier = (call_expression "(*pcVar3)(pCsr->pStmt)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(pCsr->pStmt)" ( (field_expression "pCsr->pStmt" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 100) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 100)" ( (binary_expression "iVar1 == 100" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (**(code **)(in_t9 + 0x64c58))(pCsr->pStmt);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0x64c58))(pCsr->pStmt)" identifier = (call_expression "(**(code **)(in_t9 + 0x64c58))(pCsr->pStmt)" (parenthesized_expression "(**(code **)(in_t9 + 0x64c58))" ( (pointer_expression "**(code **)(in_t9 + 0x64c58)" * (pointer_expression "*(code **)(in_t9 + 0x64c58)" * (cast_expression "(code **)(in_t9 + 0x64c58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x64c58)" ( (binary_expression "in_t9 + 0x64c58" identifier + number_literal) ))))) )) (argument_list "(pCsr->pStmt)" ( (field_expression "pCsr->pStmt" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    if ((pCsr->base).pVtab[3].nRef != 0) {\n      return 0;\n    }\n    iVar1 = 0x10b;\n    pCsr->isEof = '\x01';\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((pCsr->base).pVtab[3].nRef != 0) {\n      return 0;\n    }\n    iVar1 = 0x10b;\n    pCsr->isEof = '\x01';\n  }" { (if_statement "if ((pCsr->base).pVtab[3].nRef != 0) {\n      return 0;\n    }" if (parenthesized_expression "((pCsr->base).pVtab[3].nRef != 0)" ( (binary_expression "(pCsr->base).pVtab[3].nRef != 0" (field_expression "(pCsr->base).pVtab[3].nRef" (subscript_expression "(pCsr->base).pVtab[3]" (field_expression "(pCsr->base).pVtab" (parenthesized_expression "(pCsr->base)" ( (field_expression "pCsr->base" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) . field_identifier) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;) (expression_statement "pCsr->isEof = '\x01';" (assignment_expression "pCsr->isEof = '\x01'" (field_expression "pCsr->isEof" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_0012be7c:\n  if (pContext != (sqlite3_context *)0x0) {\n    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);\n  }" statement_identifier : (if_statement "if (pContext != (sqlite3_context *)0x0) {\n    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);\n  }" if (parenthesized_expression "(pContext != (sqlite3_context *)0x0)" ( (binary_expression "pContext != (sqlite3_context *)0x0" identifier != (cast_expression "(sqlite3_context *)0x0" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);\n  }" { (expression_statement "(**(code **)(in_t9 + 0x64bd0))(pContext,iVar1);" (call_expression "(**(code **)(in_t9 + 0x64bd0))(pContext,iVar1)" (parenthesized_expression "(**(code **)(in_t9 + 0x64bd0))" ( (pointer_expression "**(code **)(in_t9 + 0x64bd0)" * (pointer_expression "*(code **)(in_t9 + 0x64bd0)" * (cast_expression "(code **)(in_t9 + 0x64bd0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x64bd0)" ( (binary_expression "in_t9 + 0x64bd0" identifier + number_literal) ))))) )) (argument_list "(pContext,iVar1)" ( identifier , identifier ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0012be04(int param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0012be04(int param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0012be04(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = param_2[3];" (assignment_expression "iVar2 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }" { (expression_statement "iVar2 = FUN_0012131c(param_2);" (assignment_expression "iVar2 = FUN_0012131c(param_2)" identifier = (call_expression "FUN_0012131c(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0012be7c;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0012be7c;" goto statement_identifier ;)) (expression_statement "iVar2 = param_2[3];" (assignment_expression "iVar2 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) })) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9])" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_00190a90)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int64_00190a90" * (cast_expression "(code *)PTR_sqlite3_bind_int64_00190a90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,1,param_2[8],param_2[9])" ( identifier , number_literal , (subscript_expression "param_2[8]" identifier [ number_literal ]) , (subscript_expression "param_2[9]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar1 = PTR_sqlite3_step_00190990;" (assignment_expression "puVar1 = PTR_sqlite3_step_00190990" identifier = identifier) ;) (expression_statement "*(undefined1 *)((int)param_2 + 7) = 0;" (assignment_expression "*(undefined1 *)((int)param_2 + 7) = 0" (pointer_expression "*(undefined1 *)((int)param_2 + 7)" * (cast_expression "(undefined1 *)((int)param_2 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 7)" ( (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = (*(code *)puVar1)(param_2[3]);" (assignment_expression "iVar2 = (*(code *)puVar1)(param_2[3])" identifier = (call_expression "(*(code *)puVar1)(param_2[3])" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2[3])" ( (subscript_expression "param_2[3]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 100) {\n    return 0;\n  }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3])" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3])" (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_2[3])" ( (subscript_expression "param_2[3]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }" { (if_statement "if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(*param_2 + 0x28) != 0)" ( (binary_expression "*(int *)(*param_2 + 0x28) != 0" (pointer_expression "*(int *)(*param_2 + 0x28)" * (cast_expression "(int *)(*param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 0x28)" ( (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" identifier = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + 6) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 6) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 6)" * (cast_expression "(undefined1 *)((int)param_2 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 6)" ( (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (labeled_statement "LAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" statement_identifier : (if_statement "if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" { (expression_statement "(*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);" (call_expression "(*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_code_001909d4)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_code_001909d4" * (cast_expression "(code *)PTR_sqlite3_result_error_code_001909d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,iVar2)" ( identifier , identifier ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = 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 ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return 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 ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0012be04(int param_1,int *param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0012be04(int param_1,int *param_2)" (identifier "FUN_0012be04") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  \n  iVar2 = param_2[3];\n  if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }\n  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);\n  puVar1 = PTR_sqlite3_step_00190990;\n  *(undefined1 *)((int)param_2 + 7) = 0;\n  iVar2 = (*(code *)puVar1)(param_2[3]);\n  if (iVar2 == 100) {\n    return 0;\n  }\n  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);\n  if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }\nLAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }\n  return iVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = param_2[3];" (assignment_expression "iVar2 = param_2[3]" (identifier "iVar2") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_0012131c(param_2);\n    if (iVar2 != 0) goto LAB_0012be7c;\n    iVar2 = param_2[3];\n  }" ({ "{") (expression_statement "iVar2 = FUN_0012131c(param_2);" (assignment_expression "iVar2 = FUN_0012131c(param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_0012131c(param_2)" (identifier "FUN_0012131c") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0012be7c;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0012be7c;" (goto "goto") (statement_identifier "LAB_0012be7c") (; ";"))) (expression_statement "iVar2 = param_2[3];" (assignment_expression "iVar2 = param_2[3]" (identifier "iVar2") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9])" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_00190a90)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_int64_00190a90" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_int64_00190a90" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_int64_00190a90"))) () ")")) (argument_list "(iVar2,1,param_2[8],param_2[9])" (( "(") (identifier "iVar2") (, ",") (number_literal "1") (, ",") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (, ",") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR_sqlite3_step_00190990;" (assignment_expression "puVar1 = PTR_sqlite3_step_00190990" (identifier "puVar1") (= "=") (identifier "PTR_sqlite3_step_00190990")) (; ";")) (expression_statement "*(undefined1 *)((int)param_2 + 7) = 0;" (assignment_expression "*(undefined1 *)((int)param_2 + 7) = 0" (pointer_expression "*(undefined1 *)((int)param_2 + 7)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 7)" (( "(") (binary_expression "(int)param_2 + 7" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)puVar1)(param_2[3]);" (assignment_expression "iVar2 = (*(code *)puVar1)(param_2[3])" (identifier "iVar2") (= "=") (call_expression "(*(code *)puVar1)(param_2[3])" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_2[3])" (( "(") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 == 100) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 100)" (( "(") (binary_expression "iVar2 == 100" (identifier "iVar2") (== "==") (number_literal "100")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3])" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3])" (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_2[3])" (( "(") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }\n    iVar2 = 0x10b;\n    *(undefined1 *)((int)param_2 + 6) = 1;\n  }" ({ "{") (if_statement "if (*(int *)(*param_2 + 0x28) != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(*param_2 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(*param_2 + 0x28) != 0" (pointer_expression "*(int *)(*param_2 + 0x28)" (* "*") (cast_expression "(int *)(*param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 0x28)" (( "(") (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = 0x10b;" (assignment_expression "iVar2 = 0x10b" (identifier "iVar2") (= "=") (number_literal "0x10b")) (; ";")) (expression_statement "*(undefined1 *)((int)param_2 + 6) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 6) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 6)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + 6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 6)" (( "(") (binary_expression "(int)param_2 + 6" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (labeled_statement "LAB_0012be7c:\n  if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" (statement_identifier "LAB_0012be7c") (: ":") (if_statement "if (param_1 != 0) {\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);\n  }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);" (call_expression "(*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_code_001909d4)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_result_error_code_001909d4" (* "*") (cast_expression "(code *)PTR_sqlite3_result_error_code_001909d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_result_error_code_001909d4"))) () ")")) (argument_list "(param_1,iVar2)" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

int function_1(type_1 *var_5,type_2 *pCsr)

{
  int var_3;
  type_3 *var_1;
  int var_4;
  type_4 *pcVar3;
  
  var_1 = pCsr->pStmt;
  if (var_1 == (type_3 *)0x0) {
    var_3 = var_2(pCsr);
    if (var_3 != 0) goto LAB_0012be7c;
    var_1 = pCsr->pStmt;
  }
  (**(type_4 **)(var_4 + 0x64c8c))(var_1,1,*(type_5 *)&pCsr->iPrevId,(int)pCsr->iPrevId);
  pcVar3 = *(type_4 **)(var_4 + 0x64b8c);
  pCsr->isRequireSeek = '\0';
  var_3 = (*pcVar3)(pCsr->pStmt);
  if (var_3 == 100) {
    return 0;
  }
  var_3 = (**(type_4 **)(var_4 + 0x64c58))(pCsr->pStmt);
  if (var_3 == 0) {
    if ((pCsr->base).pVtab[3].nRef != 0) {
      return 0;
    }
    var_3 = 0x10b;
    pCsr->isEof = '\x01';
  }
LAB_0012be7c:
  if (var_5 != (type_1 *)0x0) {
    (**(type_4 **)(var_4 + 0x64bd0))(var_5,var_3);
  }
  return var_3;
}


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

int MASKED(int param_1,int *param_2)

{
  undefined *puVar1;
  int iVar2;
  
  iVar2 = param_2[3];
  if (iVar2 == 0) {
    iVar2 = FUN_0012131c(param_2);
    if (iVar2 != 0) goto LAB_0012be7c;
    iVar2 = param_2[3];
  }
  (*(code *)PTR_sqlite3_bind_int64_00190a90)(iVar2,1,param_2[8],param_2[9]);
  puVar1 = PTR_sqlite3_step_00190990;
  *(undefined1 *)((int)param_2 + 7) = 0;
  iVar2 = (*(code *)puVar1)(param_2[3]);
  if (iVar2 == 100) {
    return 0;
  }
  iVar2 = (*(code *)PTR_sqlite3_reset_00190a5c)(param_2[3]);
  if (iVar2 == 0) {
    if (*(int *)(*param_2 + 0x28) != 0) {
      return 0;
    }
    iVar2 = 0x10b;
    *(undefined1 *)((int)param_2 + 6) = 1;
  }
LAB_0012be7c:
  if (param_1 != 0) {
    (*(code *)PTR_sqlite3_result_error_code_001909d4)(param_1,iVar2);
  }
  return iVar2;
}

