
int sqlite3Fts5StorageConfigValue(Fts5Storage *p,char *z,sqlite3_value *pVal,int iVal)

{
  Fts5Storage *p_00;
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  Fts5Config *pFVar4;
  u8 auVar5 [4];
  undefined *puVar6;
  sqlite3_stmt *pReplace;
  sqlite3_blob *pBlob;
  u8 aCookie [4];
  
  puVar6 = PTR___stack_chk_guard_0015ba2c;
  pReplace = (sqlite3_stmt *)0x0;
  p_00 = *(Fts5Storage **)PTR___stack_chk_guard_0015ba2c;
  iVar1 = fts5StorageGetStmt(p,9,&pReplace,(char **)0x0);
  if (iVar1 == 0) {
    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);
    if (pVal == (sqlite3_value *)0x0) {
      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);
      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);
      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);
    }
    else {
      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);
      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);
      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);
      if (iVar1 == 0) {
        pFVar4 = p->pIndex->pConfig;
        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);
        pBlob = (sqlite3_blob *)0x0;
        aCookie = auVar5;
        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,
                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);
        if (iVar1 == 0) {
          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);
          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);
          if (iVar1 == 0) {
            p->pConfig->iCookie = (int)auVar5;
          }
        }
      }
    }
  }
  if (p_00 != *(Fts5Storage **)puVar6) {
    puVar6 = PTR___stack_chk_fail_0015ba10;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    pFVar4 = p_00->pConfig;
    pcVar3 = pFVar4->zDb;
    pcVar2 = pFVar4->zName;
    iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),
                           pcVar3,pcVar2,pcVar3,pcVar2);
    if (iVar1 == 0) {
      if ((pFVar4->bColumnsize != 0) &&
         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,
                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,
                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {
        return iVar1;
      }
      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);
      if (iVar1 == 0) {
        iVar1 = sqlite3Fts5StorageConfigValue
                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,
                           4);
        return iVar1;
      }
    }
    return iVar1;
  }
  return iVar1;
}



int FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined *puVar7;
  undefined4 local_30;
  undefined4 local_2c;
  int local_28;
  undefined4 *local_24;
  
  puVar7 = PTR___stack_chk_guard_0015ba2c;
  local_30 = 0;
  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;
  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);
  if (iVar1 == 0) {
    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);
    if (param_3 == 0) {
      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);
      (*(code *)PTR_sqlite3_step_0015b630)(local_30);
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);
    }
    else {
      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);
      (*(code *)PTR_sqlite3_step_0015b630)(local_30);
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);
      if (iVar1 == 0) {
        puVar2 = *(undefined4 **)param_1[1];
        iVar6 = *(int *)(*param_1 + 0x40) + 1;
        local_2c = 0;
        local_28 = iVar6;
        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],
                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);
        if (iVar1 == 0) {
          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);
          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);
          if (iVar1 == 0) {
            *(int *)(*param_1 + 0x40) = iVar6;
          }
        }
      }
    }
  }
  if (local_24 != *(undefined4 **)puVar7) {
    puVar2 = local_24;
    puVar7 = PTR___stack_chk_fail_0015ba10;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    puVar5 = (undefined4 *)*puVar2;
    uVar4 = puVar5[1];
    uVar3 = puVar5[2];
    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);
    if (iVar1 == 0) {
      if ((puVar5[0xb] != 0) &&
         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],
                               uVar4,uVar3), iVar1 != 0)) {
        return iVar1;
      }
      iVar1 = FUN_00102058(puVar2[1]);
      if (iVar1 == 0) {
        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);
        return iVar1;
      }
    }
    return iVar1;
  }
  return iVar1;
}


lui gp,0x5
addiu gp,gp,0x40c4
addu gp,gp,t9
addiu sp,sp,-0x58
lw t9,-0x7d30(gp)
sw s1,0x40(sp)
addiu t9,t9,0x7be0
sw gp,0x20(sp)
sw s5,0x50(sp)
or s5,a3,zero
sw s4,0x4c(sp)
or a3,zero,zero
sw s3,0x48(sp)
or s4,a1,zero
sw s2,0x44(sp)
or s3,a2,zero
sw s0,0x3c(sp)
addiu a2,sp,0x28
sw ra,0x54(sp)
li a1,0x9
lw s1,-0x7b84(gp)
or s2,a0,zero
sw zero,0x28(sp)
lw v0,0x0(s1)
sw v0,0x34(sp)
bal 0x000f7be0
_nop
lw gp,0x20(sp)
beq v0,zero,0x0010f598
_or s0,v0,zero
lw a0,0x34(sp)
or v0,s0,zero
lw v1,0x0(s1)
bne a0,v1,0x0010f700
_lw ra,0x54(sp)
lw s5,0x50(sp)
lw s4,0x4c(sp)
lw s3,0x48(sp)
lw s2,0x44(sp)
lw s1,0x40(sp)
lw s0,0x3c(sp)
jr ra
_addiu sp,sp,0x58
lw t9,-0x7cfc(gp)
li a1,0x1
lw a0,0x28(sp)
li a3,-0x1
sw zero,0x10(sp)
jalr t9
_or a2,s4,zero
li a1,0x2
lw gp,0x20(sp)
beq s3,zero,0x0010f6b4
_lw a0,0x28(sp)
lw t9,-0x7da4(gp)
jalr t9
_or a2,s3,zero
lw gp,0x20(sp)
lw t9,-0x7f80(gp)
jalr t9
_lw a0,0x28(sp)
lw gp,0x20(sp)
lw t9,-0x7f68(gp)
jalr t9
_lw a0,0x28(sp)
li a1,0x1
lw gp,0x20(sp)
or s0,v0,zero
lw t9,-0x7dac(gp)
jalr t9
_lw a0,0x28(sp)
bne s0,zero,0x0010f564
_lw gp,0x20(sp)
lw v0,0x0(s2)
lw v1,0x4(s2)
lw a3,-0x7fb4(gp)
lw t9,-0x7ce8(gp)
lw s3,0x40(v0)
lw v0,0x0(v1)
addiu a3,a3,-0x2a84
lw a2,0x4(v1)
li v1,0xa
addiu s3,s3,0x1
sw zero,0x2c(sp)
sw s3,0x30(sp)
lw a1,0x4(v0)
lw a0,0x0(v0)
addiu v0,sp,0x2c
sw v1,0x14(sp)
sw v0,0x1c(sp)
li v0,0x1
sw v0,0x18(sp)
or v0,zero,zero
bal 0x0010ec80
_sw v0,0x10(sp)
lw gp,0x20(sp)
bne v0,zero,0x0010f564
_or s0,v0,zero
lw t9,-0x7ce4(gp)
or a3,zero,zero
lw a0,0x2c(sp)
li a2,0x4
jalr t9
_addiu a1,sp,0x30
lw gp,0x20(sp)
lw t9,-0x7d48(gp)
jalr t9
_lw a0,0x2c(sp)
lw gp,0x20(sp)
bne v0,zero,0x0010f564
_or s0,v0,zero
lw v0,0x0(s2)
b 0x0010f564
_sw s3,0x40(v0)
lw t9,-0x7d0c(gp)
jalr t9
_or a2,s5,zero
lw gp,0x20(sp)
lw t9,-0x7f80(gp)
jalr t9
_lw a0,0x28(sp)
lw gp,0x20(sp)
lw t9,-0x7f68(gp)
jalr t9
_lw a0,0x28(sp)
li a1,0x1
lw gp,0x20(sp)
or s0,v0,zero
lw t9,-0x7dac(gp)
jalr t9
_lw a0,0x28(sp)
b 0x0010f564
_lw gp,0x20(sp)
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "int FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined4 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = FUN_000f7be0(param_1,9,&local_30,0);" (assignment_expression "iVar1 = FUN_000f7be0(param_1,9,&local_30,0)" identifier = (call_expression "FUN_000f7be0(param_1,9,&local_30,0)" identifier (argument_list "(param_1,9,&local_30,0)" ( identifier , number_literal , (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);" (call_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_text_0015b8b4" * (cast_expression "(code *)PTR_sqlite3_bind_text_0015b8b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1,param_2,0xffffffff,0)" ( identifier , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }" { (expression_statement "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);" (call_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int_0015b8a4" * (cast_expression "(code *)PTR_sqlite3_bind_int_0015b8a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,2,param_4)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(local_30);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" ( (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" * (cast_expression "(code *)PTR_sqlite3_step_0015b630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" * (cast_expression "(code *)PTR_sqlite3_reset_0015b648" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" * (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" else (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" { (expression_statement "(*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);" (call_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_value_0015b80c" * (cast_expression "(code *)PTR_sqlite3_bind_value_0015b80c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,2,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(local_30);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" ( (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" * (cast_expression "(code *)PTR_sqlite3_step_0015b630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" * (cast_expression "(code *)PTR_sqlite3_reset_0015b648" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" * (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1)" ( identifier , number_literal ))) ;) (if_statement "if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }" { (expression_statement "puVar2 = *(undefined4 **)param_1[1];" (assignment_expression "puVar2 = *(undefined4 **)param_1[1]" identifier = (pointer_expression "*(undefined4 **)param_1[1]" * (cast_expression "(undefined4 **)param_1[1]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "param_1[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar6 = *(int *)(*param_1 + 0x40) + 1;" (assignment_expression "iVar6 = *(int *)(*param_1 + 0x40) + 1" identifier = (binary_expression "*(int *)(*param_1 + 0x40) + 1" (pointer_expression "*(int *)(*param_1 + 0x40)" * (cast_expression "(int *)(*param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = iVar6;" (assignment_expression "local_28 = iVar6" identifier = identifier) ;) (expression_statement "iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);" (assignment_expression "iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" identifier = (call_expression "sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" identifier (argument_list "(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" ( (pointer_expression "*puVar2" * identifier) , (subscript_expression "puVar2[1]" identifier [ number_literal ]) , (subscript_expression "((int *)param_1[1])[1]" (parenthesized_expression "((int *)param_1[1])" ( (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) )) [ number_literal ]) , (binary_expression "PTR_UINT_0015b5fc + -0x2a84" identifier + number_literal) , number_literal , number_literal , number_literal , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }" { (expression_statement "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);" (call_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)" ( (pointer_expression "*(code *)PTR_sqlite3_blob_write_0015b8cc" * (cast_expression "(code *)PTR_sqlite3_blob_write_0015b8cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2c,&local_28,4,0)" ( identifier , (pointer_expression "&local_28" & identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c)" identifier = (call_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)" ( (pointer_expression "*(code *)PTR_sqlite3_blob_close_0015b868" * (cast_expression "(code *)PTR_sqlite3_blob_close_0015b868" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2c)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }" { (expression_statement "*(int *)(*param_1 + 0x40) = iVar6;" (assignment_expression "*(int *)(*param_1 + 0x40) = iVar6" (pointer_expression "*(int *)(*param_1 + 0x40)" * (cast_expression "(int *)(*param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) = identifier) ;) })) })) })) }))) })) (if_statement "if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(local_24 != *(undefined4 **)puVar7)" ( (binary_expression "local_24 != *(undefined4 **)puVar7" identifier != (pointer_expression "*(undefined4 **)puVar7" * (cast_expression "(undefined4 **)puVar7" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" { (expression_statement "puVar2 = local_24;" (assignment_expression "puVar2 = local_24" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "uVar4 = puVar5[1];" (assignment_expression "uVar4 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar5[2];" (assignment_expression "uVar3 = puVar5[2]" identifier = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);" (assignment_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" identifier = (call_expression "FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" identifier (argument_list "(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" ( (pointer_expression "*puVar5" * identifier) , number_literal , (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a7c" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" * (cast_expression "(int *)(puVar7 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x4bef0)" ( (binary_expression "puVar7 + 0x4bef0" identifier + number_literal) )))) + number_literal) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }" { (if_statement "if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }" if (parenthesized_expression "((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0))" ( (binary_expression "(puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)" (parenthesized_expression "(puVar5[0xb] != 0)" ( (binary_expression "puVar5[0xb] != 0" (subscript_expression "puVar5[0xb]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0" (assignment_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" identifier = (call_expression "FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" identifier (argument_list "(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" ( (pointer_expression "*puVar5" * identifier) , number_literal , (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a48" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" * (cast_expression "(int *)(puVar7 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x4bef0)" ( (binary_expression "puVar7 + 0x4bef0" identifier + number_literal) )))) + number_literal) , (subscript_expression "puVar5[1]" identifier [ number_literal ]) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = FUN_00102058(puVar2[1]);" (assignment_expression "iVar1 = FUN_00102058(puVar2[1])" identifier = (call_expression "FUN_00102058(puVar2[1])" identifier (argument_list "(puVar2[1])" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }" { (expression_statement "iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);" (assignment_expression "iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" identifier = (call_expression "FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" identifier (argument_list "(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" ( identifier , (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a28" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" * (cast_expression "(int *)(puVar7 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x4bef0)" ( (binary_expression "puVar7 + 0x4bef0" identifier + number_literal) )))) + number_literal) , number_literal , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int sqlite3Fts5StorageConfigValue(Fts5Storage *p,char *z,sqlite3_value *pVal,int iVal)\n\n{\n  Fts5Storage *p_00;\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  Fts5Config *pFVar4;\n  u8 auVar5 [4];\n  undefined *puVar6;\n  sqlite3_stmt *pReplace;\n  sqlite3_blob *pBlob;\n  u8 aCookie [4];\n  \n  puVar6 = PTR___stack_chk_guard_0015ba2c;\n  pReplace = (sqlite3_stmt *)0x0;\n  p_00 = *(Fts5Storage **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = fts5StorageGetStmt(p,9,&pReplace,(char **)0x0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);\n    if (pVal == (sqlite3_value *)0x0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }\n  }\n  if (p_00 != *(Fts5Storage **)puVar6) {\n    puVar6 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    pFVar4 = p_00->pConfig;\n    pcVar3 = pFVar4->zDb;\n    pcVar2 = pFVar4->zName;\n    iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2);\n    if (iVar1 == 0) {\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int sqlite3Fts5StorageConfigValue(Fts5Storage *p,char *z,sqlite3_value *pVal,int iVal)\n\n{\n  Fts5Storage *p_00;\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  Fts5Config *pFVar4;\n  u8 auVar5 [4];\n  undefined *puVar6;\n  sqlite3_stmt *pReplace;\n  sqlite3_blob *pBlob;\n  u8 aCookie [4];\n  \n  puVar6 = PTR___stack_chk_guard_0015ba2c;\n  pReplace = (sqlite3_stmt *)0x0;\n  p_00 = *(Fts5Storage **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = fts5StorageGetStmt(p,9,&pReplace,(char **)0x0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);\n    if (pVal == (sqlite3_value *)0x0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }\n  }\n  if (p_00 != *(Fts5Storage **)puVar6) {\n    puVar6 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    pFVar4 = p_00->pConfig;\n    pcVar3 = pFVar4->zDb;\n    pcVar2 = pFVar4->zName;\n    iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2);\n    if (iVar1 == 0) {\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3Fts5StorageConfigValue(Fts5Storage *p,char *z,sqlite3_value *pVal,int iVal)" identifier (parameter_list "(Fts5Storage *p,char *z,sqlite3_value *pVal,int iVal)" ( (parameter_declaration "Fts5Storage *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *z" primitive_type (pointer_declarator "*z" * identifier)) , (parameter_declaration "sqlite3_value *pVal" type_identifier (pointer_declarator "*pVal" * identifier)) , (parameter_declaration "int iVal" primitive_type identifier) ))) (compound_statement "{\n  Fts5Storage *p_00;\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  Fts5Config *pFVar4;\n  u8 auVar5 [4];\n  undefined *puVar6;\n  sqlite3_stmt *pReplace;\n  sqlite3_blob *pBlob;\n  u8 aCookie [4];\n  \n  puVar6 = PTR___stack_chk_guard_0015ba2c;\n  pReplace = (sqlite3_stmt *)0x0;\n  p_00 = *(Fts5Storage **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = fts5StorageGetStmt(p,9,&pReplace,(char **)0x0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);\n    if (pVal == (sqlite3_value *)0x0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }\n  }\n  if (p_00 != *(Fts5Storage **)puVar6) {\n    puVar6 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    pFVar4 = p_00->pConfig;\n    pcVar3 = pFVar4->zDb;\n    pcVar2 = pFVar4->zName;\n    iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2);\n    if (iVar1 == 0) {\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "Fts5Storage *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "Fts5Config *pFVar4;" type_identifier (pointer_declarator "*pFVar4" * identifier) ;) (declaration "u8 auVar5 [4];" type_identifier (array_declarator "auVar5 [4]" identifier [ number_literal ]) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "sqlite3_stmt *pReplace;" type_identifier (pointer_declarator "*pReplace" * identifier) ;) (declaration "sqlite3_blob *pBlob;" type_identifier (pointer_declarator "*pBlob" * identifier) ;) (declaration "u8 aCookie [4];" type_identifier (array_declarator "aCookie [4]" identifier [ number_literal ]) ;) (expression_statement "puVar6 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar6 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "pReplace = (sqlite3_stmt *)0x0;" (assignment_expression "pReplace = (sqlite3_stmt *)0x0" identifier = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p_00 = *(Fts5Storage **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "p_00 = *(Fts5Storage **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(Fts5Storage **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(Fts5Storage **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "Fts5Storage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = fts5StorageGetStmt(p,9,&pReplace,(char **)0x0);" (assignment_expression "iVar1 = fts5StorageGetStmt(p,9,&pReplace,(char **)0x0)" identifier = (call_expression "fts5StorageGetStmt(p,9,&pReplace,(char **)0x0)" identifier (argument_list "(p,9,&pReplace,(char **)0x0)" ( identifier , number_literal , (pointer_expression "&pReplace" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);\n    if (pVal == (sqlite3_value *)0x0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);\n    if (pVal == (sqlite3_value *)0x0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0);" (call_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(pReplace,1,z,0xffffffff,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_text_0015b8b4" * (cast_expression "(code *)PTR_sqlite3_bind_text_0015b8b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace,1,z,0xffffffff,0)" ( identifier , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (pVal == (sqlite3_value *)0x0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(pVal == (sqlite3_value *)0x0)" ( (binary_expression "pVal == (sqlite3_value *)0x0" identifier == (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n    }" { (expression_statement "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal);" (call_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(pReplace,2,iVal)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int_0015b8a4" * (cast_expression "(code *)PTR_sqlite3_bind_int_0015b8a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace,2,iVal)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(pReplace);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(pReplace)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" ( (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" * (cast_expression "(code *)PTR_sqlite3_step_0015b630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(pReplace)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" * (cast_expression "(code *)PTR_sqlite3_reset_0015b648" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" * (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace,1)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }" else (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);\n      (*(code *)PTR_sqlite3_step_0015b630)(pReplace);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);\n      if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }\n    }" { (expression_statement "(*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal);" (call_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)(pReplace,2,pVal)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_value_0015b80c" * (cast_expression "(code *)PTR_sqlite3_bind_value_0015b80c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace,2,pVal)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(pReplace);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(pReplace)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" ( (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" * (cast_expression "(code *)PTR_sqlite3_step_0015b630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pReplace)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(pReplace)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" * (cast_expression "(code *)PTR_sqlite3_reset_0015b648" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(pReplace,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" * (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pReplace,1)" ( identifier , number_literal ))) ;) (if_statement "if (iVar1 == 0) {\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        pFVar4 = p->pIndex->pConfig;\n        auVar5 = (u8  [4])(p->pConfig->iCookie + 1);\n        pBlob = (sqlite3_blob *)0x0;\n        aCookie = auVar5;\n        iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }\n      }" { (expression_statement "pFVar4 = p->pIndex->pConfig;" (assignment_expression "pFVar4 = p->pIndex->pConfig" identifier = (field_expression "p->pIndex->pConfig" (field_expression "p->pIndex" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "auVar5 = (u8  [4])(p->pConfig->iCookie + 1);" (assignment_expression "auVar5 = (u8  [4])(p->pConfig->iCookie + 1)" identifier = (call_expression "(u8  [4])(p->pConfig->iCookie + 1)" (parenthesized_expression "(u8  [4])" ( (subscript_expression "u8  [4]" identifier [ number_literal ]) )) (argument_list "(p->pConfig->iCookie + 1)" ( (binary_expression "p->pConfig->iCookie + 1" (field_expression "p->pConfig->iCookie" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) + number_literal) )))) ;) (expression_statement "pBlob = (sqlite3_blob *)0x0;" (assignment_expression "pBlob = (sqlite3_blob *)0x0" identifier = (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "aCookie = auVar5;" (assignment_expression "aCookie = auVar5" identifier = identifier) ;) (expression_statement "iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob);" (assignment_expression "iVar1 = sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob)" identifier = (call_expression "sqlite3_blob_open(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob)" identifier (argument_list "(pFVar4->db,pFVar4->zDb,p->pIndex->zDataTbl,\n                                  PTR_DAT_0015b5fc + -0x2a84,10,1,&pBlob)" ( (field_expression "pFVar4->db" identifier -> field_identifier) , (field_expression "pFVar4->zDb" identifier -> field_identifier) , (field_expression "p->pIndex->zDataTbl" (field_expression "p->pIndex" identifier -> field_identifier) -> field_identifier) , (binary_expression "PTR_DAT_0015b5fc + -0x2a84" identifier + number_literal) , number_literal , number_literal , (pointer_expression "&pBlob" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);\n          if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }\n        }" { (expression_statement "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0);" (call_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(pBlob,aCookie,4,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)" ( (pointer_expression "*(code *)PTR_sqlite3_blob_write_0015b8cc" * (cast_expression "(code *)PTR_sqlite3_blob_write_0015b8cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBlob,aCookie,4,0)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob)" identifier = (call_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)(pBlob)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)" ( (pointer_expression "*(code *)PTR_sqlite3_blob_close_0015b868" * (cast_expression "(code *)PTR_sqlite3_blob_close_0015b868" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBlob)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n            p->pConfig->iCookie = (int)auVar5;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            p->pConfig->iCookie = (int)auVar5;\n          }" { (expression_statement "p->pConfig->iCookie = (int)auVar5;" (assignment_expression "p->pConfig->iCookie = (int)auVar5" (field_expression "p->pConfig->iCookie" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) = (cast_expression "(int)auVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) })) })) }))) })) (if_statement "if (p_00 != *(Fts5Storage **)puVar6) {\n    puVar6 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    pFVar4 = p_00->pConfig;\n    pcVar3 = pFVar4->zDb;\n    pcVar2 = pFVar4->zName;\n    iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2);\n    if (iVar1 == 0) {\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(p_00 != *(Fts5Storage **)puVar6)" ( (binary_expression "p_00 != *(Fts5Storage **)puVar6" identifier != (pointer_expression "*(Fts5Storage **)puVar6" * (cast_expression "(Fts5Storage **)puVar6" ( (type_descriptor "Fts5Storage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar6 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    pFVar4 = p_00->pConfig;\n    pcVar3 = pFVar4->zDb;\n    pcVar2 = pFVar4->zName;\n    iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2);\n    if (iVar1 == 0) {\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" { (expression_statement "puVar6 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar6 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pFVar4 = p_00->pConfig;" (assignment_expression "pFVar4 = p_00->pConfig" identifier = (field_expression "p_00->pConfig" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = pFVar4->zDb;" (assignment_expression "pcVar3 = pFVar4->zDb" identifier = (field_expression "pFVar4->zDb" identifier -> field_identifier)) ;) (expression_statement "pcVar2 = pFVar4->zName;" (assignment_expression "pcVar2 = pFVar4->zName" identifier = (field_expression "pFVar4->zName" identifier -> field_identifier)) ;) (expression_statement "iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2);" (assignment_expression "iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2)" identifier = (call_expression "fts5ExecPrintf(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2)" identifier (argument_list "(pFVar4->db,(char **)0x0,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c),\n                           pcVar3,pcVar2,pcVar3,pcVar2)" ( (field_expression "pFVar4->db" identifier -> field_identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (cast_expression "(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a7c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4bef0) + -0x2a7c)" ( (binary_expression "*(int *)(puVar6 + 0x4bef0) + -0x2a7c" (pointer_expression "*(int *)(puVar6 + 0x4bef0)" * (cast_expression "(int *)(puVar6 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4bef0)" ( (binary_expression "puVar6 + 0x4bef0" identifier + number_literal) )))) + number_literal) ))) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);\n      if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }\n    }" { (if_statement "if ((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)) {\n        return iVar1;\n      }" if (parenthesized_expression "((pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0))" ( (binary_expression "(pFVar4->bColumnsize != 0) &&\n         (iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)" (parenthesized_expression "(pFVar4->bColumnsize != 0)" ( (binary_expression "pFVar4->bColumnsize != 0" (field_expression "pFVar4->bColumnsize" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0)" ( (comma_expression "iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2), iVar1 != 0" (assignment_expression "iVar1 = fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2)" identifier = (call_expression "fts5ExecPrintf(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2)" identifier (argument_list "(pFVar4->db,(char **)0x0,\n                                 (char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48),pFVar4->zDb,\n                                 pFVar4->zName,pcVar3,pcVar2)" ( (field_expression "pFVar4->db" identifier -> field_identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (cast_expression "(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a48)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4bef0) + -0x2a48)" ( (binary_expression "*(int *)(puVar6 + 0x4bef0) + -0x2a48" (pointer_expression "*(int *)(puVar6 + 0x4bef0)" * (cast_expression "(int *)(puVar6 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4bef0)" ( (binary_expression "puVar6 + 0x4bef0" identifier + number_literal) )))) + number_literal) ))) , (field_expression "pFVar4->zDb" identifier -> field_identifier) , (field_expression "pFVar4->zName" identifier -> field_identifier) , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex);" (assignment_expression "iVar1 = sqlite3Fts5IndexReinit(p_00->pIndex)" identifier = (call_expression "sqlite3Fts5IndexReinit(p_00->pIndex)" identifier (argument_list "(p_00->pIndex)" ( (field_expression "p_00->pIndex" identifier -> field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);\n        return iVar1;\n      }" { (expression_statement "iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4);" (assignment_expression "iVar1 = sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4)" identifier = (call_expression "sqlite3Fts5StorageConfigValue\n                          (p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4)" identifier (argument_list "(p_00,(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28),(sqlite3_value *)0x0,\n                           4)" ( identifier , (cast_expression "(char *)(*(int *)(puVar6 + 0x4bef0) + -0x2a28)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0x4bef0) + -0x2a28)" ( (binary_expression "*(int *)(puVar6 + 0x4bef0) + -0x2a28" (pointer_expression "*(int *)(puVar6 + 0x4bef0)" * (cast_expression "(int *)(puVar6 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x4bef0)" ( (binary_expression "puVar6 + 0x4bef0" identifier + number_literal) )))) + number_literal) ))) , (cast_expression "(sqlite3_value *)0x0" ( (type_descriptor "sqlite3_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "undefined4 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = FUN_000f7be0(param_1,9,&local_30,0);" (assignment_expression "iVar1 = FUN_000f7be0(param_1,9,&local_30,0)" identifier = (call_expression "FUN_000f7be0(param_1,9,&local_30,0)" identifier (argument_list "(param_1,9,&local_30,0)" ( identifier , number_literal , (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }" { (expression_statement "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);" (call_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_text_0015b8b4" * (cast_expression "(code *)PTR_sqlite3_bind_text_0015b8b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1,param_2,0xffffffff,0)" ( identifier , number_literal , identifier , number_literal , number_literal ))) ;) (if_statement "if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }" { (expression_statement "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);" (call_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int_0015b8a4" * (cast_expression "(code *)PTR_sqlite3_bind_int_0015b8a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,2,param_4)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(local_30);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" ( (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" * (cast_expression "(code *)PTR_sqlite3_step_0015b630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" * (cast_expression "(code *)PTR_sqlite3_reset_0015b648" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" * (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" else (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" { (expression_statement "(*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);" (call_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_value_0015b80c" * (cast_expression "(code *)PTR_sqlite3_bind_value_0015b80c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,2,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(local_30);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" ( (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" * (cast_expression "(code *)PTR_sqlite3_step_0015b630" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" ( (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" * (cast_expression "(code *)PTR_sqlite3_reset_0015b648" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" * (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1)" ( identifier , number_literal ))) ;) (if_statement "if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }" { (expression_statement "puVar2 = *(undefined4 **)param_1[1];" (assignment_expression "puVar2 = *(undefined4 **)param_1[1]" identifier = (pointer_expression "*(undefined4 **)param_1[1]" * (cast_expression "(undefined4 **)param_1[1]" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "param_1[1]" identifier [ number_literal ])))) ;) (expression_statement "iVar6 = *(int *)(*param_1 + 0x40) + 1;" (assignment_expression "iVar6 = *(int *)(*param_1 + 0x40) + 1" identifier = (binary_expression "*(int *)(*param_1 + 0x40) + 1" (pointer_expression "*(int *)(*param_1 + 0x40)" * (cast_expression "(int *)(*param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = iVar6;" (assignment_expression "local_28 = iVar6" identifier = identifier) ;) (expression_statement "iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);" (assignment_expression "iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" identifier = (call_expression "sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" identifier (argument_list "(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" ( (pointer_expression "*puVar2" * identifier) , (subscript_expression "puVar2[1]" identifier [ number_literal ]) , (subscript_expression "((int *)param_1[1])[1]" (parenthesized_expression "((int *)param_1[1])" ( (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ])) )) [ number_literal ]) , (binary_expression "PTR_UINT_0015b5fc + -0x2a84" identifier + number_literal) , number_literal , number_literal , number_literal , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }" { (expression_statement "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);" (call_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)" ( (pointer_expression "*(code *)PTR_sqlite3_blob_write_0015b8cc" * (cast_expression "(code *)PTR_sqlite3_blob_write_0015b8cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2c,&local_28,4,0)" ( identifier , (pointer_expression "&local_28" & identifier) , number_literal , number_literal ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c)" identifier = (call_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)" ( (pointer_expression "*(code *)PTR_sqlite3_blob_close_0015b868" * (cast_expression "(code *)PTR_sqlite3_blob_close_0015b868" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_2c)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }" { (expression_statement "*(int *)(*param_1 + 0x40) = iVar6;" (assignment_expression "*(int *)(*param_1 + 0x40) = iVar6" (pointer_expression "*(int *)(*param_1 + 0x40)" * (cast_expression "(int *)(*param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x40)" ( (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" * identifier) + number_literal) )))) = identifier) ;) })) })) })) }))) })) (if_statement "if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(local_24 != *(undefined4 **)puVar7)" ( (binary_expression "local_24 != *(undefined4 **)puVar7" identifier != (pointer_expression "*(undefined4 **)puVar7" * (cast_expression "(undefined4 **)puVar7" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" { (expression_statement "puVar2 = local_24;" (assignment_expression "puVar2 = local_24" identifier = identifier) ;) (expression_statement "puVar7 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ;) (expression_statement "uVar4 = puVar5[1];" (assignment_expression "uVar4 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = puVar5[2];" (assignment_expression "uVar3 = puVar5[2]" identifier = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);" (assignment_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" identifier = (call_expression "FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" identifier (argument_list "(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" ( (pointer_expression "*puVar5" * identifier) , number_literal , (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a7c" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" * (cast_expression "(int *)(puVar7 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x4bef0)" ( (binary_expression "puVar7 + 0x4bef0" identifier + number_literal) )))) + number_literal) , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }" { (if_statement "if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }" if (parenthesized_expression "((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0))" ( (binary_expression "(puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)" (parenthesized_expression "(puVar5[0xb] != 0)" ( (binary_expression "puVar5[0xb] != 0" (subscript_expression "puVar5[0xb]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0" (assignment_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" identifier = (call_expression "FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" identifier (argument_list "(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" ( (pointer_expression "*puVar5" * identifier) , number_literal , (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a48" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" * (cast_expression "(int *)(puVar7 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x4bef0)" ( (binary_expression "puVar7 + 0x4bef0" identifier + number_literal) )))) + number_literal) , (subscript_expression "puVar5[1]" identifier [ number_literal ]) , (subscript_expression "puVar5[2]" identifier [ number_literal ]) , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        return iVar1;\n      }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = FUN_00102058(puVar2[1]);" (assignment_expression "iVar1 = FUN_00102058(puVar2[1])" identifier = (call_expression "FUN_00102058(puVar2[1])" identifier (argument_list "(puVar2[1])" ( (subscript_expression "puVar2[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }" { (expression_statement "iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);" (assignment_expression "iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" identifier = (call_expression "FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" identifier (argument_list "(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" ( identifier , (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a28" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" * (cast_expression "(int *)(puVar7 + 0x4bef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x4bef0)" ( (binary_expression "puVar7 + 0x4bef0" identifier + number_literal) )))) + number_literal) , number_literal , number_literal )))) ;) (return_statement "return iVar1;" return identifier ;) })) })) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_expression IDENT [ LIT ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) )) [ LIT ]) , (binary_expression IDENT + LIT) , LIT , LIT , LIT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (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 (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) })) })) })) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , LIT , LIT )))) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0010f4ec(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "FUN_0010f4ec") (parameter_list "(int *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined4 local_30;\n  undefined4 local_2c;\n  int local_28;\n  undefined4 *local_24;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  local_30 = 0;\n  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);\n  if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }\n  if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "undefined4 *local_24;" (type_identifier "undefined4") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (expression_statement "puVar7 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c" (identifier "local_24") (= "=") (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(undefined4 **)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "iVar1 = FUN_000f7be0(param_1,9,&local_30,0);" (assignment_expression "iVar1 = FUN_000f7be0(param_1,9,&local_30,0)" (identifier "iVar1") (= "=") (call_expression "FUN_000f7be0(param_1,9,&local_30,0)" (identifier "FUN_000f7be0") (argument_list "(param_1,9,&local_30,0)" (( "(") (identifier "param_1") (, ",") (number_literal "9") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);\n    if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);" (call_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_text_0015b8b4)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_text_0015b8b4" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_text_0015b8b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_text_0015b8b4"))) () ")")) (argument_list "(local_30,1,param_2,0xffffffff,0)" (( "(") (identifier "local_30") (, ",") (number_literal "1") (, ",") (identifier "param_2") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (param_3 == 0) {\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }\n    else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n    }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);" (call_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int_0015b8a4)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_int_0015b8a4" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_int_0015b8a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_int_0015b8a4"))) () ")")) (argument_list "(local_30,2,param_4)" (( "(") (identifier "local_30") (, ",") (number_literal "2") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(local_30);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" (* "*") (cast_expression "(code *)PTR_sqlite3_step_0015b630" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_step_0015b630"))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" (* "*") (cast_expression "(code *)PTR_sqlite3_reset_0015b648" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_reset_0015b648"))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_null_0015b804"))) () ")")) (argument_list "(local_30,1)" (( "(") (identifier "local_30") (, ",") (number_literal "1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);\n      (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);\n      if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }\n    }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);" (call_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_value_0015b80c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_value_0015b80c" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_value_0015b80c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_value_0015b80c"))) () ")")) (argument_list "(local_30,2,param_3)" (( "(") (identifier "local_30") (, ",") (number_literal "2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_step_0015b630)(local_30);" (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_step_0015b630)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_step_0015b630" (* "*") (cast_expression "(code *)PTR_sqlite3_step_0015b630" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_step_0015b630"))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_reset_0015b648)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_reset_0015b648" (* "*") (cast_expression "(code *)PTR_sqlite3_reset_0015b648" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_reset_0015b648"))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);" (call_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_null_0015b804)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_null_0015b804" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_null_0015b804" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_null_0015b804"))) () ")")) (argument_list "(local_30,1)" (( "(") (identifier "local_30") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (iVar1 == 0) {\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar2 = *(undefined4 **)param_1[1];\n        iVar6 = *(int *)(*param_1 + 0x40) + 1;\n        local_2c = 0;\n        local_28 = iVar6;\n        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);\n        if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }\n      }" ({ "{") (expression_statement "puVar2 = *(undefined4 **)param_1[1];" (assignment_expression "puVar2 = *(undefined4 **)param_1[1]" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)param_1[1]" (* "*") (cast_expression "(undefined4 **)param_1[1]" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))))) (; ";")) (expression_statement "iVar6 = *(int *)(*param_1 + 0x40) + 1;" (assignment_expression "iVar6 = *(int *)(*param_1 + 0x40) + 1" (identifier "iVar6") (= "=") (binary_expression "*(int *)(*param_1 + 0x40) + 1" (pointer_expression "*(int *)(*param_1 + 0x40)" (* "*") (cast_expression "(int *)(*param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x40)" (( "(") (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = iVar6;" (assignment_expression "local_28 = iVar6" (identifier "local_28") (= "=") (identifier "iVar6")) (; ";")) (expression_statement "iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);" (assignment_expression "iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" (identifier "iVar1") (= "=") (call_expression "sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" (identifier "sqlite3_blob_open") (argument_list "(*puVar2,puVar2[1],((int *)param_1[1])[1],\n                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "((int *)param_1[1])[1]" (parenthesized_expression "((int *)param_1[1])" (( "(") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) ([ "[") (number_literal "1") (] "]")) (, ",") (binary_expression "PTR_UINT_0015b5fc + -0x2a84" (identifier "PTR_UINT_0015b5fc") (+ "+") (number_literal "-0x2a84")) (, ",") (number_literal "0") (, ",") (number_literal "10") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);\n          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);\n          if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }\n        }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);" (call_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_write_0015b8cc)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_blob_write_0015b8cc" (* "*") (cast_expression "(code *)PTR_sqlite3_blob_write_0015b8cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_blob_write_0015b8cc"))) () ")")) (argument_list "(local_2c,&local_28,4,0)" (( "(") (identifier "local_2c") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (number_literal "4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c)" (parenthesized_expression "(*(code *)PTR_sqlite3_blob_close_0015b868)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_blob_close_0015b868" (* "*") (cast_expression "(code *)PTR_sqlite3_blob_close_0015b868" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_blob_close_0015b868"))) () ")")) (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *(int *)(*param_1 + 0x40) = iVar6;\n          }" ({ "{") (expression_statement "*(int *)(*param_1 + 0x40) = iVar6;" (assignment_expression "*(int *)(*param_1 + 0x40) = iVar6" (pointer_expression "*(int *)(*param_1 + 0x40)" (* "*") (cast_expression "(int *)(*param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x40)" (( "(") (binary_expression "*param_1 + 0x40" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}")))) (} "}"))) (if_statement "if (local_24 != *(undefined4 **)puVar7) {\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_24 != *(undefined4 **)puVar7)" (( "(") (binary_expression "local_24 != *(undefined4 **)puVar7" (identifier "local_24") (!= "!=") (pointer_expression "*(undefined4 **)puVar7" (* "*") (cast_expression "(undefined4 **)puVar7" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar7")))) () ")")) (compound_statement "{\n    puVar2 = local_24;\n    puVar7 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    puVar5 = (undefined4 *)*puVar2;\n    uVar4 = puVar5[1];\n    uVar3 = puVar5[2];\n    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);\n    if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }\n    return iVar1;\n  }" ({ "{") (expression_statement "puVar2 = local_24;" (assignment_expression "puVar2 = local_24" (identifier "puVar2") (= "=") (identifier "local_24")) (; ";")) (expression_statement "puVar7 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015ba10" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_fail_0015ba10")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)*puVar2;" (assignment_expression "puVar5 = (undefined4 *)*puVar2" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (; ";")) (expression_statement "uVar4 = puVar5[1];" (assignment_expression "uVar4 = puVar5[1]" (identifier "uVar4") (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar3 = puVar5[2];" (assignment_expression "uVar3 = puVar5[2]" (identifier "uVar3") (= "=") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);" (assignment_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" (identifier "iVar1") (= "=") (call_expression "FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" (identifier "FUN_001005d4") (argument_list "(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (, ",") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a7c" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" (* "*") (cast_expression "(int *)(puVar7 + 0x4bef0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x4bef0)" (( "(") (binary_expression "puVar7 + 0x4bef0" (identifier "puVar7") (+ "+") (number_literal "0x4bef0")) () ")")))) (+ "+") (number_literal "-0x2a7c")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }\n      iVar1 = FUN_00102058(puVar2[1]);\n      if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }\n    }" ({ "{") (if_statement "if ((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)) {\n        return iVar1;\n      }" (if "if") (parenthesized_expression "((puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0))" (( "(") (binary_expression "(puVar5[0xb] != 0) &&\n         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)" (parenthesized_expression "(puVar5[0xb] != 0)" (( "(") (binary_expression "puVar5[0xb] != 0" (subscript_expression "puVar5[0xb]" (identifier "puVar5") ([ "[") (number_literal "0xb") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3), iVar1 != 0" (assignment_expression "iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" (identifier "iVar1") (= "=") (call_expression "FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" (identifier "FUN_001005d4") (argument_list "(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],\n                               uVar4,uVar3)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (, ",") (number_literal "0") (, ",") (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a48" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" (* "*") (cast_expression "(int *)(puVar7 + 0x4bef0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x4bef0)" (( "(") (binary_expression "puVar7 + 0x4bef0" (identifier "puVar7") (+ "+") (number_literal "0x4bef0")) () ")")))) (+ "+") (number_literal "-0x2a48")) (, ",") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        return iVar1;\n      }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00102058(puVar2[1]);" (assignment_expression "iVar1 = FUN_00102058(puVar2[1])" (identifier "iVar1") (= "=") (call_expression "FUN_00102058(puVar2[1])" (identifier "FUN_00102058") (argument_list "(puVar2[1])" (( "(") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);\n        return iVar1;\n      }" ({ "{") (expression_statement "iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);" (assignment_expression "iVar1 = FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" (identifier "iVar1") (= "=") (call_expression "FUN_0010f4ec(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" (identifier "FUN_0010f4ec") (argument_list "(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4)" (( "(") (identifier "puVar2") (, ",") (binary_expression "*(int *)(puVar7 + 0x4bef0) + -0x2a28" (pointer_expression "*(int *)(puVar7 + 0x4bef0)" (* "*") (cast_expression "(int *)(puVar7 + 0x4bef0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0x4bef0)" (( "(") (binary_expression "puVar7 + 0x4bef0" (identifier "puVar7") (+ "+") (number_literal "0x4bef0")) () ")")))) (+ "+") (number_literal "-0x2a28")) (, ",") (number_literal "0") (, ",") (number_literal "4") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal))))) 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: (identifier)))) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (parenthesized_expression (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) index: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (number_literal) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier)))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (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)) (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (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)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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)) (number_literal) (number_literal))))) (return_statement (identifier)))))) (return_statement (identifier)))) (return_statement (identifier)))))

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

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int iVar6;
  undefined *puVar7;
  undefined4 local_30;
  undefined4 local_2c;
  int local_28;
  undefined4 *local_24;
  
  puVar7 = PTR___stack_chk_guard_0015ba2c;
  local_30 = 0;
  local_24 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;
  iVar1 = FUN_000f7be0(param_1,9,&local_30,0);
  if (iVar1 == 0) {
    (*(code *)PTR_sqlite3_bind_text_0015b8b4)(local_30,1,param_2,0xffffffff,0);
    if (param_3 == 0) {
      (*(code *)PTR_sqlite3_bind_int_0015b8a4)(local_30,2,param_4);
      (*(code *)PTR_sqlite3_step_0015b630)(local_30);
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);
    }
    else {
      (*(code *)PTR_sqlite3_bind_value_0015b80c)(local_30,2,param_3);
      (*(code *)PTR_sqlite3_step_0015b630)(local_30);
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
      (*(code *)PTR_sqlite3_bind_null_0015b804)(local_30,1);
      if (iVar1 == 0) {
        puVar2 = *(undefined4 **)param_1[1];
        iVar6 = *(int *)(*param_1 + 0x40) + 1;
        local_2c = 0;
        local_28 = iVar6;
        iVar1 = sqlite3_blob_open(*puVar2,puVar2[1],((int *)param_1[1])[1],
                                  PTR_UINT_0015b5fc + -0x2a84,0,10,1,&local_2c);
        if (iVar1 == 0) {
          (*(code *)PTR_sqlite3_blob_write_0015b8cc)(local_2c,&local_28,4,0);
          iVar1 = (*(code *)PTR_sqlite3_blob_close_0015b868)(local_2c);
          if (iVar1 == 0) {
            *(int *)(*param_1 + 0x40) = iVar6;
          }
        }
      }
    }
  }
  if (local_24 != *(undefined4 **)puVar7) {
    puVar2 = local_24;
    puVar7 = PTR___stack_chk_fail_0015ba10;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    puVar5 = (undefined4 *)*puVar2;
    uVar4 = puVar5[1];
    uVar3 = puVar5[2];
    iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a7c,uVar4,uVar3,uVar4,uVar3);
    if (iVar1 == 0) {
      if ((puVar5[0xb] != 0) &&
         (iVar1 = FUN_001005d4(*puVar5,0,*(int *)(puVar7 + 0x4bef0) + -0x2a48,puVar5[1],puVar5[2],
                               uVar4,uVar3), iVar1 != 0)) {
        return iVar1;
      }
      iVar1 = FUN_00102058(puVar2[1]);
      if (iVar1 == 0) {
        iVar1 = MASKED(puVar2,*(int *)(puVar7 + 0x4bef0) + -0x2a28,0,4);
        return iVar1;
      }
    }
    return iVar1;
  }
  return iVar1;
}

