
int sqlite3_wal_checkpoint_v2(sqlite3 *db,char *zDb,int eMode,int *pnLog,int *pnCkpt)

{
  uint uVar1;
  int iVar2;
  
  if (pnLog != (int *)0x0) {
    *pnLog = -1;
  }
  if (pnCkpt != (int *)0x0) {
    *pnCkpt = -1;
  }
  if (3 < (uint)eMode) {
    return 0x15;
  }
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);
  if ((zDb == (char *)0x0) || (*zDb == '\0')) {
    iVar2 = 10;
LAB_0008c1c4:
    (db->busyHandler).nBusy = 0;
    uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);
    db->errCode = uVar1;
    if (uVar1 == 0) {
      if (db->pErr != (sqlite3_value *)0x0) {
        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);
      }
      if (db->mallocFailed != '\0') {
LAB_0008c294:
        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);
        iVar2 = db->nVdbeActive;
        goto joined_r0x0008c2a4;
      }
    }
    else {
      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);
      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;
    }
  }
  else {
    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);
    if (-1 < iVar2) goto LAB_0008c1c4;
    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);
    if (db->mallocFailed != '\0') goto LAB_0008c294;
    uVar1 = 1;
  }
  iVar2 = db->nVdbeActive;
  uVar1 = uVar1 & db->errMask;
joined_r0x0008c2a4:
  if (iVar2 == 0) {
    (db->u1).isInterrupted = 0;
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);
  return uVar1;
}



uint sqlite3_wal_checkpoint_v2
               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)

{
  uint uVar1;
  int iVar2;
  
  if (param_4 != (undefined4 *)0x0) {
    *param_4 = 0xffffffff;
  }
  if (param_5 != (undefined4 *)0x0) {
    *param_5 = 0xffffffff;
  }
  if (3 < param_3) {
    return 0x15;
  }
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));
  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
    iVar2 = 10;
LAB_0008c1c4:
    *(undefined4 *)(param_1 + 0x1ac) = 0;
    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);
    *(uint *)(param_1 + 0x40) = uVar1;
    if (uVar1 == 0) {
      if (*(int *)(param_1 + 0x108) != 0) {
        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);
      }
      if (*(char *)(param_1 + 0x51) != '\0') {
LAB_0008c294:
        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);
        iVar2 = *(int *)(param_1 + 0xac);
        goto joined_r0x0008c2a4;
      }
    }
    else {
      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);
      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;
    }
  }
  else {
    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);
    if (-1 < iVar2) goto LAB_0008c1c4;
    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);
    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;
    uVar1 = 1;
  }
  iVar2 = *(int *)(param_1 + 0xac);
  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);
joined_r0x0008c2a4:
  if (iVar2 == 0) {
    *(undefined4 *)(param_1 + 0x110) = 0;
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));
  return uVar1;
}


lui gp,0x7
addiu gp,gp,0x1160
addu gp,gp,t9
addiu sp,sp,-0x40
sw gp,0x18(sp)
sw s3,0x34(sp)
sw ra,0x3c(sp)
sw s4,0x38(sp)
sw s2,0x30(sp)
sw s1,0x2c(sp)
sw s0,0x28(sp)
beq a3,zero,0x0008c17c
_lw s3,0x50(sp)
li v0,-0x1
sw v0,0x0(a3)
beq s3,zero,0x0008c188
_li v0,-0x1
sw v0,0x0(s3)
sltiu v0,a2,0x4
beq v0,zero,0x0008c2b8
_lw t9,-0x7e58(gp)
or s0,a0,zero
lw a0,0xc(a0)
or s2,a1,zero
or s4,a2,zero
jalr t9
_or s1,a3,zero
beq s2,zero,0x0008c1c0
_lw gp,0x18(sp)
lb v0,0x0(s2)
bne v0,zero,0x0008c2dc
_lw t9,-0x7fb4(gp)
li a1,0xa
lw t9,-0x7f98(gp)
or a3,s1,zero
sw zero,0x1ac(s0)
or a2,s4,zero
sw s3,0x10(sp)
addiu t9,t9,-0x41b4
bal 0x0008be4c
_or a0,s0,zero
lw gp,0x18(sp)
or s1,v0,zero
bne v0,zero,0x0008c264
_sw v0,0x40(s0)
lw v0,0x108(s0)
beq v0,zero,0x0008c214
_lw t9,-0x7fb4(gp)
or a1,zero,zero
addiu t9,t9,-0x6208
jalr t9
_or a0,s0,zero
lw gp,0x18(sp)
lbu v0,0x51(s0)
bne v0,zero,0x0008c294
_lw t9,-0x7fb8(gp)
lw v0,0x44(s0)
lw v1,0xac(s0)
beq v1,zero,0x0008c2ac
_and v0,s1,v0
lw t9,-0x7e30(gp)
lw a0,0xc(s0)
jalr t9
_sw v0,0x24(sp)
lw ra,0x3c(sp)
lw v0,0x24(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7fb4(gp)
or a1,v0,zero
addiu t9,t9,-0x6208
jalr t9
_or a0,s0,zero
lbu v0,0x51(s0)
bne v0,zero,0x0008c290
_lw gp,0x18(sp)
li v0,0xc0a
bne s1,v0,0x0008c220
_nop
lw t9,-0x7fb8(gp)
addiu t9,t9,-0x3de8
jalr t9
_or a0,s0,zero
lw v1,0xac(s0)
bne v1,zero,0x0008c230
_lw gp,0x18(sp)
sw zero,0x110(s0)
b 0x0008c234
_lw t9,-0x7e30(gp)
lw ra,0x3c(sp)
li v0,0x15
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x40
or a1,s2,zero
addiu t9,t9,-0x60c4
jalr t9
_or a0,s0,zero
lw gp,0x18(sp)
bgez v0,0x0008c1c4
_or a1,v0,zero
lw a2,-0x7fcc(gp)
li a1,0x1
lw t9,-0x7fa0(gp)
or a3,s2,zero
or a0,s0,zero
addiu t9,t9,0x1214
jalr t9
_addiu a2,a2,-0x7488
lbu v0,0x51(s0)
bne v0,zero,0x0008c290
_lw gp,0x18(sp)
b 0x0008c220
_li s1,0x1
(translation_unit "uint sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}\n\n" (function_definition "uint sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}" type_identifier (function_declarator "sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" identifier (parameter_list "(int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_4 = 0xffffffff;\n  }" { (expression_statement "*param_4 = 0xffffffff;" (assignment_expression "*param_4 = 0xffffffff" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) (if_statement "if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }" if (parenthesized_expression "(param_5 != (undefined4 *)0x0)" ( (binary_expression "param_5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = 0xffffffff;\n  }" { (expression_statement "*param_5 = 0xffffffff;" (assignment_expression "*param_5 = 0xffffffff" (pointer_expression "*param_5" * identifier) = number_literal) ;) })) (if_statement "if (3 < param_3) {\n    return 0x15;\n  }" if (parenthesized_expression "(3 < param_3)" ( (binary_expression "3 < param_3" number_literal < identifier) )) (compound_statement "{\n    return 0x15;\n  }" { (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (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 "(*(undefined4 *)(param_1 + 0xc))" ( (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" identifier + number_literal) )))) ))) ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }" { (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) (labeled_statement "LAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1ac)" * (cast_expression "(undefined4 *)(param_1 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);" (assignment_expression "uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5)" identifier = (call_expression "FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5)" identifier (argument_list "(param_1,iVar2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "*(uint *)(param_1 + 0x40) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x40) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x108) != 0)" ( (binary_expression "*(int *)(param_1 + 0x108) != 0" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" ( (binary_expression "PTR_LAB_000f52ec + -0x6208" identifier + number_literal) )))) )) (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }" { (labeled_statement "LAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);" statement_identifier : (expression_statement "uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);" (assignment_expression "uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + -0x3de8))" ( (pointer_expression "*(code *)(PTR_LAB_000f52e8 + -0x3de8)" * (cast_expression "(code *)(PTR_LAB_000f52e8 + -0x3de8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52e8 + -0x3de8)" ( (binary_expression "PTR_LAB_000f52e8 + -0x3de8" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0xac);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" identifier = (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x0008c2a4;" goto statement_identifier ;) })) }) (else_clause "else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" else (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" ( (binary_expression "PTR_LAB_000f52ec + -0x6208" identifier + number_literal) )))) )) (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (if_statement "if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;" if (parenthesized_expression "((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a))" ( (binary_expression "(*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)" (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar1 == 0xc0a)" ( (binary_expression "uVar1 == 0xc0a" identifier == number_literal) ))) )) (goto_statement "goto LAB_0008c294;" goto statement_identifier ;)) }))) }) (else_clause "else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" else (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x60c4)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x60c4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x60c4)" ( (binary_expression "PTR_LAB_000f52ec + -0x60c4" identifier + number_literal) )))) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) goto LAB_0008c1c4;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (goto_statement "goto LAB_0008c1c4;" goto statement_identifier ;)) (expression_statement "(*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);" (call_expression "(*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2)" (parenthesized_expression "(*(code *)(PTR_FUN_000f5300 + 0x1214))" ( (pointer_expression "*(code *)(PTR_FUN_000f5300 + 0x1214)" * (cast_expression "(code *)(PTR_FUN_000f5300 + 0x1214)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_FUN_000f5300 + 0x1214)" ( (binary_expression "PTR_FUN_000f5300 + 0x1214" identifier + number_literal) )))) )) (argument_list "(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2)" ( identifier , number_literal , (binary_expression "PTR_DAT_000f52d4 + -0x7488" identifier + number_literal) , identifier ))) ;) (if_statement "if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;" if (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008c294;" goto statement_identifier ;)) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar2 = *(int *)(param_1 + 0xac);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" identifier = (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = uVar1 & *(uint *)(param_1 + 0x44);" (assignment_expression "uVar1 = uVar1 & *(uint *)(param_1 + 0x44)" identifier = (binary_expression "uVar1 & *(uint *)(param_1 + 0x44)" identifier & (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))))) ;) (labeled_statement "joined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x110) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x110) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (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 "(*(undefined4 *)(param_1 + 0xc))" ( (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" identifier + number_literal) )))) ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int sqlite3_wal_checkpoint_v2(sqlite3 *db,char *zDb,int eMode,int *pnLog,int *pnCkpt)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (pnLog != (int *)0x0) {\n    *pnLog = -1;\n  }\n  if (pnCkpt != (int *)0x0) {\n    *pnCkpt = -1;\n  }\n  if (3 < (uint)eMode) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  if ((zDb == (char *)0x0) || (*zDb == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    (db->busyHandler).nBusy = 0;\n    uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);\n    db->errCode = uVar1;\n    if (uVar1 == 0) {\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);\n    if (db->mallocFailed != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = db->nVdbeActive;\n  uVar1 = uVar1 & db->errMask;\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    (db->u1).isInterrupted = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return uVar1;\n}\n\n" (function_definition "int sqlite3_wal_checkpoint_v2(sqlite3 *db,char *zDb,int eMode,int *pnLog,int *pnCkpt)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (pnLog != (int *)0x0) {\n    *pnLog = -1;\n  }\n  if (pnCkpt != (int *)0x0) {\n    *pnCkpt = -1;\n  }\n  if (3 < (uint)eMode) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  if ((zDb == (char *)0x0) || (*zDb == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    (db->busyHandler).nBusy = 0;\n    uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);\n    db->errCode = uVar1;\n    if (uVar1 == 0) {\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);\n    if (db->mallocFailed != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = db->nVdbeActive;\n  uVar1 = uVar1 & db->errMask;\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    (db->u1).isInterrupted = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return uVar1;\n}" primitive_type (function_declarator "sqlite3_wal_checkpoint_v2(sqlite3 *db,char *zDb,int eMode,int *pnLog,int *pnCkpt)" identifier (parameter_list "(sqlite3 *db,char *zDb,int eMode,int *pnLog,int *pnCkpt)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zDb" primitive_type (pointer_declarator "*zDb" * identifier)) , (parameter_declaration "int eMode" primitive_type identifier) , (parameter_declaration "int *pnLog" primitive_type (pointer_declarator "*pnLog" * identifier)) , (parameter_declaration "int *pnCkpt" primitive_type (pointer_declarator "*pnCkpt" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (pnLog != (int *)0x0) {\n    *pnLog = -1;\n  }\n  if (pnCkpt != (int *)0x0) {\n    *pnCkpt = -1;\n  }\n  if (3 < (uint)eMode) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  if ((zDb == (char *)0x0) || (*zDb == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    (db->busyHandler).nBusy = 0;\n    uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);\n    db->errCode = uVar1;\n    if (uVar1 == 0) {\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);\n    if (db->mallocFailed != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = db->nVdbeActive;\n  uVar1 = uVar1 & db->errMask;\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    (db->u1).isInterrupted = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (pnLog != (int *)0x0) {\n    *pnLog = -1;\n  }" if (parenthesized_expression "(pnLog != (int *)0x0)" ( (binary_expression "pnLog != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *pnLog = -1;\n  }" { (expression_statement "*pnLog = -1;" (assignment_expression "*pnLog = -1" (pointer_expression "*pnLog" * identifier) = number_literal) ;) })) (if_statement "if (pnCkpt != (int *)0x0) {\n    *pnCkpt = -1;\n  }" if (parenthesized_expression "(pnCkpt != (int *)0x0)" ( (binary_expression "pnCkpt != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *pnCkpt = -1;\n  }" { (expression_statement "*pnCkpt = -1;" (assignment_expression "*pnCkpt = -1" (pointer_expression "*pnCkpt" * identifier) = number_literal) ;) })) (if_statement "if (3 < (uint)eMode) {\n    return 0x15;\n  }" if (parenthesized_expression "(3 < (uint)eMode)" ( (binary_expression "3 < (uint)eMode" number_literal < (cast_expression "(uint)eMode" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n    return 0x15;\n  }" { (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex)" (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 "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (if_statement "if ((zDb == (char *)0x0) || (*zDb == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    (db->busyHandler).nBusy = 0;\n    uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);\n    db->errCode = uVar1;\n    if (uVar1 == 0) {\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);\n    if (db->mallocFailed != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" if (parenthesized_expression "((zDb == (char *)0x0) || (*zDb == '\0'))" ( (binary_expression "(zDb == (char *)0x0) || (*zDb == '\0')" (parenthesized_expression "(zDb == (char *)0x0)" ( (binary_expression "zDb == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*zDb == '\0')" ( (binary_expression "*zDb == '\0'" (pointer_expression "*zDb" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar2 = 10;\nLAB_0008c1c4:\n    (db->busyHandler).nBusy = 0;\n    uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);\n    db->errCode = uVar1;\n    if (uVar1 == 0) {\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }" { (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) (labeled_statement "LAB_0008c1c4:\n    (db->busyHandler).nBusy = 0;" statement_identifier : (expression_statement "(db->busyHandler).nBusy = 0;" (assignment_expression "(db->busyHandler).nBusy = 0" (field_expression "(db->busyHandler).nBusy" (parenthesized_expression "(db->busyHandler)" ( (field_expression "db->busyHandler" identifier -> field_identifier) )) . field_identifier) = number_literal) ;)) (expression_statement "uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt);" (assignment_expression "uVar1 = sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt)" identifier = (call_expression "sqlite3Checkpoint(db,iVar2,eMode,pnLog,pnCkpt)" identifier (argument_list "(db,iVar2,eMode,pnLog,pnCkpt)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "db->errCode = uVar1;" (assignment_expression "db->errCode = uVar1" (field_expression "db->errCode" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar1 == 0) {\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }\n      if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }\n    }" { (if_statement "if (db->pErr != (sqlite3_value *)0x0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }" if (parenthesized_expression "(db->pErr != (sqlite3_value *)0x0)" ( (binary_expression "db->pErr != (sqlite3_value *)0x0" (field_expression "db->pErr" identifier -> field_identifier) != (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);\n      }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(db,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" ( (binary_expression "PTR_LAB_000f52ec + -0x6208" identifier + number_literal) )))) )) (argument_list "(db,0)" ( identifier , number_literal ))) ;) })) (if_statement "if (db->mallocFailed != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }" if (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);\n        iVar2 = db->nVdbeActive;\n        goto joined_r0x0008c2a4;\n      }" { (labeled_statement "LAB_0008c294:\n        uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);" statement_identifier : (expression_statement "uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db);" (assignment_expression "uVar1 = (*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db)" identifier = (call_expression "(*(code *)(PTR_DAT_000f52e8 + -0x3de8))(db)" (parenthesized_expression "(*(code *)(PTR_DAT_000f52e8 + -0x3de8))" ( (pointer_expression "*(code *)(PTR_DAT_000f52e8 + -0x3de8)" * (cast_expression "(code *)(PTR_DAT_000f52e8 + -0x3de8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000f52e8 + -0x3de8)" ( (binary_expression "PTR_DAT_000f52e8 + -0x3de8" identifier + number_literal) )))) )) (argument_list "(db)" ( identifier )))) ;)) (expression_statement "iVar2 = db->nVdbeActive;" (assignment_expression "iVar2 = db->nVdbeActive" identifier = (field_expression "db->nVdbeActive" identifier -> field_identifier)) ;) (goto_statement "goto joined_r0x0008c2a4;" goto statement_identifier ;) })) }) (else_clause "else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" else (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);\n      if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(db,uVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" ( (binary_expression "PTR_LAB_000f52ec + -0x6208" identifier + number_literal) )))) )) (argument_list "(db,uVar1)" ( identifier , identifier ))) ;) (if_statement "if ((db->mallocFailed != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;" if (parenthesized_expression "((db->mallocFailed != '\0') || (uVar1 == 0xc0a))" ( (binary_expression "(db->mallocFailed != '\0') || (uVar1 == 0xc0a)" (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar1 == 0xc0a)" ( (binary_expression "uVar1 == 0xc0a" identifier == number_literal) ))) )) (goto_statement "goto LAB_0008c294;" goto statement_identifier ;)) }))) }) (else_clause "else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);\n    if (db->mallocFailed != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" else (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);\n    if (db->mallocFailed != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))(db,zDb)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x60c4)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x60c4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x60c4)" ( (binary_expression "PTR_LAB_000f52ec + -0x60c4" identifier + number_literal) )))) )) (argument_list "(db,zDb)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) goto LAB_0008c1c4;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (goto_statement "goto LAB_0008c1c4;" goto statement_identifier ;)) (expression_statement "(*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb);" (call_expression "(*(code *)(PTR_LAB_000f5300 + 0x1214))(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb)" (parenthesized_expression "(*(code *)(PTR_LAB_000f5300 + 0x1214))" ( (pointer_expression "*(code *)(PTR_LAB_000f5300 + 0x1214)" * (cast_expression "(code *)(PTR_LAB_000f5300 + 0x1214)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f5300 + 0x1214)" ( (binary_expression "PTR_LAB_000f5300 + 0x1214" identifier + number_literal) )))) )) (argument_list "(db,1,PTR_yy_shift_ofst_376__000f52d4 + -0x7488,zDb)" ( identifier , number_literal , (binary_expression "PTR_yy_shift_ofst_376__000f52d4 + -0x7488" identifier + number_literal) , identifier ))) ;) (if_statement "if (db->mallocFailed != '\0') goto LAB_0008c294;" if (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008c294;" goto statement_identifier ;)) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar2 = db->nVdbeActive;" (assignment_expression "iVar2 = db->nVdbeActive" identifier = (field_expression "db->nVdbeActive" identifier -> field_identifier)) ;) (expression_statement "uVar1 = uVar1 & db->errMask;" (assignment_expression "uVar1 = uVar1 & db->errMask" identifier = (binary_expression "uVar1 & db->errMask" identifier & (field_expression "db->errMask" identifier -> field_identifier))) ;) (labeled_statement "joined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    (db->u1).isInterrupted = 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    (db->u1).isInterrupted = 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    (db->u1).isInterrupted = 0;\n  }" { (expression_statement "(db->u1).isInterrupted = 0;" (assignment_expression "(db->u1).isInterrupted = 0" (field_expression "(db->u1).isInterrupted" (parenthesized_expression "(db->u1)" ( (field_expression "db->u1" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) }))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex)" (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 "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}\n\n" (function_definition "uint sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}" type_identifier (function_declarator "sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" identifier (parameter_list "(int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_4 = 0xffffffff;\n  }" { (expression_statement "*param_4 = 0xffffffff;" (assignment_expression "*param_4 = 0xffffffff" (pointer_expression "*param_4" * identifier) = number_literal) ;) })) (if_statement "if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }" if (parenthesized_expression "(param_5 != (undefined4 *)0x0)" ( (binary_expression "param_5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_5 = 0xffffffff;\n  }" { (expression_statement "*param_5 = 0xffffffff;" (assignment_expression "*param_5 = 0xffffffff" (pointer_expression "*param_5" * identifier) = number_literal) ;) })) (if_statement "if (3 < param_3) {\n    return 0x15;\n  }" if (parenthesized_expression "(3 < param_3)" ( (binary_expression "3 < param_3" number_literal < identifier) )) (compound_statement "{\n    return 0x15;\n  }" { (return_statement "return 0x15;" return number_literal ;) })) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (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 "(*(undefined4 *)(param_1 + 0xc))" ( (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" identifier + number_literal) )))) ))) ;) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }" { (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" identifier = number_literal) ;) (labeled_statement "LAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;" statement_identifier : (expression_statement "*(undefined4 *)(param_1 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1ac)" * (cast_expression "(undefined4 *)(param_1 + 0x1ac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);" (assignment_expression "uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5)" identifier = (call_expression "FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5)" identifier (argument_list "(param_1,iVar2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "*(uint *)(param_1 + 0x40) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x40) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x108) != 0)" ( (binary_expression "*(int *)(param_1 + 0x108) != 0" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" ( (binary_expression "PTR_LAB_000f52ec + -0x6208" identifier + number_literal) )))) )) (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }" { (labeled_statement "LAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);" statement_identifier : (expression_statement "uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);" (assignment_expression "uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + -0x3de8))" ( (pointer_expression "*(code *)(PTR_LAB_000f52e8 + -0x3de8)" * (cast_expression "(code *)(PTR_LAB_000f52e8 + -0x3de8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52e8 + -0x3de8)" ( (binary_expression "PTR_LAB_000f52e8 + -0x3de8" identifier + number_literal) )))) )) (argument_list "(param_1)" ( identifier )))) ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0xac);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" identifier = (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x0008c2a4;" goto statement_identifier ;) })) }) (else_clause "else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" else (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" { (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" ( (binary_expression "PTR_LAB_000f52ec + -0x6208" identifier + number_literal) )))) )) (argument_list "(param_1,uVar1)" ( identifier , identifier ))) ;) (if_statement "if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;" if (parenthesized_expression "((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a))" ( (binary_expression "(*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)" (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar1 == 0xc0a)" ( (binary_expression "uVar1 == 0xc0a" identifier == number_literal) ))) )) (goto_statement "goto LAB_0008c294;" goto statement_identifier ;)) }))) }) (else_clause "else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" else (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2)" identifier = (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))" ( (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x60c4)" * (cast_expression "(code *)(PTR_LAB_000f52ec + -0x60c4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52ec + -0x60c4)" ( (binary_expression "PTR_LAB_000f52ec + -0x60c4" identifier + number_literal) )))) )) (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (-1 < iVar2) goto LAB_0008c1c4;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (goto_statement "goto LAB_0008c1c4;" goto statement_identifier ;)) (expression_statement "(*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);" (call_expression "(*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2)" (parenthesized_expression "(*(code *)(PTR_FUN_000f5300 + 0x1214))" ( (pointer_expression "*(code *)(PTR_FUN_000f5300 + 0x1214)" * (cast_expression "(code *)(PTR_FUN_000f5300 + 0x1214)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_FUN_000f5300 + 0x1214)" ( (binary_expression "PTR_FUN_000f5300 + 0x1214" identifier + number_literal) )))) )) (argument_list "(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2)" ( identifier , number_literal , (binary_expression "PTR_DAT_000f52d4 + -0x7488" identifier + number_literal) , identifier ))) ;) (if_statement "if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;" if (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" * (cast_expression "(char *)(param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x51)" ( (binary_expression "param_1 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0008c294;" goto statement_identifier ;)) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar2 = *(int *)(param_1 + 0xac);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" identifier = (pointer_expression "*(int *)(param_1 + 0xac)" * (cast_expression "(int *)(param_1 + 0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = uVar1 & *(uint *)(param_1 + 0x44);" (assignment_expression "uVar1 = uVar1 & *(uint *)(param_1 + 0x44)" identifier = (binary_expression "uVar1 & *(uint *)(param_1 + 0x44)" identifier & (pointer_expression "*(uint *)(param_1 + 0x44)" * (cast_expression "(uint *)(param_1 + 0x44)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))))) ;) (labeled_statement "joined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x110) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x110) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) = number_literal) ;) }))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (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 "(*(undefined4 *)(param_1 + 0xc))" ( (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" identifier + number_literal) )))) ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (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 = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return IDENT ;) })))
(function_definition "uint sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "sqlite3_wal_checkpoint_v2\n               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" (identifier "sqlite3_wal_checkpoint_v2") (parameter_list "(int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }\n  if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }\n  if (3 < param_3) {\n    return 0x15;\n  }\n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }\n  iVar2 = *(int *)(param_1 + 0xac);\n  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);\njoined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_4 != (undefined4 *)0x0) {\n    *param_4 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(param_4 != (undefined4 *)0x0)" (( "(") (binary_expression "param_4 != (undefined4 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_4 = 0xffffffff;\n  }" ({ "{") (expression_statement "*param_4 = 0xffffffff;" (assignment_expression "*param_4 = 0xffffffff" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (if_statement "if (param_5 != (undefined4 *)0x0) {\n    *param_5 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(param_5 != (undefined4 *)0x0)" (( "(") (binary_expression "param_5 != (undefined4 *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_5 = 0xffffffff;\n  }" ({ "{") (expression_statement "*param_5 = 0xffffffff;" (assignment_expression "*param_5 = 0xffffffff" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (if_statement "if (3 < param_3) {\n    return 0x15;\n  }" (if "if") (parenthesized_expression "(3 < param_3)" (( "(") (binary_expression "3 < param_3" (number_literal "3") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    return 0x15;\n  }" ({ "{") (return_statement "return 0x15;" (return "return") (number_literal "0x15") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (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 "(*(undefined4 *)(param_1 + 0xc))" (( "(") (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" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }\n  else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" (if "if") (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" (( "(") (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar2 = 10;\nLAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;\n    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);\n    *(uint *)(param_1 + 0x40) = uVar1;\n    if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }\n  }" ({ "{") (expression_statement "iVar2 = 10;" (assignment_expression "iVar2 = 10" (identifier "iVar2") (= "=") (number_literal "10")) (; ";")) (labeled_statement "LAB_0008c1c4:\n    *(undefined4 *)(param_1 + 0x1ac) = 0;" (statement_identifier "LAB_0008c1c4") (: ":") (expression_statement "*(undefined4 *)(param_1 + 0x1ac) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1ac) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1ac)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1ac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1ac)" (( "(") (binary_expression "param_1 + 0x1ac" (identifier "param_1") (+ "+") (number_literal "0x1ac")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);" (assignment_expression "uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5)" (identifier "uVar1") (= "=") (call_expression "FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5)" (identifier "FUN_0008be4c") (argument_list "(param_1,iVar2,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x40) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x40) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (uVar1 == 0) {\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }\n    else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }\n      if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x108) != 0) {\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x108) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x108) != 0" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);\n      }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" (( "(") (binary_expression "PTR_LAB_000f52ec + -0x6208" (identifier "PTR_LAB_000f52ec") (+ "+") (number_literal "-0x6208")) () ")")))) () ")")) (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 0x51) != '\0') {\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" (* "*") (cast_expression "(char *)(param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x51)" (( "(") (binary_expression "param_1 + 0x51" (identifier "param_1") (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);\n        iVar2 = *(int *)(param_1 + 0xac);\n        goto joined_r0x0008c2a4;\n      }" ({ "{") (labeled_statement "LAB_0008c294:\n        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);" (statement_identifier "LAB_0008c294") (: ":") (expression_statement "uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);" (assignment_expression "uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52e8 + -0x3de8))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52e8 + -0x3de8)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52e8 + -0x3de8)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52e8 + -0x3de8)" (( "(") (binary_expression "PTR_LAB_000f52e8 + -0x3de8" (identifier "PTR_LAB_000f52e8") (+ "+") (number_literal "-0x3de8")) () ")")))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "iVar2 = *(int *)(param_1 + 0xac);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xac)" (* "*") (cast_expression "(int *)(param_1 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xac)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x0008c2a4;" (goto "goto") (statement_identifier "joined_r0x0008c2a4") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" (else "else") (compound_statement "{\n      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);\n      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;\n    }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);" (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x6208))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x6208)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52ec + -0x6208)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52ec + -0x6208)" (( "(") (binary_expression "PTR_LAB_000f52ec + -0x6208" (identifier "PTR_LAB_000f52ec") (+ "+") (number_literal "-0x6208")) () ")")))) () ")")) (argument_list "(param_1,uVar1)" (( "(") (identifier "param_1") (, ",") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a))" (( "(") (binary_expression "(*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)" (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" (* "*") (cast_expression "(char *)(param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x51)" (( "(") (binary_expression "param_1 + 0x51" (identifier "param_1") (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(uVar1 == 0xc0a)" (( "(") (binary_expression "uVar1 == 0xc0a" (identifier "uVar1") (== "==") (number_literal "0xc0a")) () ")"))) () ")")) (goto_statement "goto LAB_0008c294;" (goto "goto") (statement_identifier "LAB_0008c294") (; ";"))) (} "}")))) (} "}")) (else_clause "else {\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" (else "else") (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);\n    if (-1 < iVar2) goto LAB_0008c1c4;\n    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);\n    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;\n    uVar1 = 1;\n  }" ({ "{") (expression_statement "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2)" (parenthesized_expression "(*(code *)(PTR_LAB_000f52ec + -0x60c4))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52ec + -0x60c4)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52ec + -0x60c4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52ec + -0x60c4)" (( "(") (binary_expression "PTR_LAB_000f52ec + -0x60c4" (identifier "PTR_LAB_000f52ec") (+ "+") (number_literal "-0x60c4")) () ")")))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (-1 < iVar2) goto LAB_0008c1c4;" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (goto_statement "goto LAB_0008c1c4;" (goto "goto") (statement_identifier "LAB_0008c1c4") (; ";"))) (expression_statement "(*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);" (call_expression "(*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2)" (parenthesized_expression "(*(code *)(PTR_FUN_000f5300 + 0x1214))" (( "(") (pointer_expression "*(code *)(PTR_FUN_000f5300 + 0x1214)" (* "*") (cast_expression "(code *)(PTR_FUN_000f5300 + 0x1214)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_FUN_000f5300 + 0x1214)" (( "(") (binary_expression "PTR_FUN_000f5300 + 0x1214" (identifier "PTR_FUN_000f5300") (+ "+") (number_literal "0x1214")) () ")")))) () ")")) (argument_list "(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (binary_expression "PTR_DAT_000f52d4 + -0x7488" (identifier "PTR_DAT_000f52d4") (+ "+") (number_literal "-0x7488")) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(param_1 + 0x51)" (* "*") (cast_expression "(char *)(param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x51)" (( "(") (binary_expression "param_1 + 0x51" (identifier "param_1") (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0008c294;" (goto "goto") (statement_identifier "LAB_0008c294") (; ";"))) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "iVar2 = *(int *)(param_1 + 0xac);" (assignment_expression "iVar2 = *(int *)(param_1 + 0xac)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0xac)" (* "*") (cast_expression "(int *)(param_1 + 0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xac)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) () ")"))))) (; ";")) (expression_statement "uVar1 = uVar1 & *(uint *)(param_1 + 0x44);" (assignment_expression "uVar1 = uVar1 & *(uint *)(param_1 + 0x44)" (identifier "uVar1") (= "=") (binary_expression "uVar1 & *(uint *)(param_1 + 0x44)" (identifier "uVar1") (& "&") (pointer_expression "*(uint *)(param_1 + 0x44)" (* "*") (cast_expression "(uint *)(param_1 + 0x44)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))))) (; ";")) (labeled_statement "joined_r0x0008c2a4:\n  if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" (statement_identifier "joined_r0x0008c2a4") (: ":") (if_statement "if (iVar2 == 0) {\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x110) = 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x110) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x110) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x110)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (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 "(*(undefined4 *)(param_1 + 0xc))" (( "(") (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" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 *db,char *var_3,int eMode,int *var_1,int *var_2)

{
  type_2 var_5;
  int var_8;
  
  if (var_1 != (int *)0x0) {
    *var_1 = -1;
  }
  if (var_2 != (int *)0x0) {
    *var_2 = -1;
  }
  if (3 < (type_2)eMode) {
    return 0x15;
  }
  (*(type_3 *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);
  if ((var_3 == (char *)0x0) || (*var_3 == '\0')) {
    var_8 = 10;
LAB_0008c1c4:
    (db->busyHandler).nBusy = 0;
    var_5 = var_4(db,var_8,eMode,var_1,var_2);
    db->errCode = var_5;
    if (var_5 == 0) {
      if (db->pErr != (type_4 *)0x0) {
        (*(type_3 *)(var_6 + -0x6208))(db,0);
      }
      if (db->mallocFailed != '\0') {
LAB_0008c294:
        var_5 = (*(type_3 *)(var_7 + -0x3de8))(db);
        var_8 = db->nVdbeActive;
        goto joined_r0x0008c2a4;
      }
    }
    else {
      (*(type_3 *)(var_6 + -0x6208))(db,var_5);
      if ((db->mallocFailed != '\0') || (var_5 == 0xc0a)) goto LAB_0008c294;
    }
  }
  else {
    var_8 = (*(type_3 *)(var_6 + -0x60c4))(db,var_3);
    if (-1 < var_8) goto LAB_0008c1c4;
    (*(type_3 *)(var_9 + 0x1214))(db,1,var_10 + -0x7488,var_3);
    if (db->mallocFailed != '\0') goto LAB_0008c294;
    var_5 = 1;
  }
  var_8 = db->nVdbeActive;
  var_5 = var_5 & db->errMask;
joined_r0x0008c2a4:
  if (var_8 == 0) {
    (db->u1).isInterrupted = 0;
  }
  (*(type_3 *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);
  return var_5;
}


(translation_unit (function_definition type: (type_identifier) 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))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (return_statement (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 (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (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: (identifier))) (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: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier) (number_literal)))))) (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: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (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: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (identifier) 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 (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 (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 (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)))))))) (return_statement (identifier)))))

uint MASKED
               (int param_1,char *param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)

{
  uint uVar1;
  int iVar2;
  
  if (param_4 != (undefined4 *)0x0) {
    *param_4 = 0xffffffff;
  }
  if (param_5 != (undefined4 *)0x0) {
    *param_5 = 0xffffffff;
  }
  if (3 < param_3) {
    return 0x15;
  }
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));
  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
    iVar2 = 10;
LAB_0008c1c4:
    *(undefined4 *)(param_1 + 0x1ac) = 0;
    uVar1 = FUN_0008be4c(param_1,iVar2,param_3,param_4,param_5);
    *(uint *)(param_1 + 0x40) = uVar1;
    if (uVar1 == 0) {
      if (*(int *)(param_1 + 0x108) != 0) {
        (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,0);
      }
      if (*(char *)(param_1 + 0x51) != '\0') {
LAB_0008c294:
        uVar1 = (*(code *)(PTR_LAB_000f52e8 + -0x3de8))(param_1);
        iVar2 = *(int *)(param_1 + 0xac);
        goto joined_r0x0008c2a4;
      }
    }
    else {
      (*(code *)(PTR_LAB_000f52ec + -0x6208))(param_1,uVar1);
      if ((*(char *)(param_1 + 0x51) != '\0') || (uVar1 == 0xc0a)) goto LAB_0008c294;
    }
  }
  else {
    iVar2 = (*(code *)(PTR_LAB_000f52ec + -0x60c4))(param_1,param_2);
    if (-1 < iVar2) goto LAB_0008c1c4;
    (*(code *)(PTR_FUN_000f5300 + 0x1214))(param_1,1,PTR_DAT_000f52d4 + -0x7488,param_2);
    if (*(char *)(param_1 + 0x51) != '\0') goto LAB_0008c294;
    uVar1 = 1;
  }
  iVar2 = *(int *)(param_1 + 0xac);
  uVar1 = uVar1 & *(uint *)(param_1 + 0x44);
joined_r0x0008c2a4:
  if (iVar2 == 0) {
    *(undefined4 *)(param_1 + 0x110) = 0;
  }
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));
  return uVar1;
}

