
int sqlite3_clear_bindings(sqlite3_stmt *pStmt)

{
  Mem *p;
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  
  uVar4 = *(undefined4 *)(*(int *)pStmt + 0xc);
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar4);
  iVar2 = (int)*(short *)(pStmt + 0x10);
  if (0 < iVar2) {
    iVar3 = 0;
    iVar1 = *(int *)(pStmt + 100);
    iVar5 = 0;
    do {
      p = (Mem *)(iVar1 + iVar3);
      iVar5 = iVar5 + 1;
      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {
        vdbeMemClear(p);
        iVar1 = *(int *)(pStmt + 100);
        iVar2 = (int)*(short *)(pStmt + 0x10);
        p = (Mem *)(iVar1 + iVar3);
      }
      p->flags = 1;
      iVar3 = iVar3 + 0x28;
    } while (iVar5 < iVar2);
  }
  if (*(int *)(pStmt + 0xd0) != 0) {
    *(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar4);
  return 0;
}



undefined4 sqlite3_clear_bindings(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  
  uVar5 = *(undefined4 *)(*param_1 + 0xc);
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);
  iVar3 = (int)*(short *)(param_1 + 4);
  if (0 < iVar3) {
    iVar4 = 0;
    iVar2 = param_1[0x19];
    iVar6 = 0;
    do {
      iVar1 = iVar2 + iVar4;
      iVar6 = iVar6 + 1;
      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {
        FUN_00028f1c(iVar1);
        iVar2 = param_1[0x19];
        iVar3 = (int)*(short *)(param_1 + 4);
        iVar1 = iVar2 + iVar4;
      }
      *(undefined2 *)(iVar1 + 8) = 1;
      iVar4 = iVar4 + 0x28;
    } while (iVar6 < iVar3);
  }
  if (param_1[0x34] != 0) {
    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);
  return 0;
}


lui gp,0xd
addiu gp,gp,0x4048
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x38
lw t9,-0x7e58(gp)
sw s3,0x28(sp)
sw s5,0x30(sp)
or s5,a0,zero
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s4,0x2c(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw s3,0xc(v0)
jalr t9
_or a0,s3,zero
lh a2,0x10(s5)
blez a2,0x00029314
_lw gp,0x10(sp)
lw s2,-0x7fb4(gp)
or s0,zero,zero
lw a1,0x64(s5)
or s4,zero,zero
li s1,0x1
addiu s2,s2,-0x70e4
addu v0,a1,s0
addiu s4,s4,0x1
lhu v1,0x8(v0)
andi v1,v1,0x2400
bne v1,zero,0x000292e8
_or a0,v0,zero
lw v1,0x18(v0)
beq v1,zero,0x00029308
_slt v1,s4,a2
or t9,s2,zero
bal 0x00028f1c
_nop
lw a1,0x64(s5)
lw gp,0x10(sp)
lh a2,0x10(s5)
addu v0,a1,s0
slt v1,s4,a2
sh s1,0x8(v0)
bne v1,zero,0x000292c4
_addiu s0,s0,0x28
lw v0,0xd0(s5)
beq v0,zero,0x0002932c
_li v1,0x1
lhu v0,0x96(s5)
ins v0,v1,0xe,0x2
sh v0,0x96(s5)
lw t9,-0x7e30(gp)
jalr t9
_or a0,s3,zero
or v0,zero,zero
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 sqlite3_clear_bindings(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_clear_bindings(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}" type_identifier (function_declarator "sqlite3_clear_bindings(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "uVar5 = *(undefined4 *)(*param_1 + 0xc);" (assignment_expression "uVar5 = *(undefined4 *)(*param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "iVar3 = (int)*(short *)(param_1 + 4);" (assignment_expression "iVar3 = (int)*(short *)(param_1 + 4)" identifier = (cast_expression "(int)*(short *)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_1 + 4)" * (cast_expression "(short *)(param_1 + 4)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) ;) (if_statement "if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);" do (compound_statement "{\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    }" { (expression_statement "iVar1 = iVar2 + iVar4;" (assignment_expression "iVar1 = iVar2 + iVar4" identifier = (binary_expression "iVar2 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }" if (parenthesized_expression "(((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0))" ( (binary_expression "((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(iVar1 + 8) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(iVar1 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(iVar1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(iVar1 + 8) & 0x2400" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }" { (expression_statement "FUN_00028f1c(iVar1);" (call_expression "FUN_00028f1c(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = (int)*(short *)(param_1 + 4);" (assignment_expression "iVar3 = (int)*(short *)(param_1 + 4)" identifier = (cast_expression "(int)*(short *)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_1 + 4)" * (cast_expression "(short *)(param_1 + 4)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = iVar2 + iVar4;" (assignment_expression "iVar1 = iVar2 + iVar4" identifier = (binary_expression "iVar2 + iVar4" identifier + identifier)) ;) })) (expression_statement "*(undefined2 *)(iVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(iVar1 + 8)" * (cast_expression "(undefined2 *)(iVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = iVar4 + 0x28;" (assignment_expression "iVar4 = iVar4 + 0x28" identifier = (binary_expression "iVar4 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < iVar3)" ( (binary_expression "iVar6 < iVar3" identifier < identifier) )) ;) })) (if_statement "if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }" if (parenthesized_expression "(param_1[0x34] != 0)" ( (binary_expression "param_1[0x34] != 0" (subscript_expression "param_1[0x34]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }" { (expression_statement "*(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;" (assignment_expression "*(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000" (pointer_expression "*(ushort *)((int)param_1 + 0x96)" * (cast_expression "(ushort *)((int)param_1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x96)" ( (binary_expression "(int)param_1 + 0x96" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000" (binary_expression "*(ushort *)((int)param_1 + 0x96) & 0x3fff" (pointer_expression "*(ushort *)((int)param_1 + 0x96)" * (cast_expression "(ushort *)((int)param_1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x96)" ( (binary_expression "(int)param_1 + 0x96" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3_clear_bindings(sqlite3_stmt *pStmt)\n\n{\n  Mem *p;\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = *(undefined4 *)(*(int *)pStmt + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar4);\n  iVar2 = (int)*(short *)(pStmt + 0x10);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    iVar1 = *(int *)(pStmt + 100);\n    iVar5 = 0;\n    do {\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    } while (iVar5 < iVar2);\n  }\n  if (*(int *)(pStmt + 0xd0) != 0) {\n    *(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar4);\n  return 0;\n}\n\n" (function_definition "int sqlite3_clear_bindings(sqlite3_stmt *pStmt)\n\n{\n  Mem *p;\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = *(undefined4 *)(*(int *)pStmt + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar4);\n  iVar2 = (int)*(short *)(pStmt + 0x10);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    iVar1 = *(int *)(pStmt + 100);\n    iVar5 = 0;\n    do {\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    } while (iVar5 < iVar2);\n  }\n  if (*(int *)(pStmt + 0xd0) != 0) {\n    *(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar4);\n  return 0;\n}" primitive_type (function_declarator "sqlite3_clear_bindings(sqlite3_stmt *pStmt)" identifier (parameter_list "(sqlite3_stmt *pStmt)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) ))) (compound_statement "{\n  Mem *p;\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  uVar4 = *(undefined4 *)(*(int *)pStmt + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar4);\n  iVar2 = (int)*(short *)(pStmt + 0x10);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    iVar1 = *(int *)(pStmt + 100);\n    iVar5 = 0;\n    do {\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    } while (iVar5 < iVar2);\n  }\n  if (*(int *)(pStmt + 0xd0) != 0) {\n    *(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar4);\n  return 0;\n}" { (declaration "Mem *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "uVar4 = *(undefined4 *)(*(int *)pStmt + 0xc);" (assignment_expression "uVar4 = *(undefined4 *)(*(int *)pStmt + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*(int *)pStmt + 0xc)" * (cast_expression "(undefined4 *)(*(int *)pStmt + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)pStmt + 0xc)" ( (binary_expression "*(int *)pStmt + 0xc" (pointer_expression "*(int *)pStmt" * (cast_expression "(int *)pStmt" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar4);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar4)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar2 = (int)*(short *)(pStmt + 0x10);" (assignment_expression "iVar2 = (int)*(short *)(pStmt + 0x10)" identifier = (cast_expression "(int)*(short *)(pStmt + 0x10)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(pStmt + 0x10)" * (cast_expression "(short *)(pStmt + 0x10)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x10)" ( (binary_expression "pStmt + 0x10" identifier + number_literal) )))))) ;) (if_statement "if (0 < iVar2) {\n    iVar3 = 0;\n    iVar1 = *(int *)(pStmt + 100);\n    iVar5 = 0;\n    do {\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    } while (iVar5 < iVar2);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = 0;\n    iVar1 = *(int *)(pStmt + 100);\n    iVar5 = 0;\n    do {\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    } while (iVar5 < iVar2);\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(pStmt + 100);" (assignment_expression "iVar1 = *(int *)(pStmt + 100)" identifier = (pointer_expression "*(int *)(pStmt + 100)" * (cast_expression "(int *)(pStmt + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 100)" ( (binary_expression "pStmt + 100" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    } while (iVar5 < iVar2);" do (compound_statement "{\n      p = (Mem *)(iVar1 + iVar3);\n      iVar5 = iVar5 + 1;\n      if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }\n      p->flags = 1;\n      iVar3 = iVar3 + 0x28;\n    }" { (expression_statement "p = (Mem *)(iVar1 + iVar3);" (assignment_expression "p = (Mem *)(iVar1 + iVar3)" identifier = (cast_expression "(Mem *)(iVar1 + iVar3)" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" identifier + identifier) )))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }" if (parenthesized_expression "(((p->flags & 0x2400) != 0) || (p->szMalloc != 0))" ( (binary_expression "((p->flags & 0x2400) != 0) || (p->szMalloc != 0)" (parenthesized_expression "((p->flags & 0x2400) != 0)" ( (binary_expression "(p->flags & 0x2400) != 0" (parenthesized_expression "(p->flags & 0x2400)" ( (binary_expression "p->flags & 0x2400" (field_expression "p->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) || (parenthesized_expression "(p->szMalloc != 0)" ( (binary_expression "p->szMalloc != 0" (field_expression "p->szMalloc" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n        vdbeMemClear(p);\n        iVar1 = *(int *)(pStmt + 100);\n        iVar2 = (int)*(short *)(pStmt + 0x10);\n        p = (Mem *)(iVar1 + iVar3);\n      }" { (expression_statement "vdbeMemClear(p);" (call_expression "vdbeMemClear(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "iVar1 = *(int *)(pStmt + 100);" (assignment_expression "iVar1 = *(int *)(pStmt + 100)" identifier = (pointer_expression "*(int *)(pStmt + 100)" * (cast_expression "(int *)(pStmt + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 100)" ( (binary_expression "pStmt + 100" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (int)*(short *)(pStmt + 0x10);" (assignment_expression "iVar2 = (int)*(short *)(pStmt + 0x10)" identifier = (cast_expression "(int)*(short *)(pStmt + 0x10)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(pStmt + 0x10)" * (cast_expression "(short *)(pStmt + 0x10)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x10)" ( (binary_expression "pStmt + 0x10" identifier + number_literal) )))))) ;) (expression_statement "p = (Mem *)(iVar1 + iVar3);" (assignment_expression "p = (Mem *)(iVar1 + iVar3)" identifier = (cast_expression "(Mem *)(iVar1 + iVar3)" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" identifier + identifier) )))) ;) })) (expression_statement "p->flags = 1;" (assignment_expression "p->flags = 1" (field_expression "p->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 0x28;" (assignment_expression "iVar3 = iVar3 + 0x28" identifier = (binary_expression "iVar3 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < iVar2)" ( (binary_expression "iVar5 < iVar2" identifier < identifier) )) ;) })) (if_statement "if (*(int *)(pStmt + 0xd0) != 0) {\n    *(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;\n  }" if (parenthesized_expression "(*(int *)(pStmt + 0xd0) != 0)" ( (binary_expression "*(int *)(pStmt + 0xd0) != 0" (pointer_expression "*(int *)(pStmt + 0xd0)" * (cast_expression "(int *)(pStmt + 0xd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0xd0)" ( (binary_expression "pStmt + 0xd0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;\n  }" { (expression_statement "*(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000;" (assignment_expression "*(ushort *)(pStmt + 0x96) = *(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000" (pointer_expression "*(ushort *)(pStmt + 0x96)" * (cast_expression "(ushort *)(pStmt + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x96)" ( (binary_expression "pStmt + 0x96" identifier + number_literal) )))) = (binary_expression "*(ushort *)(pStmt + 0x96) & 0x3fff | 0x4000" (binary_expression "*(ushort *)(pStmt + 0x96) & 0x3fff" (pointer_expression "*(ushort *)(pStmt + 0x96)" * (cast_expression "(ushort *)(pStmt + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pStmt + 0x96)" ( (binary_expression "pStmt + 0x96" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar4);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar4)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 sqlite3_clear_bindings(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_clear_bindings(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}" type_identifier (function_declarator "sqlite3_clear_bindings(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "uVar5 = *(undefined4 *)(*param_1 + 0xc);" (assignment_expression "uVar5 = *(undefined4 *)(*param_1 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" * (cast_expression "(undefined4 *)(*param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "iVar3 = (int)*(short *)(param_1 + 4);" (assignment_expression "iVar3 = (int)*(short *)(param_1 + 4)" identifier = (cast_expression "(int)*(short *)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_1 + 4)" * (cast_expression "(short *)(param_1 + 4)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) ;) (if_statement "if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);" do (compound_statement "{\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    }" { (expression_statement "iVar1 = iVar2 + iVar4;" (assignment_expression "iVar1 = iVar2 + iVar4" identifier = (binary_expression "iVar2 + iVar4" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }" if (parenthesized_expression "(((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0))" ( (binary_expression "((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(iVar1 + 8) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(iVar1 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(iVar1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(iVar1 + 8) & 0x2400" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }" { (expression_statement "FUN_00028f1c(iVar1);" (call_expression "FUN_00028f1c(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = (int)*(short *)(param_1 + 4);" (assignment_expression "iVar3 = (int)*(short *)(param_1 + 4)" identifier = (cast_expression "(int)*(short *)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_1 + 4)" * (cast_expression "(short *)(param_1 + 4)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar1 = iVar2 + iVar4;" (assignment_expression "iVar1 = iVar2 + iVar4" identifier = (binary_expression "iVar2 + iVar4" identifier + identifier)) ;) })) (expression_statement "*(undefined2 *)(iVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(iVar1 + 8)" * (cast_expression "(undefined2 *)(iVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = iVar4 + 0x28;" (assignment_expression "iVar4 = iVar4 + 0x28" identifier = (binary_expression "iVar4 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < iVar3)" ( (binary_expression "iVar6 < iVar3" identifier < identifier) )) ;) })) (if_statement "if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }" if (parenthesized_expression "(param_1[0x34] != 0)" ( (binary_expression "param_1[0x34] != 0" (subscript_expression "param_1[0x34]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }" { (expression_statement "*(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;" (assignment_expression "*(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000" (pointer_expression "*(ushort *)((int)param_1 + 0x96)" * (cast_expression "(ushort *)((int)param_1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x96)" ( (binary_expression "(int)param_1 + 0x96" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000" (binary_expression "*(ushort *)((int)param_1 + 0x96) & 0x3fff" (pointer_expression "*(ushort *)((int)param_1 + 0x96)" * (cast_expression "(ushort *)((int)param_1 + 0x96)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x96)" ( (binary_expression "(int)param_1 + 0x96" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(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 ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (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) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) | LIT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 sqlite3_clear_bindings(int *param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "sqlite3_clear_bindings(int *param_1)" (identifier "sqlite3_clear_bindings") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  \n  uVar5 = *(undefined4 *)(*param_1 + 0xc);\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);\n  iVar3 = (int)*(short *)(param_1 + 4);\n  if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }\n  if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "uVar5 = *(undefined4 *)(*param_1 + 0xc);" (assignment_expression "uVar5 = *(undefined4 *)(*param_1 + 0xc)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(*param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_enter_000f5448"))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "iVar3 = (int)*(short *)(param_1 + 4);" (assignment_expression "iVar3 = (int)*(short *)(param_1 + 4)" (identifier "iVar3") (= "=") (cast_expression "(int)*(short *)(param_1 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(param_1 + 4)" (* "*") (cast_expression "(short *)(param_1 + 4)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (if_statement "if (0 < iVar3) {\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    iVar4 = 0;\n    iVar2 = param_1[0x19];\n    iVar6 = 0;\n    do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    } while (iVar6 < iVar3);" (do "do") (compound_statement "{\n      iVar1 = iVar2 + iVar4;\n      iVar6 = iVar6 + 1;\n      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar4 = iVar4 + 0x28;\n    }" ({ "{") (expression_statement "iVar1 = iVar2 + iVar4;" (assignment_expression "iVar1 = iVar2 + iVar4" (identifier "iVar1") (= "=") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }" (if "if") (parenthesized_expression "(((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0))" (( "(") (binary_expression "((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)" (parenthesized_expression "((*(ushort *)(iVar1 + 8) & 0x2400) != 0)" (( "(") (binary_expression "(*(ushort *)(iVar1 + 8) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(iVar1 + 8) & 0x2400)" (( "(") (binary_expression "*(ushort *)(iVar1 + 8) & 0x2400" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(iVar1 + 0x18) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x18) != 0" (pointer_expression "*(int *)(iVar1 + 0x18)" (* "*") (cast_expression "(int *)(iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        FUN_00028f1c(iVar1);\n        iVar2 = param_1[0x19];\n        iVar3 = (int)*(short *)(param_1 + 4);\n        iVar1 = iVar2 + iVar4;\n      }" ({ "{") (expression_statement "FUN_00028f1c(iVar1);" (call_expression "FUN_00028f1c(iVar1)" (identifier "FUN_00028f1c") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (expression_statement "iVar3 = (int)*(short *)(param_1 + 4);" (assignment_expression "iVar3 = (int)*(short *)(param_1 + 4)" (identifier "iVar3") (= "=") (cast_expression "(int)*(short *)(param_1 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(param_1 + 4)" (* "*") (cast_expression "(short *)(param_1 + 4)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (expression_statement "iVar1 = iVar2 + iVar4;" (assignment_expression "iVar1 = iVar2 + iVar4" (identifier "iVar1") (= "=") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "*(undefined2 *)(iVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar4 = iVar4 + 0x28;" (assignment_expression "iVar4 = iVar4 + 0x28" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 0x28" (identifier "iVar4") (+ "+") (number_literal "0x28"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < iVar3)" (( "(") (binary_expression "iVar6 < iVar3" (identifier "iVar6") (< "<") (identifier "iVar3")) () ")")) (; ";")) (} "}"))) (if_statement "if (param_1[0x34] != 0) {\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }" (if "if") (parenthesized_expression "(param_1[0x34] != 0)" (( "(") (binary_expression "param_1[0x34] != 0" (subscript_expression "param_1[0x34]" (identifier "param_1") ([ "[") (number_literal "0x34") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;\n  }" ({ "{") (expression_statement "*(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;" (assignment_expression "*(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000" (pointer_expression "*(ushort *)((int)param_1 + 0x96)" (* "*") (cast_expression "(ushort *)((int)param_1 + 0x96)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x96)" (( "(") (binary_expression "(int)param_1 + 0x96" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x96")) () ")")))) (= "=") (binary_expression "*(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000" (binary_expression "*(ushort *)((int)param_1 + 0x96) & 0x3fff" (pointer_expression "*(ushort *)((int)param_1 + 0x96)" (* "*") (cast_expression "(ushort *)((int)param_1 + 0x96)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x96)" (( "(") (binary_expression "(int)param_1 + 0x96" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x96")) () ")")))) (& "&") (number_literal "0x3fff")) (| "|") (number_literal "0x4000"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_leave_000f5470"))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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 (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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (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: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (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: (binary_expression left: (binary_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)) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int *param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  
  uVar5 = *(undefined4 *)(*param_1 + 0xc);
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(uVar5);
  iVar3 = (int)*(short *)(param_1 + 4);
  if (0 < iVar3) {
    iVar4 = 0;
    iVar2 = param_1[0x19];
    iVar6 = 0;
    do {
      iVar1 = iVar2 + iVar4;
      iVar6 = iVar6 + 1;
      if (((*(ushort *)(iVar1 + 8) & 0x2400) != 0) || (*(int *)(iVar1 + 0x18) != 0)) {
        FUN_00028f1c(iVar1);
        iVar2 = param_1[0x19];
        iVar3 = (int)*(short *)(param_1 + 4);
        iVar1 = iVar2 + iVar4;
      }
      *(undefined2 *)(iVar1 + 8) = 1;
      iVar4 = iVar4 + 0x28;
    } while (iVar6 < iVar3);
  }
  if (param_1[0x34] != 0) {
    *(ushort *)((int)param_1 + 0x96) = *(ushort *)((int)param_1 + 0x96) & 0x3fff | 0x4000;
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(uVar5);
  return 0;
}

