
int sqlite3Fts5StorageDocsize(Fts5Storage *p,i64 iRowid,int *aCol)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  undefined4 in_a2;
  undefined4 uVar7;
  undefined4 in_a3;
  char **pzErrMsg;
  undefined4 uVar8;
  uint eStmt;
  Fts5Storage *p_00;
  int iVar9;
  int iVar10;
  undefined *puVar11;
  code *pcVar12;
  sqlite3_stmt *pLookup;
  int *piStack_2c;
  
  puVar11 = PTR___stack_chk_guard_0015ba2c;
  iVar6 = 8;
  pLookup = (sqlite3_stmt *)0x0;
  piStack_2c = *(int **)PTR___stack_chk_guard_0015ba2c;
  iVar9 = p->pConfig->nCol;
  iVar1 = fts5StorageGetStmt(p,8,&pLookup,(char **)0x0);
  if (iVar1 == 0) {
    iVar6 = 1;
    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);
    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);
    if (iVar1 == 100) {
      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);
      iVar6 = 0;
      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);
      iVar1 = 0;
      if (iVar9 < 1) {
LAB_00102afc:
        if (iVar3 == iVar1) {
          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();
          goto LAB_001029f4;
        }
      }
      else if (0 < iVar3) {
        iVar10 = 0;
        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);
        iVar1 = 0;
        do {
          iVar10 = iVar10 + 1;
          iVar6 = iRowid._0_4_;
          iVar4 = (*pcVar12)(iVar2 + iVar1);
          iVar1 = iVar1 + iVar4;
          if (iVar9 == iVar10) goto LAB_00102afc;
          iRowid._0_4_ = iRowid._0_4_ + 4;
        } while (iVar1 < iVar3);
      }
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);
    }
    else {
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);
    }
    if (iVar1 == 0) {
      iVar1 = 0x10b;
    }
  }
LAB_001029f4:
  if (piStack_2c == *(int **)puVar11) {
    return iVar1;
  }
  piVar5 = piStack_2c;
  puVar11 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  if (piVar5[0xc] == 0) {
    if (piVar5[6] == 5) {
      eStmt = (uint)(piVar5[7] != 0);
    }
    else {
      eStmt = 2;
    }
    p_00 = *(Fts5Storage **)(*piVar5 + 0x14);
    pzErrMsg = (char **)0x0;
    if (iVar6 != 0) {
      pzErrMsg = (char **)(*piVar5 + 8);
    }
    iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);
    if (iVar6 != 0) {
      return iVar6;
    }
    p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;
    if ((piVar5[0xf] & 2U) == 0) {
      return 0;
    }
    pcVar12 = *(code **)(puVar11 + 0x58b04);
  }
  else {
    pcVar12 = *(code **)(puVar11 + 0x58b04);
    if ((piVar5[0xf] & 2U) == 0) {
      return 0;
    }
  }
  (*pcVar12)(piVar5[0xc]);
  iVar6 = piVar5[0xe];
  if (iVar6 == 0) {
    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);
    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);
  }
  else {
    uVar8 = *(undefined4 *)(iVar6 + 0xc);
    uVar7 = *(undefined4 *)(iVar6 + 8);
  }
  (**(code **)(puVar11 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);
  iVar6 = (**(code **)(puVar11 + 0x58aec))(piVar5[0xc]);
  if (iVar6 != 100) {
    iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);
    if (iVar6 == 0) {
      iVar6 = 0x10b;
    }
    return iVar6;
  }
  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;
  return 0;
}



int FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  uint uVar9;
  int iVar10;
  int iVar11;
  undefined *puVar12;
  code *pcVar13;
  undefined4 local_30;
  int *local_2c;
  
  puVar12 = PTR___stack_chk_guard_0015ba2c;
  iVar6 = 8;
  local_30 = 0;
  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;
  iVar10 = *(int *)(*param_1 + 0xc);
  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);
  if (iVar1 == 0) {
    iVar6 = 1;
    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);
    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);
    if (iVar1 == 100) {
      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);
      iVar6 = 0;
      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);
      iVar1 = 0;
      if (iVar10 < 1) {
LAB_00102afc:
        if (iVar3 == iVar1) {
          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();
          goto LAB_001029f4;
        }
      }
      else if (0 < iVar3) {
        iVar11 = 0;
        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);
        iVar1 = 0;
        do {
          iVar11 = iVar11 + 1;
          iVar6 = param_5;
          iVar4 = (*pcVar13)(iVar2 + iVar1);
          iVar1 = iVar1 + iVar4;
          if (iVar10 == iVar11) goto LAB_00102afc;
          param_5 = param_5 + 4;
        } while (iVar1 < iVar3);
      }
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
    }
    else {
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
    }
    if (iVar1 == 0) {
      iVar1 = 0x10b;
    }
  }
LAB_001029f4:
  if (local_2c == *(int **)puVar12) {
    return iVar1;
  }
  piVar5 = local_2c;
  puVar12 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  if (piVar5[0xc] == 0) {
    if (piVar5[6] == 5) {
      uVar9 = (uint)(piVar5[7] != 0);
    }
    else {
      uVar9 = 2;
    }
    iVar10 = *(int *)(*piVar5 + 0x14);
    iVar1 = 0;
    if (iVar6 != 0) {
      iVar1 = *piVar5 + 8;
    }
    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);
    if (iVar6 != 0) {
      return iVar6;
    }
    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;
    if ((piVar5[0xf] & 2U) == 0) {
      return 0;
    }
    pcVar13 = *(code **)(puVar12 + 0x58b04);
  }
  else {
    pcVar13 = *(code **)(puVar12 + 0x58b04);
    if ((piVar5[0xf] & 2U) == 0) {
      return 0;
    }
  }
  (*pcVar13)(piVar5[0xc]);
  iVar6 = piVar5[0xe];
  if (iVar6 == 0) {
    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);
    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);
  }
  else {
    uVar8 = *(undefined4 *)(iVar6 + 0xc);
    uVar7 = *(undefined4 *)(iVar6 + 8);
  }
  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);
  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);
  if (iVar6 != 100) {
    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);
    if (iVar6 == 0) {
      iVar6 = 0x10b;
    }
    return iVar6;
  }
  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;
  return 0;
}


lui gp,0x6
addiu gp,gp,0xc40
addu gp,gp,t9
addiu sp,sp,-0x48
lw t9,-0x7d30(gp)
li a1,0x8
sw s1,0x28(sp)
addiu t9,t9,0x7be0
sw gp,0x10(sp)
sw s5,0x38(sp)
or s5,a3,zero
sw s4,0x34(sp)
or a3,zero,zero
sw s2,0x2c(sp)
or s4,a2,zero
sw s0,0x24(sp)
addiu a2,sp,0x18
sw ra,0x44(sp)
sw s7,0x40(sp)
sw s6,0x3c(sp)
sw s3,0x30(sp)
lw s1,-0x7b84(gp)
lw v1,0x0(a0)
lw s2,0x58(sp)
sw zero,0x18(sp)
lw v0,0x0(s1)
lw s3,0xc(v1)
sw v0,0x1c(sp)
bal 0x000f7be0
_nop
lw gp,0x10(sp)
beq v0,zero,0x00102a30
_or s0,v0,zero
lw a0,0x1c(sp)
or v0,s0,zero
lw v1,0x0(s1)
bne a0,v1,0x00102b38
_lw ra,0x44(sp)
lw s7,0x40(sp)
lw s6,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x48
lw t9,-0x7db8(gp)
li a1,0x1
lw a0,0x18(sp)
or a3,s5,zero
jalr t9
_or a2,s4,zero
lw gp,0x10(sp)
lw t9,-0x7f80(gp)
jalr t9
_lw a0,0x18(sp)
li v1,0x64
beq v0,v1,0x00102a88
_lw gp,0x10(sp)
lw t9,-0x7f68(gp)
jalr t9
_lw a0,0x18(sp)
lw gp,0x10(sp)
or s0,v0,zero
bne s0,zero,0x001029f4
_nop
b 0x001029f4
_li s0,0x10b
lw t9,-0x7f48(gp)
or a1,zero,zero
jalr t9
_lw a0,0x18(sp)
or a1,zero,zero
lw gp,0x10(sp)
or s5,v0,zero
lw t9,-0x7f4c(gp)
jalr t9
_lw a0,0x18(sp)
lw gp,0x10(sp)
blez s3,0x00102afc
_or s4,v0,zero
blez v0,0x00102b1c
_lw s6,-0x7ef0(gp)
or s7,zero,zero
b 0x00102adc
_addiu s6,s6,0x27e0
slt v0,s0,s4
beq v0,zero,0x00102b1c
_addiu s2,s2,0x4
addu a0,s5,s0
or a1,s2,zero
or t9,s6,zero
jalr t9
_addiu s7,s7,0x1
lw gp,0x10(sp)
bne s3,s7,0x00102ad0
_addu s0,s0,v0
bne s4,s0,0x00102b20
_lw a0,0x18(sp)
lw t9,-0x7f68(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x001029f4
_or s0,v0,zero
lw a0,0x18(sp)
lw t9,-0x7f68(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00102a78
_or s0,v0,zero
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "int FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}\n\n" (function_definition "int FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" primitive_type (function_declarator "FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar12 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar10 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar10 = *(int *)(*param_1 + 0xc)" identifier = (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_000f7be0(param_1,8,&local_30,0);" (assignment_expression "iVar1 = FUN_000f7be0(param_1,8,&local_30,0)" identifier = (call_expression "FUN_000f7be0(param_1,8,&local_30,0)" identifier (argument_list "(param_1,8,&local_30,0)" ( identifier , number_literal , (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int64_0015b7f8" * (cast_expression "(code *)PTR_sqlite3_bind_int64_0015b7f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1,param_3,param_4)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30)" identifier = (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 )))) ;) (if_statement "if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" if (parenthesized_expression "(iVar1 == 100)" ( (binary_expression "iVar1 == 100" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" { (expression_statement "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)" ( (pointer_expression "*(code *)PTR_sqlite3_column_blob_0015b668" * (cast_expression "(code *)PTR_sqlite3_column_blob_0015b668" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)" ( (pointer_expression "*(code *)PTR_sqlite3_column_bytes_0015b664" * (cast_expression "(code *)PTR_sqlite3_column_bytes_0015b664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" if (parenthesized_expression "(iVar10 < 1)" ( (binary_expression "iVar10 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }" { (labeled_statement "LAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" statement_identifier : (if_statement "if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" if (parenthesized_expression "(iVar3 == iVar1)" ( (binary_expression "iVar3 == iVar1" identifier == identifier) )) (compound_statement "{\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)()" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)()" (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 "()" ( )))) ;) (goto_statement "goto LAB_001029f4;" goto statement_identifier ;) }))) }) (else_clause "else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" else (if_statement "if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x27e0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x27e0)" ( (binary_expression "PTR_LAB_0015b6c0 + 0x27e0" identifier + number_literal) )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);" do (compound_statement "{\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = param_5;" (assignment_expression "iVar6 = param_5" identifier = identifier) ;) (expression_statement "iVar4 = (*pcVar13)(iVar2 + iVar1);" (assignment_expression "iVar4 = (*pcVar13)(iVar2 + iVar1)" identifier = (call_expression "(*pcVar13)(iVar2 + iVar1)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) ;) (expression_statement "iVar1 = iVar1 + iVar4;" (assignment_expression "iVar1 = iVar1 + iVar4" identifier = (binary_expression "iVar1 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar10 == iVar11) goto LAB_00102afc;" if (parenthesized_expression "(iVar10 == iVar11)" ( (binary_expression "iVar10 == iVar11" identifier == identifier) )) (goto_statement "goto LAB_00102afc;" goto statement_identifier ;)) (expression_statement "param_5 = param_5 + 4;" (assignment_expression "param_5 = param_5 + 4" identifier = (binary_expression "param_5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < iVar3)" ( (binary_expression "iVar1 < iVar3" identifier < 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 )))) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" { (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 )))) ;) }))) (if_statement "if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 0x10b;\n    }" { (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;) })) })) (labeled_statement "LAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_2c == *(int **)puVar12)" ( (binary_expression "local_2c == *(int **)puVar12" identifier == (pointer_expression "*(int **)puVar12" * (cast_expression "(int **)puVar12" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "piVar5 = local_2c;" (assignment_expression "piVar5 = local_2c" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar12 = 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 "()" ( ))) ;) (if_statement "if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(piVar5[0xc] == 0)" ( (binary_expression "piVar5[0xc] == 0" (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }" { (if_statement "if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }" if (parenthesized_expression "(piVar5[6] == 5)" ( (binary_expression "piVar5[6] == 5" (subscript_expression "piVar5[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      uVar9 = (uint)(piVar5[7] != 0);\n    }" { (expression_statement "uVar9 = (uint)(piVar5[7] != 0);" (assignment_expression "uVar9 = (uint)(piVar5[7] != 0)" identifier = (call_expression "(uint)(piVar5[7] != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar5[7] != 0)" ( (binary_expression "piVar5[7] != 0" (subscript_expression "piVar5[7]" identifier [ number_literal ]) != number_literal) )))) ;) }) (else_clause "else {\n      uVar9 = 2;\n    }" else (compound_statement "{\n      uVar9 = 2;\n    }" { (expression_statement "uVar9 = 2;" (assignment_expression "uVar9 = 2" identifier = number_literal) ;) }))) (expression_statement "iVar10 = *(int *)(*piVar5 + 0x14);" (assignment_expression "iVar10 = *(int *)(*piVar5 + 0x14)" identifier = (pointer_expression "*(int *)(*piVar5 + 0x14)" * (cast_expression "(int *)(*piVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0x14)" ( (binary_expression "*piVar5 + 0x14" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *piVar5 + 8;\n    }" { (expression_statement "iVar1 = *piVar5 + 8;" (assignment_expression "iVar1 = *piVar5 + 8" identifier = (binary_expression "*piVar5 + 8" (pointer_expression "*piVar5" * identifier) + number_literal)) ;) })) (expression_statement "iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);" (assignment_expression "iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1)" identifier = (call_expression "FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1)" identifier (argument_list "(iVar10,uVar9,piVar5 + 0xc,iVar1)" ( identifier , identifier , (binary_expression "piVar5 + 0xc" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar6 != 0) {\n      return iVar6;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0" (pointer_expression "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4)" * (cast_expression "(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + (uVar9 + 6) * 4 + 4)" ( (binary_expression "iVar10 + (uVar9 + 6) * 4 + 4" (binary_expression "iVar10 + (uVar9 + 6) * 4" identifier + (binary_expression "(uVar9 + 6) * 4" (parenthesized_expression "(uVar9 + 6)" ( (binary_expression "uVar9 + 6" identifier + number_literal) )) * number_literal)) + number_literal) )))) = number_literal) ;) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" ( (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" ( (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x58b04);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x58b04)" identifier = (pointer_expression "*(code **)(puVar12 + 0x58b04)" * (cast_expression "(code **)(puVar12 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58b04)" ( (binary_expression "puVar12 + 0x58b04" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" { (expression_statement "pcVar13 = *(code **)(puVar12 + 0x58b04);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x58b04)" identifier = (pointer_expression "*(code **)(puVar12 + 0x58b04)" * (cast_expression "(code **)(puVar12 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58b04)" ( (binary_expression "puVar12 + 0x58b04" identifier + number_literal) ))))) ;) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" ( (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" ( (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "(*pcVar13)(piVar5[0xc]);" (call_expression "(*pcVar13)(piVar5[0xc])" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar6 = piVar5[0xe];" (assignment_expression "iVar6 = piVar5[0xe]" identifier = (subscript_expression "piVar5[0xe]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }" { (expression_statement "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x14)" ( (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x14" (pointer_expression "*(int *)(piVar5[0xd] + 8)" * (cast_expression "(int *)(piVar5[0xd] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5[0xd] + 8)" ( (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);" (assignment_expression "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x10)" ( (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x10" (pointer_expression "*(int *)(piVar5[0xd] + 8)" * (cast_expression "(int *)(piVar5[0xd] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5[0xd] + 8)" ( (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;) }) (else_clause "else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" else (compound_statement "{\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" { (expression_statement "uVar8 = *(undefined4 *)(iVar6 + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(iVar6 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" * (cast_expression "(undefined4 *)(iVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar6 + 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar6 + 8)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) }))) (expression_statement "(**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);" (call_expression "(**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8)" (parenthesized_expression "(**(code **)(puVar12 + 0x58cb4))" ( (pointer_expression "**(code **)(puVar12 + 0x58cb4)" * (pointer_expression "*(code **)(puVar12 + 0x58cb4)" * (cast_expression "(code **)(puVar12 + 0x58cb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58cb4)" ( (binary_expression "puVar12 + 0x58cb4" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc],1,uVar7,uVar8)" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) , number_literal , identifier , identifier ))) ;) (expression_statement "iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc])" identifier = (call_expression "(**(code **)(puVar12 + 0x58aec))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar12 + 0x58aec))" ( (pointer_expression "**(code **)(puVar12 + 0x58aec)" * (pointer_expression "*(code **)(puVar12 + 0x58aec)" * (cast_expression "(code **)(puVar12 + 0x58aec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58aec)" ( (binary_expression "puVar12 + 0x58aec" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" if (parenthesized_expression "(iVar6 != 100)" ( (binary_expression "iVar6 != 100" identifier != number_literal) )) (compound_statement "{\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" { (expression_statement "iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc])" identifier = (call_expression "(**(code **)(puVar12 + 0x58b04))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar12 + 0x58b04))" ( (pointer_expression "**(code **)(puVar12 + 0x58b04)" * (pointer_expression "*(code **)(puVar12 + 0x58b04)" * (cast_expression "(code **)(puVar12 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58b04)" ( (binary_expression "puVar12 + 0x58b04" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = 0x10b;\n    }" { (expression_statement "iVar6 = 0x10b;" (assignment_expression "iVar6 = 0x10b" identifier = number_literal) ;) })) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "piVar5[0xf] = piVar5[0xf] & 0xfffffffd;" (assignment_expression "piVar5[0xf] = piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) = (binary_expression "piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3Fts5StorageDocsize(Fts5Storage *p,i64 iRowid,int *aCol)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 in_a2;\n  undefined4 uVar7;\n  undefined4 in_a3;\n  char **pzErrMsg;\n  undefined4 uVar8;\n  uint eStmt;\n  Fts5Storage *p_00;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  sqlite3_stmt *pLookup;\n  int *piStack_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  pLookup = (sqlite3_stmt *)0x0;\n  piStack_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar9 = p->pConfig->nCol;\n  iVar1 = fts5StorageGetStmt(p,8,&pLookup,(char **)0x0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (piStack_2c == *(int **)puVar11) {\n    return iVar1;\n  }\n  piVar5 = piStack_2c;\n  puVar11 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      eStmt = (uint)(piVar5[7] != 0);\n    }\n    else {\n      eStmt = 2;\n    }\n    p_00 = *(Fts5Storage **)(*piVar5 + 0x14);\n    pzErrMsg = (char **)0x0;\n    if (iVar6 != 0) {\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }\n    iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n  }\n  else {\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar12)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar11 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar11 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}\n\n" (function_definition "int sqlite3Fts5StorageDocsize(Fts5Storage *p,i64 iRowid,int *aCol)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 in_a2;\n  undefined4 uVar7;\n  undefined4 in_a3;\n  char **pzErrMsg;\n  undefined4 uVar8;\n  uint eStmt;\n  Fts5Storage *p_00;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  sqlite3_stmt *pLookup;\n  int *piStack_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  pLookup = (sqlite3_stmt *)0x0;\n  piStack_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar9 = p->pConfig->nCol;\n  iVar1 = fts5StorageGetStmt(p,8,&pLookup,(char **)0x0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (piStack_2c == *(int **)puVar11) {\n    return iVar1;\n  }\n  piVar5 = piStack_2c;\n  puVar11 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      eStmt = (uint)(piVar5[7] != 0);\n    }\n    else {\n      eStmt = 2;\n    }\n    p_00 = *(Fts5Storage **)(*piVar5 + 0x14);\n    pzErrMsg = (char **)0x0;\n    if (iVar6 != 0) {\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }\n    iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n  }\n  else {\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar12)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar11 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar11 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" primitive_type (function_declarator "sqlite3Fts5StorageDocsize(Fts5Storage *p,i64 iRowid,int *aCol)" identifier (parameter_list "(Fts5Storage *p,i64 iRowid,int *aCol)" ( (parameter_declaration "Fts5Storage *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "i64 iRowid" type_identifier identifier) , (parameter_declaration "int *aCol" primitive_type (pointer_declarator "*aCol" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 in_a2;\n  undefined4 uVar7;\n  undefined4 in_a3;\n  char **pzErrMsg;\n  undefined4 uVar8;\n  uint eStmt;\n  Fts5Storage *p_00;\n  int iVar9;\n  int iVar10;\n  undefined *puVar11;\n  code *pcVar12;\n  sqlite3_stmt *pLookup;\n  int *piStack_2c;\n  \n  puVar11 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  pLookup = (sqlite3_stmt *)0x0;\n  piStack_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar9 = p->pConfig->nCol;\n  iVar1 = fts5StorageGetStmt(p,8,&pLookup,(char **)0x0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (piStack_2c == *(int **)puVar11) {\n    return iVar1;\n  }\n  piVar5 = piStack_2c;\n  puVar11 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      eStmt = (uint)(piVar5[7] != 0);\n    }\n    else {\n      eStmt = 2;\n    }\n    p_00 = *(Fts5Storage **)(*piVar5 + 0x14);\n    pzErrMsg = (char **)0x0;\n    if (iVar6 != 0) {\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }\n    iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n  }\n  else {\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar12)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar11 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar11 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "char **pzErrMsg;" primitive_type (pointer_declarator "**pzErrMsg" * (pointer_declarator "*pzErrMsg" * identifier)) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint eStmt;" type_identifier identifier ;) (declaration "Fts5Storage *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "sqlite3_stmt *pLookup;" type_identifier (pointer_declarator "*pLookup" * identifier) ;) (declaration "int *piStack_2c;" primitive_type (pointer_declarator "*piStack_2c" * identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar11 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" identifier = number_literal) ;) (expression_statement "pLookup = (sqlite3_stmt *)0x0;" (assignment_expression "pLookup = (sqlite3_stmt *)0x0" identifier = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piStack_2c = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "piStack_2c = *(int **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar9 = p->pConfig->nCol;" (assignment_expression "iVar9 = p->pConfig->nCol" identifier = (field_expression "p->pConfig->nCol" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar1 = fts5StorageGetStmt(p,8,&pLookup,(char **)0x0);" (assignment_expression "iVar1 = fts5StorageGetStmt(p,8,&pLookup,(char **)0x0)" identifier = (call_expression "fts5StorageGetStmt(p,8,&pLookup,(char **)0x0)" identifier (argument_list "(p,8,&pLookup,(char **)0x0)" ( identifier , number_literal , (pointer_expression "&pLookup" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int64_0015b7f8" * (cast_expression "(code *)PTR_sqlite3_bind_int64_0015b7f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pLookup,1,in_a2,in_a3)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(pLookup)" identifier = (call_expression "(*(code *)PTR_sqlite3_step_0015b630)(pLookup)" (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 "(pLookup)" ( identifier )))) ;) (if_statement "if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }" if (parenthesized_expression "(iVar1 == 100)" ( (binary_expression "iVar1 == 100" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);\n      iVar1 = 0;\n      if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }" { (expression_statement "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)(pLookup,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)" ( (pointer_expression "*(code *)PTR_sqlite3_column_blob_0015b668" * (cast_expression "(code *)PTR_sqlite3_column_blob_0015b668" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pLookup,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup);" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)(pLookup)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)" ( (pointer_expression "*(code *)PTR_sqlite3_column_bytes_0015b664" * (cast_expression "(code *)PTR_sqlite3_column_bytes_0015b664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pLookup)" ( identifier )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar9 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }" if (parenthesized_expression "(iVar9 < 1)" ( (binary_expression "iVar9 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }" { (labeled_statement "LAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" statement_identifier : (if_statement "if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" if (parenthesized_expression "(iVar3 == iVar1)" ( (binary_expression "iVar3 == iVar1" identifier == identifier) )) (compound_statement "{\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)()" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)()" (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 "()" ( )))) ;) (goto_statement "goto LAB_001029f4;" goto statement_identifier ;) }))) }) (else_clause "else if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }" else (if_statement "if (0 < iVar3) {\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n        iVar10 = 0;\n        pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);\n      }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);" (assignment_expression "pcVar12 = (code *)(PTR_LAB_0015b6c0 + 0x27e0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x27e0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x27e0)" ( (binary_expression "PTR_LAB_0015b6c0 + 0x27e0" identifier + number_literal) )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        } while (iVar1 < iVar3);" do (compound_statement "{\n          iVar10 = iVar10 + 1;\n          iVar6 = iRowid._0_4_;\n          iVar4 = (*pcVar12)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar9 == iVar10) goto LAB_00102afc;\n          iRowid._0_4_ = iRowid._0_4_ + 4;\n        }" { (expression_statement "iVar10 = iVar10 + 1;" (assignment_expression "iVar10 = iVar10 + 1" identifier = (binary_expression "iVar10 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iRowid._0_4_;" (assignment_expression "iVar6 = iRowid._0_4_" identifier = (field_expression "iRowid._0_4_" identifier . field_identifier)) ;) (expression_statement "iVar4 = (*pcVar12)(iVar2 + iVar1);" (assignment_expression "iVar4 = (*pcVar12)(iVar2 + iVar1)" identifier = (call_expression "(*pcVar12)(iVar2 + iVar1)" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) ;) (expression_statement "iVar1 = iVar1 + iVar4;" (assignment_expression "iVar1 = iVar1 + iVar4" identifier = (binary_expression "iVar1 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar9 == iVar10) goto LAB_00102afc;" if (parenthesized_expression "(iVar9 == iVar10)" ( (binary_expression "iVar9 == iVar10" identifier == identifier) )) (goto_statement "goto LAB_00102afc;" goto statement_identifier ;)) (expression_statement "iRowid._0_4_ = iRowid._0_4_ + 4;" (assignment_expression "iRowid._0_4_ = iRowid._0_4_ + 4" (field_expression "iRowid._0_4_" identifier . field_identifier) = (binary_expression "iRowid._0_4_ + 4" (field_expression "iRowid._0_4_" identifier . field_identifier) + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < iVar3)" ( (binary_expression "iVar1 < iVar3" identifier < identifier) )) ;) })))) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(pLookup)" (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 "(pLookup)" ( identifier )))) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(pLookup)" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)(pLookup)" (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 "(pLookup)" ( identifier )))) ;) }))) (if_statement "if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 0x10b;\n    }" { (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;) })) })) (labeled_statement "LAB_001029f4:\n  if (piStack_2c == *(int **)puVar11) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (piStack_2c == *(int **)puVar11) {\n    return iVar1;\n  }" if (parenthesized_expression "(piStack_2c == *(int **)puVar11)" ( (binary_expression "piStack_2c == *(int **)puVar11" identifier == (pointer_expression "*(int **)puVar11" * (cast_expression "(int **)puVar11" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "piVar5 = piStack_2c;" (assignment_expression "piVar5 = piStack_2c" identifier = identifier) ;) (expression_statement "puVar11 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar11 = 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 "()" ( ))) ;) (if_statement "if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      eStmt = (uint)(piVar5[7] != 0);\n    }\n    else {\n      eStmt = 2;\n    }\n    p_00 = *(Fts5Storage **)(*piVar5 + 0x14);\n    pzErrMsg = (char **)0x0;\n    if (iVar6 != 0) {\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }\n    iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n  }\n  else {\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(piVar5[0xc] == 0)" ( (binary_expression "piVar5[0xc] == 0" (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (piVar5[6] == 5) {\n      eStmt = (uint)(piVar5[7] != 0);\n    }\n    else {\n      eStmt = 2;\n    }\n    p_00 = *(Fts5Storage **)(*piVar5 + 0x14);\n    pzErrMsg = (char **)0x0;\n    if (iVar6 != 0) {\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }\n    iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n  }" { (if_statement "if (piVar5[6] == 5) {\n      eStmt = (uint)(piVar5[7] != 0);\n    }\n    else {\n      eStmt = 2;\n    }" if (parenthesized_expression "(piVar5[6] == 5)" ( (binary_expression "piVar5[6] == 5" (subscript_expression "piVar5[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      eStmt = (uint)(piVar5[7] != 0);\n    }" { (expression_statement "eStmt = (uint)(piVar5[7] != 0);" (assignment_expression "eStmt = (uint)(piVar5[7] != 0)" identifier = (call_expression "(uint)(piVar5[7] != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar5[7] != 0)" ( (binary_expression "piVar5[7] != 0" (subscript_expression "piVar5[7]" identifier [ number_literal ]) != number_literal) )))) ;) }) (else_clause "else {\n      eStmt = 2;\n    }" else (compound_statement "{\n      eStmt = 2;\n    }" { (expression_statement "eStmt = 2;" (assignment_expression "eStmt = 2" identifier = number_literal) ;) }))) (expression_statement "p_00 = *(Fts5Storage **)(*piVar5 + 0x14);" (assignment_expression "p_00 = *(Fts5Storage **)(*piVar5 + 0x14)" identifier = (pointer_expression "*(Fts5Storage **)(*piVar5 + 0x14)" * (cast_expression "(Fts5Storage **)(*piVar5 + 0x14)" ( (type_descriptor "Fts5Storage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 0x14)" ( (binary_expression "*piVar5 + 0x14" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) ;) (expression_statement "pzErrMsg = (char **)0x0;" (assignment_expression "pzErrMsg = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (if_statement "if (iVar6 != 0) {\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      pzErrMsg = (char **)(*piVar5 + 8);\n    }" { (expression_statement "pzErrMsg = (char **)(*piVar5 + 8);" (assignment_expression "pzErrMsg = (char **)(*piVar5 + 8)" identifier = (cast_expression "(char **)(*piVar5 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar5 + 8)" ( (binary_expression "*piVar5 + 8" (pointer_expression "*piVar5" * identifier) + number_literal) )))) ;) })) (expression_statement "iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg);" (assignment_expression "iVar6 = fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg)" identifier = (call_expression "fts5StorageGetStmt(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg)" identifier (argument_list "(p_00,eStmt,(sqlite3_stmt **)(piVar5 + 0xc),pzErrMsg)" ( identifier , identifier , (cast_expression "(sqlite3_stmt **)(piVar5 + 0xc)" ( (type_descriptor "sqlite3_stmt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar5 + 0xc)" ( (binary_expression "piVar5 + 0xc" identifier + number_literal) ))) , identifier )))) ;) (if_statement "if (iVar6 != 0) {\n      return iVar6;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0;" (assignment_expression "p_00->aStmt[eStmt] = (sqlite3_stmt *)0x0" (subscript_expression "p_00->aStmt[eStmt]" (field_expression "p_00->aStmt" identifier -> field_identifier) [ identifier ]) = (cast_expression "(sqlite3_stmt *)0x0" ( (type_descriptor "sqlite3_stmt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" ( (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" ( (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar12 = *(code **)(puVar11 + 0x58b04);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x58b04)" identifier = (pointer_expression "*(code **)(puVar11 + 0x58b04)" * (cast_expression "(code **)(puVar11 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x58b04)" ( (binary_expression "puVar11 + 0x58b04" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    pcVar12 = *(code **)(puVar11 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" { (expression_statement "pcVar12 = *(code **)(puVar11 + 0x58b04);" (assignment_expression "pcVar12 = *(code **)(puVar11 + 0x58b04)" identifier = (pointer_expression "*(code **)(puVar11 + 0x58b04)" * (cast_expression "(code **)(puVar11 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x58b04)" ( (binary_expression "puVar11 + 0x58b04" identifier + number_literal) ))))) ;) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" ( (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" ( (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "(*pcVar12)(piVar5[0xc]);" (call_expression "(*pcVar12)(piVar5[0xc])" (parenthesized_expression "(*pcVar12)" ( (pointer_expression "*pcVar12" * identifier) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar6 = piVar5[0xe];" (assignment_expression "iVar6 = piVar5[0xe]" identifier = (subscript_expression "piVar5[0xe]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }" { (expression_statement "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x14)" ( (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x14" (pointer_expression "*(int *)(piVar5[0xd] + 8)" * (cast_expression "(int *)(piVar5[0xd] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5[0xd] + 8)" ( (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);" (assignment_expression "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x10)" ( (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x10" (pointer_expression "*(int *)(piVar5[0xd] + 8)" * (cast_expression "(int *)(piVar5[0xd] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5[0xd] + 8)" ( (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;) }) (else_clause "else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" else (compound_statement "{\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" { (expression_statement "uVar8 = *(undefined4 *)(iVar6 + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(iVar6 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" * (cast_expression "(undefined4 *)(iVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar6 + 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar6 + 8)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) }))) (expression_statement "(**(code **)(puVar11 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);" (call_expression "(**(code **)(puVar11 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8)" (parenthesized_expression "(**(code **)(puVar11 + 0x58cb4))" ( (pointer_expression "**(code **)(puVar11 + 0x58cb4)" * (pointer_expression "*(code **)(puVar11 + 0x58cb4)" * (cast_expression "(code **)(puVar11 + 0x58cb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x58cb4)" ( (binary_expression "puVar11 + 0x58cb4" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc],1,uVar7,uVar8)" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) , number_literal , identifier , identifier ))) ;) (expression_statement "iVar6 = (**(code **)(puVar11 + 0x58aec))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar11 + 0x58aec))(piVar5[0xc])" identifier = (call_expression "(**(code **)(puVar11 + 0x58aec))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar11 + 0x58aec))" ( (pointer_expression "**(code **)(puVar11 + 0x58aec)" * (pointer_expression "*(code **)(puVar11 + 0x58aec)" * (cast_expression "(code **)(puVar11 + 0x58aec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x58aec)" ( (binary_expression "puVar11 + 0x58aec" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" if (parenthesized_expression "(iVar6 != 100)" ( (binary_expression "iVar6 != 100" identifier != number_literal) )) (compound_statement "{\n    iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" { (expression_statement "iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar11 + 0x58b04))(piVar5[0xc])" identifier = (call_expression "(**(code **)(puVar11 + 0x58b04))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar11 + 0x58b04))" ( (pointer_expression "**(code **)(puVar11 + 0x58b04)" * (pointer_expression "*(code **)(puVar11 + 0x58b04)" * (cast_expression "(code **)(puVar11 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x58b04)" ( (binary_expression "puVar11 + 0x58b04" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = 0x10b;\n    }" { (expression_statement "iVar6 = 0x10b;" (assignment_expression "iVar6 = 0x10b" identifier = number_literal) ;) })) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "piVar5[0xf] = piVar5[0xf] & 0xfffffffd;" (assignment_expression "piVar5[0xf] = piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) = (binary_expression "piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}\n\n" (function_definition "int FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" primitive_type (function_declarator "FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar12 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar10 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar10 = *(int *)(*param_1 + 0xc)" identifier = (pointer_expression "*(int *)(*param_1 + 0xc)" * (cast_expression "(int *)(*param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0xc)" ( (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_000f7be0(param_1,8,&local_30,0);" (assignment_expression "iVar1 = FUN_000f7be0(param_1,8,&local_30,0)" identifier = (call_expression "FUN_000f7be0(param_1,8,&local_30,0)" identifier (argument_list "(param_1,8,&local_30,0)" ( identifier , number_literal , (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)" ( (pointer_expression "*(code *)PTR_sqlite3_bind_int64_0015b7f8" * (cast_expression "(code *)PTR_sqlite3_bind_int64_0015b7f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,1,param_3,param_4)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30)" identifier = (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 )))) ;) (if_statement "if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" if (parenthesized_expression "(iVar1 == 100)" ( (binary_expression "iVar1 == 100" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" { (expression_statement "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)" ( (pointer_expression "*(code *)PTR_sqlite3_column_blob_0015b668" * (cast_expression "(code *)PTR_sqlite3_column_blob_0015b668" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30)" identifier = (call_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)" ( (pointer_expression "*(code *)PTR_sqlite3_column_bytes_0015b664" * (cast_expression "(code *)PTR_sqlite3_column_bytes_0015b664" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_30)" ( identifier )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" if (parenthesized_expression "(iVar10 < 1)" ( (binary_expression "iVar10 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }" { (labeled_statement "LAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" statement_identifier : (if_statement "if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" if (parenthesized_expression "(iVar3 == iVar1)" ( (binary_expression "iVar3 == iVar1" identifier == identifier) )) (compound_statement "{\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)()" identifier = (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)()" (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 "()" ( )))) ;) (goto_statement "goto LAB_001029f4;" goto statement_identifier ;) }))) }) (else_clause "else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" else (if_statement "if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x27e0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x27e0)" ( (binary_expression "PTR_LAB_0015b6c0 + 0x27e0" identifier + number_literal) )))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);" do (compound_statement "{\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = param_5;" (assignment_expression "iVar6 = param_5" identifier = identifier) ;) (expression_statement "iVar4 = (*pcVar13)(iVar2 + iVar1);" (assignment_expression "iVar4 = (*pcVar13)(iVar2 + iVar1)" identifier = (call_expression "(*pcVar13)(iVar2 + iVar1)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) ;) (expression_statement "iVar1 = iVar1 + iVar4;" (assignment_expression "iVar1 = iVar1 + iVar4" identifier = (binary_expression "iVar1 + iVar4" identifier + identifier)) ;) (if_statement "if (iVar10 == iVar11) goto LAB_00102afc;" if (parenthesized_expression "(iVar10 == iVar11)" ( (binary_expression "iVar10 == iVar11" identifier == identifier) )) (goto_statement "goto LAB_00102afc;" goto statement_identifier ;)) (expression_statement "param_5 = param_5 + 4;" (assignment_expression "param_5 = param_5 + 4" identifier = (binary_expression "param_5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < iVar3)" ( (binary_expression "iVar1 < iVar3" identifier < 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 )))) ;) }) (else_clause "else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" else (compound_statement "{\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" { (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 )))) ;) }))) (if_statement "if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 0x10b;\n    }" { (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;) })) })) (labeled_statement "LAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }" statement_identifier : (if_statement "if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_2c == *(int **)puVar12)" ( (binary_expression "local_2c == *(int **)puVar12" identifier == (pointer_expression "*(int **)puVar12" * (cast_expression "(int **)puVar12" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) }))) (expression_statement "piVar5 = local_2c;" (assignment_expression "piVar5 = local_2c" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar12 = 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 "()" ( ))) ;) (if_statement "if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(piVar5[0xc] == 0)" ( (binary_expression "piVar5[0xc] == 0" (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }" { (if_statement "if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }" if (parenthesized_expression "(piVar5[6] == 5)" ( (binary_expression "piVar5[6] == 5" (subscript_expression "piVar5[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      uVar9 = (uint)(piVar5[7] != 0);\n    }" { (expression_statement "uVar9 = (uint)(piVar5[7] != 0);" (assignment_expression "uVar9 = (uint)(piVar5[7] != 0)" identifier = (call_expression "(uint)(piVar5[7] != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar5[7] != 0)" ( (binary_expression "piVar5[7] != 0" (subscript_expression "piVar5[7]" identifier [ number_literal ]) != number_literal) )))) ;) }) (else_clause "else {\n      uVar9 = 2;\n    }" else (compound_statement "{\n      uVar9 = 2;\n    }" { (expression_statement "uVar9 = 2;" (assignment_expression "uVar9 = 2" identifier = number_literal) ;) }))) (expression_statement "iVar10 = *(int *)(*piVar5 + 0x14);" (assignment_expression "iVar10 = *(int *)(*piVar5 + 0x14)" identifier = (pointer_expression "*(int *)(*piVar5 + 0x14)" * (cast_expression "(int *)(*piVar5 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0x14)" ( (binary_expression "*piVar5 + 0x14" (pointer_expression "*piVar5" * identifier) + number_literal) ))))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = *piVar5 + 8;\n    }" { (expression_statement "iVar1 = *piVar5 + 8;" (assignment_expression "iVar1 = *piVar5 + 8" identifier = (binary_expression "*piVar5 + 8" (pointer_expression "*piVar5" * identifier) + number_literal)) ;) })) (expression_statement "iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);" (assignment_expression "iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1)" identifier = (call_expression "FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1)" identifier (argument_list "(iVar10,uVar9,piVar5 + 0xc,iVar1)" ( identifier , identifier , (binary_expression "piVar5 + 0xc" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar6 != 0) {\n      return iVar6;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar6;\n    }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0" (pointer_expression "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4)" * (cast_expression "(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + (uVar9 + 6) * 4 + 4)" ( (binary_expression "iVar10 + (uVar9 + 6) * 4 + 4" (binary_expression "iVar10 + (uVar9 + 6) * 4" identifier + (binary_expression "(uVar9 + 6) * 4" (parenthesized_expression "(uVar9 + 6)" ( (binary_expression "uVar9 + 6" identifier + number_literal) )) * number_literal)) + number_literal) )))) = number_literal) ;) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" ( (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" ( (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x58b04);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x58b04)" identifier = (pointer_expression "*(code **)(puVar12 + 0x58b04)" * (cast_expression "(code **)(puVar12 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58b04)" ( (binary_expression "puVar12 + 0x58b04" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" { (expression_statement "pcVar13 = *(code **)(puVar12 + 0x58b04);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x58b04)" identifier = (pointer_expression "*(code **)(puVar12 + 0x58b04)" * (cast_expression "(code **)(puVar12 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58b04)" ( (binary_expression "puVar12 + 0x58b04" identifier + number_literal) ))))) ;) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" if (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" ( (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" ( (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "(*pcVar13)(piVar5[0xc]);" (call_expression "(*pcVar13)(piVar5[0xc])" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar6 = piVar5[0xe];" (assignment_expression "iVar6 = piVar5[0xe]" identifier = (subscript_expression "piVar5[0xe]" identifier [ number_literal ])) ;) (if_statement "if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }" { (expression_statement "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" * (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x14)" ( (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x14" (pointer_expression "*(int *)(piVar5[0xd] + 8)" * (cast_expression "(int *)(piVar5[0xd] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5[0xd] + 8)" ( (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);" (assignment_expression "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" * (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x10)" ( (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x10" (pointer_expression "*(int *)(piVar5[0xd] + 8)" * (cast_expression "(int *)(piVar5[0xd] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar5[0xd] + 8)" ( (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" identifier [ number_literal ]) + number_literal) )))) + number_literal) ))))) ;) }) (else_clause "else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" else (compound_statement "{\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" { (expression_statement "uVar8 = *(undefined4 *)(iVar6 + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(iVar6 + 0xc)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" * (cast_expression "(undefined4 *)(iVar6 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(iVar6 + 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar6 + 8)" identifier = (pointer_expression "*(undefined4 *)(iVar6 + 8)" * (cast_expression "(undefined4 *)(iVar6 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) ;) }))) (expression_statement "(**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);" (call_expression "(**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8)" (parenthesized_expression "(**(code **)(puVar12 + 0x58cb4))" ( (pointer_expression "**(code **)(puVar12 + 0x58cb4)" * (pointer_expression "*(code **)(puVar12 + 0x58cb4)" * (cast_expression "(code **)(puVar12 + 0x58cb4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58cb4)" ( (binary_expression "puVar12 + 0x58cb4" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc],1,uVar7,uVar8)" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) , number_literal , identifier , identifier ))) ;) (expression_statement "iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc])" identifier = (call_expression "(**(code **)(puVar12 + 0x58aec))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar12 + 0x58aec))" ( (pointer_expression "**(code **)(puVar12 + 0x58aec)" * (pointer_expression "*(code **)(puVar12 + 0x58aec)" * (cast_expression "(code **)(puVar12 + 0x58aec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58aec)" ( (binary_expression "puVar12 + 0x58aec" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" if (parenthesized_expression "(iVar6 != 100)" ( (binary_expression "iVar6 != 100" identifier != number_literal) )) (compound_statement "{\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" { (expression_statement "iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc])" identifier = (call_expression "(**(code **)(puVar12 + 0x58b04))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar12 + 0x58b04))" ( (pointer_expression "**(code **)(puVar12 + 0x58b04)" * (pointer_expression "*(code **)(puVar12 + 0x58b04)" * (cast_expression "(code **)(puVar12 + 0x58b04)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x58b04)" ( (binary_expression "puVar12 + 0x58b04" identifier + number_literal) ))))) )) (argument_list "(piVar5[0xc])" ( (subscript_expression "piVar5[0xc]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = 0x10b;\n    }" { (expression_statement "iVar6 = 0x10b;" (assignment_expression "iVar6 = 0x10b" identifier = number_literal) ;) })) (return_statement "return iVar6;" return identifier ;) })) (expression_statement "piVar5[0xf] = piVar5[0xf] & 0xfffffffd;" (assignment_expression "piVar5[0xf] = piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) = (binary_expression "piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" identifier [ number_literal ]) & number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 = 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (goto_statement goto statement_identifier ;) }))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00102970(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" (identifier "FUN_00102970") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,int param_5)" (( "(") (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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  uint uVar9;\n  int iVar10;\n  int iVar11;\n  undefined *puVar12;\n  code *pcVar13;\n  undefined4 local_30;\n  int *local_2c;\n  \n  puVar12 = PTR___stack_chk_guard_0015ba2c;\n  iVar6 = 8;\n  local_30 = 0;\n  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;\n  iVar10 = *(int *)(*param_1 + 0xc);\n  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);\n  if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }\nLAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }\n  piVar5 = local_2c;\n  puVar12 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }\n  (*pcVar13)(piVar5[0xc]);\n  iVar6 = piVar5[0xe];\n  if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }\n  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);\n  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);\n  if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }\n  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "code *pcVar13;" (type_identifier "code") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "int *local_2c;" (primitive_type "int") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (expression_statement "puVar12 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar12 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar12") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" (identifier "iVar6") (= "=") (number_literal "8")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int **)PTR___stack_chk_guard_0015ba2c" (identifier "local_2c") (= "=") (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "iVar10 = *(int *)(*param_1 + 0xc);" (assignment_expression "iVar10 = *(int *)(*param_1 + 0xc)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(*param_1 + 0xc)" (* "*") (cast_expression "(int *)(*param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0xc)" (( "(") (binary_expression "*param_1 + 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_000f7be0(param_1,8,&local_30,0);" (assignment_expression "iVar1 = FUN_000f7be0(param_1,8,&local_30,0)" (identifier "iVar1") (= "=") (call_expression "FUN_000f7be0(param_1,8,&local_30,0)" (identifier "FUN_000f7be0") (argument_list "(param_1,8,&local_30,0)" (( "(") (identifier "param_1") (, ",") (number_literal "8") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = 1;\n    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);\n    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);\n    if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }\n  }" ({ "{") (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);" (call_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4)" (parenthesized_expression "(*(code *)PTR_sqlite3_bind_int64_0015b7f8)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_bind_int64_0015b7f8" (* "*") (cast_expression "(code *)PTR_sqlite3_bind_int64_0015b7f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_bind_int64_0015b7f8"))) () ")")) (argument_list "(local_30,1,param_3,param_4)" (( "(") (identifier "local_30") (, ",") (number_literal "1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30)" (identifier "iVar1") (= "=") (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") () ")")))) (; ";")) (if_statement "if (iVar1 == 100) {\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }\n    else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" (if "if") (parenthesized_expression "(iVar1 == 100)" (( "(") (binary_expression "iVar1 == 100" (identifier "iVar1") (== "==") (number_literal "100")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);\n      iVar6 = 0;\n      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);\n      iVar1 = 0;\n      if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_blob_0015b668)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_column_blob_0015b668" (* "*") (cast_expression "(code *)PTR_sqlite3_column_blob_0015b668" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_column_blob_0015b668"))) () ")")) (argument_list "(local_30,0)" (( "(") (identifier "local_30") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30)" (parenthesized_expression "(*(code *)PTR_sqlite3_column_bytes_0015b664)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_column_bytes_0015b664" (* "*") (cast_expression "(code *)PTR_sqlite3_column_bytes_0015b664" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_column_bytes_0015b664"))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar10 < 1) {\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }\n      else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" (if "if") (parenthesized_expression "(iVar10 < 1)" (( "(") (binary_expression "iVar10 < 1" (identifier "iVar10") (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }\n      }" ({ "{") (labeled_statement "LAB_00102afc:\n        if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" (statement_identifier "LAB_00102afc") (: ":") (if_statement "if (iVar3 == iVar1) {\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" (if "if") (parenthesized_expression "(iVar3 == iVar1)" (( "(") (binary_expression "iVar3 == iVar1" (identifier "iVar3") (== "==") (identifier "iVar1")) () ")")) (compound_statement "{\n          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();\n          goto LAB_001029f4;\n        }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_reset_0015b648)()" (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 "()" (( "(") () ")")))) (; ";")) (goto_statement "goto LAB_001029f4;" (goto "goto") (statement_identifier "LAB_001029f4") (; ";")) (} "}")))) (} "}")) (else_clause "else if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" (else "else") (if_statement "if (0 < iVar3) {\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n        iVar11 = 0;\n        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);\n        iVar1 = 0;\n        do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);\n      }" ({ "{") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0)" (identifier "pcVar13") (= "=") (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x27e0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x27e0)" (( "(") (binary_expression "PTR_LAB_0015b6c0 + 0x27e0" (identifier "PTR_LAB_0015b6c0") (+ "+") (number_literal "0x27e0")) () ")")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        } while (iVar1 < iVar3);" (do "do") (compound_statement "{\n          iVar11 = iVar11 + 1;\n          iVar6 = param_5;\n          iVar4 = (*pcVar13)(iVar2 + iVar1);\n          iVar1 = iVar1 + iVar4;\n          if (iVar10 == iVar11) goto LAB_00102afc;\n          param_5 = param_5 + 4;\n        }" ({ "{") (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = param_5;" (assignment_expression "iVar6 = param_5" (identifier "iVar6") (= "=") (identifier "param_5")) (; ";")) (expression_statement "iVar4 = (*pcVar13)(iVar2 + iVar1);" (assignment_expression "iVar4 = (*pcVar13)(iVar2 + iVar1)" (identifier "iVar4") (= "=") (call_expression "(*pcVar13)(iVar2 + iVar1)" (parenthesized_expression "(*pcVar13)" (( "(") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) () ")")) (argument_list "(iVar2 + iVar1)" (( "(") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) () ")")))) (; ";")) (expression_statement "iVar1 = iVar1 + iVar4;" (assignment_expression "iVar1 = iVar1 + iVar4" (identifier "iVar1") (= "=") (binary_expression "iVar1 + iVar4" (identifier "iVar1") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if (iVar10 == iVar11) goto LAB_00102afc;" (if "if") (parenthesized_expression "(iVar10 == iVar11)" (( "(") (binary_expression "iVar10 == iVar11" (identifier "iVar10") (== "==") (identifier "iVar11")) () ")")) (goto_statement "goto LAB_00102afc;" (goto "goto") (statement_identifier "LAB_00102afc") (; ";"))) (expression_statement "param_5 = param_5 + 4;" (assignment_expression "param_5 = param_5 + 4" (identifier "param_5") (= "=") (binary_expression "param_5 + 4" (identifier "param_5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < iVar3)" (( "(") (binary_expression "iVar1 < iVar3" (identifier "iVar1") (< "<") (identifier "iVar3")) () ")")) (; ";")) (} "}"))))) (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") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" (else "else") (compound_statement "{\n      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);\n    }" ({ "{") (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") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 == 0) {\n      iVar1 = 0x10b;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 0x10b;\n    }" ({ "{") (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" (identifier "iVar1") (= "=") (number_literal "0x10b")) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_001029f4:\n  if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }" (statement_identifier "LAB_001029f4") (: ":") (if_statement "if (local_2c == *(int **)puVar12) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int **)puVar12)" (( "(") (binary_expression "local_2c == *(int **)puVar12" (identifier "local_2c") (== "==") (pointer_expression "*(int **)puVar12" (* "*") (cast_expression "(int **)puVar12" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar12")))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))) (expression_statement "piVar5 = local_2c;" (assignment_expression "piVar5 = local_2c" (identifier "piVar5") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar12 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar12 = PTR___stack_chk_fail_0015ba10" (identifier "puVar12") (= "=") (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 "()" (( "(") () ")"))) (; ";")) (if_statement "if (piVar5[0xc] == 0) {\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }\n  else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(piVar5[0xc] == 0)" (( "(") (binary_expression "piVar5[0xc] == 0" (subscript_expression "piVar5[0xc]" (identifier "piVar5") ([ "[") (number_literal "0xc") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }\n    iVar10 = *(int *)(*piVar5 + 0x14);\n    iVar1 = 0;\n    if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }\n    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);\n    if (iVar6 != 0) {\n      return iVar6;\n    }\n    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n  }" ({ "{") (if_statement "if (piVar5[6] == 5) {\n      uVar9 = (uint)(piVar5[7] != 0);\n    }\n    else {\n      uVar9 = 2;\n    }" (if "if") (parenthesized_expression "(piVar5[6] == 5)" (( "(") (binary_expression "piVar5[6] == 5" (subscript_expression "piVar5[6]" (identifier "piVar5") ([ "[") (number_literal "6") (] "]")) (== "==") (number_literal "5")) () ")")) (compound_statement "{\n      uVar9 = (uint)(piVar5[7] != 0);\n    }" ({ "{") (expression_statement "uVar9 = (uint)(piVar5[7] != 0);" (assignment_expression "uVar9 = (uint)(piVar5[7] != 0)" (identifier "uVar9") (= "=") (call_expression "(uint)(piVar5[7] != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar5[7] != 0)" (( "(") (binary_expression "piVar5[7] != 0" (subscript_expression "piVar5[7]" (identifier "piVar5") ([ "[") (number_literal "7") (] "]")) (!= "!=") (number_literal "0")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar9 = 2;\n    }" (else "else") (compound_statement "{\n      uVar9 = 2;\n    }" ({ "{") (expression_statement "uVar9 = 2;" (assignment_expression "uVar9 = 2" (identifier "uVar9") (= "=") (number_literal "2")) (; ";")) (} "}")))) (expression_statement "iVar10 = *(int *)(*piVar5 + 0x14);" (assignment_expression "iVar10 = *(int *)(*piVar5 + 0x14)" (identifier "iVar10") (= "=") (pointer_expression "*(int *)(*piVar5 + 0x14)" (* "*") (cast_expression "(int *)(*piVar5 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar5 + 0x14)" (( "(") (binary_expression "*piVar5 + 0x14" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar6 != 0) {\n      iVar1 = *piVar5 + 8;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = *piVar5 + 8;\n    }" ({ "{") (expression_statement "iVar1 = *piVar5 + 8;" (assignment_expression "iVar1 = *piVar5 + 8" (identifier "iVar1") (= "=") (binary_expression "*piVar5 + 8" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "8"))) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);" (assignment_expression "iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1)" (identifier "iVar6") (= "=") (call_expression "FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1)" (identifier "FUN_000f7be0") (argument_list "(iVar10,uVar9,piVar5 + 0xc,iVar1)" (( "(") (identifier "iVar10") (, ",") (identifier "uVar9") (, ",") (binary_expression "piVar5 + 0xc" (identifier "piVar5") (+ "+") (number_literal "0xc")) (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n      return iVar6;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar6;\n    }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;" (assignment_expression "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0" (pointer_expression "*(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + (uVar9 + 6) * 4 + 4)" (( "(") (binary_expression "iVar10 + (uVar9 + 6) * 4 + 4" (binary_expression "iVar10 + (uVar9 + 6) * 4" (identifier "iVar10") (+ "+") (binary_expression "(uVar9 + 6) * 4" (parenthesized_expression "(uVar9 + 6)" (( "(") (binary_expression "uVar9 + 6" (identifier "uVar9") (+ "+") (number_literal "6")) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" (( "(") (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" (( "(") (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" (identifier "piVar5") ([ "[") (number_literal "0xf") (] "]")) (& "&") (number_literal "2U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "pcVar13 = *(code **)(puVar12 + 0x58b04);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x58b04)" (identifier "pcVar13") (= "=") (pointer_expression "*(code **)(puVar12 + 0x58b04)" (* "*") (cast_expression "(code **)(puVar12 + 0x58b04)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x58b04)" (( "(") (binary_expression "puVar12 + 0x58b04" (identifier "puVar12") (+ "+") (number_literal "0x58b04")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    pcVar13 = *(code **)(puVar12 + 0x58b04);\n    if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }\n  }" ({ "{") (expression_statement "pcVar13 = *(code **)(puVar12 + 0x58b04);" (assignment_expression "pcVar13 = *(code **)(puVar12 + 0x58b04)" (identifier "pcVar13") (= "=") (pointer_expression "*(code **)(puVar12 + 0x58b04)" (* "*") (cast_expression "(code **)(puVar12 + 0x58b04)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x58b04)" (( "(") (binary_expression "puVar12 + 0x58b04" (identifier "puVar12") (+ "+") (number_literal "0x58b04")) () ")"))))) (; ";")) (if_statement "if ((piVar5[0xf] & 2U) == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((piVar5[0xf] & 2U) == 0)" (( "(") (binary_expression "(piVar5[0xf] & 2U) == 0" (parenthesized_expression "(piVar5[0xf] & 2U)" (( "(") (binary_expression "piVar5[0xf] & 2U" (subscript_expression "piVar5[0xf]" (identifier "piVar5") ([ "[") (number_literal "0xf") (] "]")) (& "&") (number_literal "2U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (expression_statement "(*pcVar13)(piVar5[0xc]);" (call_expression "(*pcVar13)(piVar5[0xc])" (parenthesized_expression "(*pcVar13)" (( "(") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) () ")")) (argument_list "(piVar5[0xc])" (( "(") (subscript_expression "piVar5[0xc]" (identifier "piVar5") ([ "[") (number_literal "0xc") (] "]")) () ")"))) (; ";")) (expression_statement "iVar6 = piVar5[0xe];" (assignment_expression "iVar6 = piVar5[0xe]" (identifier "iVar6") (= "=") (subscript_expression "piVar5[0xe]" (identifier "piVar5") ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (if_statement "if (iVar6 == 0) {\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }\n  else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);\n    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);\n  }" ({ "{") (expression_statement "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);" (assignment_expression "uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" (* "*") (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x14)" (( "(") (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x14" (pointer_expression "*(int *)(piVar5[0xd] + 8)" (* "*") (cast_expression "(int *)(piVar5[0xd] + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5[0xd] + 8)" (( "(") (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" (identifier "piVar5") ([ "[") (number_literal "0xd") (] "]")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);" (assignment_expression "uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(piVar5[0xd] + 8) + 0x10)" (( "(") (binary_expression "*(int *)(piVar5[0xd] + 8) + 0x10" (pointer_expression "*(int *)(piVar5[0xd] + 8)" (* "*") (cast_expression "(int *)(piVar5[0xd] + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar5[0xd] + 8)" (( "(") (binary_expression "piVar5[0xd] + 8" (subscript_expression "piVar5[0xd]" (identifier "piVar5") ([ "[") (number_literal "0xd") (] "]")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" (else "else") (compound_statement "{\n    uVar8 = *(undefined4 *)(iVar6 + 0xc);\n    uVar7 = *(undefined4 *)(iVar6 + 8);\n  }" ({ "{") (expression_statement "uVar8 = *(undefined4 *)(iVar6 + 0xc);" (assignment_expression "uVar8 = *(undefined4 *)(iVar6 + 0xc)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(iVar6 + 8);" (assignment_expression "uVar7 = *(undefined4 *)(iVar6 + 8)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(iVar6 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (expression_statement "(**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);" (call_expression "(**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8)" (parenthesized_expression "(**(code **)(puVar12 + 0x58cb4))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x58cb4)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x58cb4)" (* "*") (cast_expression "(code **)(puVar12 + 0x58cb4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x58cb4)" (( "(") (binary_expression "puVar12 + 0x58cb4" (identifier "puVar12") (+ "+") (number_literal "0x58cb4")) () ")"))))) () ")")) (argument_list "(piVar5[0xc],1,uVar7,uVar8)" (( "(") (subscript_expression "piVar5[0xc]" (identifier "piVar5") ([ "[") (number_literal "0xc") (] "]")) (, ",") (number_literal "1") (, ",") (identifier "uVar7") (, ",") (identifier "uVar8") () ")"))) (; ";")) (expression_statement "iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc])" (identifier "iVar6") (= "=") (call_expression "(**(code **)(puVar12 + 0x58aec))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar12 + 0x58aec))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x58aec)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x58aec)" (* "*") (cast_expression "(code **)(puVar12 + 0x58aec)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x58aec)" (( "(") (binary_expression "puVar12 + 0x58aec" (identifier "puVar12") (+ "+") (number_literal "0x58aec")) () ")"))))) () ")")) (argument_list "(piVar5[0xc])" (( "(") (subscript_expression "piVar5[0xc]" (identifier "piVar5") ([ "[") (number_literal "0xc") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar6 != 100) {\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" (if "if") (parenthesized_expression "(iVar6 != 100)" (( "(") (binary_expression "iVar6 != 100" (identifier "iVar6") (!= "!=") (number_literal "100")) () ")")) (compound_statement "{\n    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);\n    if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }\n    return iVar6;\n  }" ({ "{") (expression_statement "iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);" (assignment_expression "iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc])" (identifier "iVar6") (= "=") (call_expression "(**(code **)(puVar12 + 0x58b04))(piVar5[0xc])" (parenthesized_expression "(**(code **)(puVar12 + 0x58b04))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x58b04)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x58b04)" (* "*") (cast_expression "(code **)(puVar12 + 0x58b04)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x58b04)" (( "(") (binary_expression "puVar12 + 0x58b04" (identifier "puVar12") (+ "+") (number_literal "0x58b04")) () ")"))))) () ")")) (argument_list "(piVar5[0xc])" (( "(") (subscript_expression "piVar5[0xc]" (identifier "piVar5") ([ "[") (number_literal "0xc") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n      iVar6 = 0x10b;\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = 0x10b;\n    }" ({ "{") (expression_statement "iVar6 = 0x10b;" (assignment_expression "iVar6 = 0x10b" (identifier "iVar6") (= "=") (number_literal "0x10b")) (; ";")) (} "}"))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "piVar5[0xf] = piVar5[0xf] & 0xfffffffd;" (assignment_expression "piVar5[0xf] = piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" (identifier "piVar5") ([ "[") (number_literal "0xf") (] "]")) (= "=") (binary_expression "piVar5[0xf] & 0xfffffffd" (subscript_expression "piVar5[0xf]" (identifier "piVar5") ([ "[") (number_literal "0xf") (] "]")) (& "&") (number_literal "0xfffffffd"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *p,type_2 iRowid,int *aCol)

{
  int var_2;
  int var_7;
  int var_4;
  int var_8;
  int *var_11;
  int var_10;
  type_3 in_a2;
  type_3 uVar7;
  type_3 in_a3;
  char **pzErrMsg;
  type_3 uVar8;
  type_4 eStmt;
  type_1 *p_00;
  int var_3;
  int var_6;
  type_5 *var_12;
  type_6 *pcVar12;
  type_7 *pLookup;
  int *var_9;
  
  var_12 = PTR___stack_chk_guard_0015ba2c;
  var_10 = 8;
  pLookup = (type_7 *)0x0;
  var_9 = *(int **)PTR___stack_chk_guard_0015ba2c;
  var_3 = p->pConfig->nCol;
  var_2 = var_1(p,8,&pLookup,(char **)0x0);
  if (var_2 == 0) {
    var_10 = 1;
    (*(type_6 *)PTR_sqlite3_bind_int64_0015b7f8)(pLookup,1,in_a2,in_a3);
    var_2 = (*(type_6 *)PTR_sqlite3_step_0015b630)(pLookup);
    if (var_2 == 100) {
      var_7 = (*(type_6 *)PTR_sqlite3_column_blob_0015b668)(pLookup,0);
      var_10 = 0;
      var_4 = (*(type_6 *)PTR_sqlite3_column_bytes_0015b664)(pLookup);
      var_2 = 0;
      if (var_3 < 1) {
LAB_00102afc:
        if (var_4 == var_2) {
          var_2 = (*(type_6 *)PTR_sqlite3_reset_0015b648)();
          goto LAB_001029f4;
        }
      }
      else if (0 < var_4) {
        var_6 = 0;
        pcVar12 = (type_6 *)(var_5 + 0x27e0);
        var_2 = 0;
        do {
          var_6 = var_6 + 1;
          var_10 = iRowid._0_4_;
          var_8 = (*pcVar12)(var_7 + var_2);
          var_2 = var_2 + var_8;
          if (var_3 == var_6) goto LAB_00102afc;
          iRowid._0_4_ = iRowid._0_4_ + 4;
        } while (var_2 < var_4);
      }
      var_2 = (*(type_6 *)PTR_sqlite3_reset_0015b648)(pLookup);
    }
    else {
      var_2 = (*(type_6 *)PTR_sqlite3_reset_0015b648)(pLookup);
    }
    if (var_2 == 0) {
      var_2 = 0x10b;
    }
  }
LAB_001029f4:
  if (var_9 == *(int **)var_12) {
    return var_2;
  }
  var_11 = var_9;
  var_12 = PTR___stack_chk_fail_0015ba10;
  (*(type_6 *)PTR___stack_chk_fail_0015ba10)();
  if (var_11[0xc] == 0) {
    if (var_11[6] == 5) {
      eStmt = (type_4)(var_11[7] != 0);
    }
    else {
      eStmt = 2;
    }
    p_00 = *(type_1 **)(*var_11 + 0x14);
    pzErrMsg = (char **)0x0;
    if (var_10 != 0) {
      pzErrMsg = (char **)(*var_11 + 8);
    }
    var_10 = var_1(p_00,eStmt,(type_7 **)(var_11 + 0xc),pzErrMsg);
    if (var_10 != 0) {
      return var_10;
    }
    p_00->aStmt[eStmt] = (type_7 *)0x0;
    if ((var_11[0xf] & 2U) == 0) {
      return 0;
    }
    pcVar12 = *(type_6 **)(var_12 + 0x58b04);
  }
  else {
    pcVar12 = *(type_6 **)(var_12 + 0x58b04);
    if ((var_11[0xf] & 2U) == 0) {
      return 0;
    }
  }
  (*pcVar12)(var_11[0xc]);
  var_10 = var_11[0xe];
  if (var_10 == 0) {
    uVar8 = *(type_3 *)(*(int *)(var_11[0xd] + 8) + 0x14);
    uVar7 = *(type_3 *)(*(int *)(var_11[0xd] + 8) + 0x10);
  }
  else {
    uVar8 = *(type_3 *)(var_10 + 0xc);
    uVar7 = *(type_3 *)(var_10 + 8);
  }
  (**(type_6 **)(var_12 + 0x58cb4))(var_11[0xc],1,uVar7,uVar8);
  var_10 = (**(type_6 **)(var_12 + 0x58aec))(var_11[0xc]);
  if (var_10 != 100) {
    var_10 = (**(type_6 **)(var_12 + 0x58b04))(var_11[0xc]);
    if (var_10 == 0) {
      var_10 = 0x10b;
    }
    return var_10;
  }
  var_11[0xf] = var_11[0xf] & 0xfffffffd;
  return 0;
}


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

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int *piVar5;
  int iVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  uint uVar9;
  int iVar10;
  int iVar11;
  undefined *puVar12;
  code *pcVar13;
  undefined4 local_30;
  int *local_2c;
  
  puVar12 = PTR___stack_chk_guard_0015ba2c;
  iVar6 = 8;
  local_30 = 0;
  local_2c = *(int **)PTR___stack_chk_guard_0015ba2c;
  iVar10 = *(int *)(*param_1 + 0xc);
  iVar1 = FUN_000f7be0(param_1,8,&local_30,0);
  if (iVar1 == 0) {
    iVar6 = 1;
    (*(code *)PTR_sqlite3_bind_int64_0015b7f8)(local_30,1,param_3,param_4);
    iVar1 = (*(code *)PTR_sqlite3_step_0015b630)(local_30);
    if (iVar1 == 100) {
      iVar2 = (*(code *)PTR_sqlite3_column_blob_0015b668)(local_30,0);
      iVar6 = 0;
      iVar3 = (*(code *)PTR_sqlite3_column_bytes_0015b664)(local_30);
      iVar1 = 0;
      if (iVar10 < 1) {
LAB_00102afc:
        if (iVar3 == iVar1) {
          iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)();
          goto LAB_001029f4;
        }
      }
      else if (0 < iVar3) {
        iVar11 = 0;
        pcVar13 = (code *)(PTR_LAB_0015b6c0 + 0x27e0);
        iVar1 = 0;
        do {
          iVar11 = iVar11 + 1;
          iVar6 = param_5;
          iVar4 = (*pcVar13)(iVar2 + iVar1);
          iVar1 = iVar1 + iVar4;
          if (iVar10 == iVar11) goto LAB_00102afc;
          param_5 = param_5 + 4;
        } while (iVar1 < iVar3);
      }
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
    }
    else {
      iVar1 = (*(code *)PTR_sqlite3_reset_0015b648)(local_30);
    }
    if (iVar1 == 0) {
      iVar1 = 0x10b;
    }
  }
LAB_001029f4:
  if (local_2c == *(int **)puVar12) {
    return iVar1;
  }
  piVar5 = local_2c;
  puVar12 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  if (piVar5[0xc] == 0) {
    if (piVar5[6] == 5) {
      uVar9 = (uint)(piVar5[7] != 0);
    }
    else {
      uVar9 = 2;
    }
    iVar10 = *(int *)(*piVar5 + 0x14);
    iVar1 = 0;
    if (iVar6 != 0) {
      iVar1 = *piVar5 + 8;
    }
    iVar6 = FUN_000f7be0(iVar10,uVar9,piVar5 + 0xc,iVar1);
    if (iVar6 != 0) {
      return iVar6;
    }
    *(undefined4 *)(iVar10 + (uVar9 + 6) * 4 + 4) = 0;
    if ((piVar5[0xf] & 2U) == 0) {
      return 0;
    }
    pcVar13 = *(code **)(puVar12 + 0x58b04);
  }
  else {
    pcVar13 = *(code **)(puVar12 + 0x58b04);
    if ((piVar5[0xf] & 2U) == 0) {
      return 0;
    }
  }
  (*pcVar13)(piVar5[0xc]);
  iVar6 = piVar5[0xe];
  if (iVar6 == 0) {
    uVar8 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x14);
    uVar7 = *(undefined4 *)(*(int *)(piVar5[0xd] + 8) + 0x10);
  }
  else {
    uVar8 = *(undefined4 *)(iVar6 + 0xc);
    uVar7 = *(undefined4 *)(iVar6 + 8);
  }
  (**(code **)(puVar12 + 0x58cb4))(piVar5[0xc],1,uVar7,uVar8);
  iVar6 = (**(code **)(puVar12 + 0x58aec))(piVar5[0xc]);
  if (iVar6 != 100) {
    iVar6 = (**(code **)(puVar12 + 0x58b04))(piVar5[0xc]);
    if (iVar6 == 0) {
      iVar6 = 0x10b;
    }
    return iVar6;
  }
  piVar5[0xf] = piVar5[0xf] & 0xfffffffd;
  return 0;
}

