
void statPush(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  int iVar1;
  uint uVar2;
  void *pvVar3;
  int *piVar4;
  long lVar5;
  
  pvVar3 = sqlite3_value_blob(*argv);
  iVar1 = sqlite3_value_int(argv[1]);
  if (*(int *)((long)pvVar3 + 0xc) == 0) {
    if (0 < *(int *)((long)pvVar3 + 0x14)) {
      iVar1 = 0;
      do {
        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;
        iVar1 = iVar1 + 1;
      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));
    }
  }
  else {
    if (0 < iVar1) {
      lVar5 = 0;
      do {
        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));
        *piVar4 = *piVar4 + 1;
        lVar5 = lVar5 + 4;
      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);
    }
    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {
      do {
        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);
        *piVar4 = *piVar4 + 1;
        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;
        iVar1 = iVar1 + 1;
      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));
    }
  }
  uVar2 = *(int *)((long)pvVar3 + 0xc) + 1;
  *(uint *)((long)pvVar3 + 0xc) = uVar2;
  if ((*(int *)((long)pvVar3 + 0x10) != 0) &&
     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)) {
    *(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;
    sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));
  }
  return;
}



void FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)

{
  int iVar1;
  uint uVar2;
  long lVar3;
  int *piVar4;
  long lVar5;
  
  lVar3 = sqlite3_value_blob(*param_3);
  iVar1 = sqlite3_value_int(param_3[1]);
  if (*(int *)(lVar3 + 0xc) == 0) {
    if (0 < *(int *)(lVar3 + 0x14)) {
      iVar1 = 0;
      do {
        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;
        iVar1 = iVar1 + 1;
      } while (iVar1 < *(int *)(lVar3 + 0x14));
    }
  }
  else {
    if (0 < iVar1) {
      lVar5 = 0;
      do {
        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));
        *piVar4 = *piVar4 + 1;
        lVar5 = lVar5 + 4;
      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);
    }
    if (iVar1 < *(int *)(lVar3 + 0x14)) {
      do {
        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);
        *piVar4 = *piVar4 + 1;
        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;
        iVar1 = iVar1 + 1;
      } while (iVar1 < *(int *)(lVar3 + 0x14));
    }
  }
  uVar2 = *(int *)(lVar3 + 0xc) + 1;
  *(uint *)(lVar3 + 0xc) = uVar2;
  if ((*(int *)(lVar3 + 0x10) != 0) &&
     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {
    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;
    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);
  }
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBP,RDI
MOV R12,RDX
MOV RDI,qword ptr [RDX]
CALL 0x0010c770
MOV RBX,RAX
MOV RDI,qword ptr [R12 + 0x8]
CALL 0x0010c050
CMP dword ptr [RBX + 0xc],0x0
JZ 0x0013119c
TEST EAX,EAX
JLE 0x00131177
LEA EDX,[RAX + -0x1]
LEA RSI,[0x4 + RDX*0x4]
MOV EDX,0x0
MOV RCX,RDX
ADD RCX,qword ptr [RBX + 0x20]
ADD dword ptr [RCX],0x1
ADD RDX,0x4
CMP RSI,RDX
JNZ 0x00131164
CMP EAX,dword ptr [RBX + 0x14]
JGE 0x001311bd
MOVSXD RDX,EAX
MOV RCX,qword ptr [RBX + 0x28]
ADD dword ptr [RCX + RDX*0x4],0x1
MOV RCX,qword ptr [RBX + 0x20]
MOV dword ptr [RCX + RDX*0x4],0x1
ADD EAX,0x1
CMP dword ptr [RBX + 0x14],EAX
JG 0x0013117c
JMP 0x001311bd
CMP dword ptr [RBX + 0x14],0x0
JLE 0x001311bd
MOV EAX,0x0
MOVSXD RCX,EAX
MOV RDX,qword ptr [RBX + 0x20]
MOV dword ptr [RDX + RCX*0x4],0x1
ADD EAX,0x1
CMP dword ptr [RBX + 0x14],EAX
JG 0x001311a7
MOV EAX,dword ptr [RBX + 0xc]
ADD EAX,0x1
MOV dword ptr [RBX + 0xc],EAX
MOV ECX,dword ptr [RBX + 0x10]
TEST ECX,ECX
JZ 0x001311df
MOVZX ESI,byte ptr [RBX + 0x1c]
MOVZX EDX,SIL
ADD EDX,0x1
IMUL EDX,ECX
CMP EAX,EDX
JA 0x001311e4
POP RBX
POP RBP
POP R12
RET
ADD ESI,0x1
MOV byte ptr [RBX + 0x1c],SIL
MOV RAX,qword ptr [RBX + 0x28]
CMP dword ptr [RAX],0x0
SETNZ SIL
MOVZX ESI,SIL
MOV RDI,RBP
CALL 0x0010c1a0
JMP 0x001311df
(translation_unit "void FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = sqlite3_value_blob(*param_3);" (assignment_expression "lVar3 = sqlite3_value_blob(*param_3)" identifier = (call_expression "sqlite3_value_blob(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar1 = sqlite3_value_int(param_3[1]);" (assignment_expression "iVar1 = sqlite3_value_int(param_3[1])" identifier = (call_expression "sqlite3_value_int(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" if (parenthesized_expression "(*(int *)(lVar3 + 0xc) == 0)" ( (binary_expression "*(int *)(lVar3 + 0xc) == 0" (pointer_expression "*(int *)(lVar3 + 0xc)" * (cast_expression "(int *)(lVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc)" ( (binary_expression "lVar3 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" { (if_statement "if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" if (parenthesized_expression "(0 < *(int *)(lVar3 + 0x14))" ( (binary_expression "0 < *(int *)(lVar3 + 0x14)" number_literal < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));" do (compound_statement "{\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" * (cast_expression "(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (binary_expression "*(long *)(lVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" identifier < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) ;) })) }) (else_clause "else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" else (compound_statement "{\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" { (if_statement "if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);" do (compound_statement "{\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      }" { (expression_statement "piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));" (assignment_expression "piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20))" identifier = (cast_expression "(int *)(lVar5 + *(long *)(lVar3 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(lVar3 + 0x20))" ( (binary_expression "lVar5 + *(long *)(lVar3 + 0x20)" identifier + (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) )))) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "lVar5 = lVar5 + 4;" (assignment_expression "lVar5 = lVar5 + 4" identifier = (binary_expression "lVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "((ulong)(iVar1 - 1) * 4 + 4 != lVar5)" ( (binary_expression "(ulong)(iVar1 - 1) * 4 + 4 != lVar5" (binary_expression "(ulong)(iVar1 - 1) * 4 + 4" (binary_expression "(ulong)(iVar1 - 1) * 4" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal) + number_literal) != identifier) )) ;) })) (if_statement "if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" if (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" identifier < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" { (do_statement "do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));" do (compound_statement "{\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);" (assignment_expression "piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" identifier = (cast_expression "(int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" ( (binary_expression "*(long *)(lVar3 + 0x28) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" * (cast_expression "(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (binary_expression "*(long *)(lVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" identifier < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) ;) })) }))) (expression_statement "uVar2 = *(int *)(lVar3 + 0xc) + 1;" (assignment_expression "uVar2 = *(int *)(lVar3 + 0xc) + 1" identifier = (binary_expression "*(int *)(lVar3 + 0xc) + 1" (pointer_expression "*(int *)(lVar3 + 0xc)" * (cast_expression "(int *)(lVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc)" ( (binary_expression "lVar3 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(lVar3 + 0xc) = uVar2;" (assignment_expression "*(uint *)(lVar3 + 0xc) = uVar2" (pointer_expression "*(uint *)(lVar3 + 0xc)" * (cast_expression "(uint *)(lVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc)" ( (binary_expression "lVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }" if (parenthesized_expression "((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2))" ( (binary_expression "(*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)" (parenthesized_expression "(*(int *)(lVar3 + 0x10) != 0)" ( (binary_expression "*(int *)(lVar3 + 0x10) != 0" (pointer_expression "*(int *)(lVar3 + 0x10)" * (cast_expression "(int *)(lVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)" ( (binary_expression "(*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2" (binary_expression "(*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10)" (parenthesized_expression "(*(byte *)(lVar3 + 0x1c) + 1)" ( (binary_expression "*(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" * (cast_expression "(byte *)(lVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1c)" ( (binary_expression "lVar3 + 0x1c" identifier + number_literal) )))) + number_literal) )) * (pointer_expression "*(int *)(lVar3 + 0x10)" * (cast_expression "(int *)(lVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) ))))) < identifier) ))) )) (compound_statement "{\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }" { (expression_statement "*(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;" (assignment_expression "*(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" * (cast_expression "(byte *)(lVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1c)" ( (binary_expression "lVar3 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" * (cast_expression "(byte *)(lVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1c)" ( (binary_expression "lVar3 + 0x1c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);" (call_expression "sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0)" identifier (argument_list "(param_1,**(int **)(lVar3 + 0x28) != 0)" ( identifier , (binary_expression "**(int **)(lVar3 + 0x28) != 0" (pointer_expression "**(int **)(lVar3 + 0x28)" * (pointer_expression "*(int **)(lVar3 + 0x28)" * (cast_expression "(int **)(lVar3 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) ))))) != number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void statPush(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int iVar1;\n  uint uVar2;\n  void *pvVar3;\n  int *piVar4;\n  long lVar5;\n  \n  pvVar3 = sqlite3_value_blob(*argv);\n  iVar1 = sqlite3_value_int(argv[1]);\n  if (*(int *)((long)pvVar3 + 0xc) == 0) {\n    if (0 < *(int *)((long)pvVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)((long)pvVar3 + 0xc) + 1;\n  *(uint *)((long)pvVar3 + 0xc) = uVar2;\n  if ((*(int *)((long)pvVar3 + 0x10) != 0) &&\n     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)) {\n    *(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;\n    sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));\n  }\n  return;\n}\n\n" (function_definition "void statPush(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int iVar1;\n  uint uVar2;\n  void *pvVar3;\n  int *piVar4;\n  long lVar5;\n  \n  pvVar3 = sqlite3_value_blob(*argv);\n  iVar1 = sqlite3_value_int(argv[1]);\n  if (*(int *)((long)pvVar3 + 0xc) == 0) {\n    if (0 < *(int *)((long)pvVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)((long)pvVar3 + 0xc) + 1;\n  *(uint *)((long)pvVar3 + 0xc) = uVar2;\n  if ((*(int *)((long)pvVar3 + 0x10) != 0) &&\n     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)) {\n    *(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;\n    sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));\n  }\n  return;\n}" primitive_type (function_declarator "statPush(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  void *pvVar3;\n  int *piVar4;\n  long lVar5;\n  \n  pvVar3 = sqlite3_value_blob(*argv);\n  iVar1 = sqlite3_value_int(argv[1]);\n  if (*(int *)((long)pvVar3 + 0xc) == 0) {\n    if (0 < *(int *)((long)pvVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)((long)pvVar3 + 0xc) + 1;\n  *(uint *)((long)pvVar3 + 0xc) = uVar2;\n  if ((*(int *)((long)pvVar3 + 0x10) != 0) &&\n     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)) {\n    *(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;\n    sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "pvVar3 = sqlite3_value_blob(*argv);" (assignment_expression "pvVar3 = sqlite3_value_blob(*argv)" identifier = (call_expression "sqlite3_value_blob(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) ;) (expression_statement "iVar1 = sqlite3_value_int(argv[1]);" (assignment_expression "iVar1 = sqlite3_value_int(argv[1])" identifier = (call_expression "sqlite3_value_int(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (*(int *)((long)pvVar3 + 0xc) == 0) {\n    if (0 < *(int *)((long)pvVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }" if (parenthesized_expression "(*(int *)((long)pvVar3 + 0xc) == 0)" ( (binary_expression "*(int *)((long)pvVar3 + 0xc) == 0" (pointer_expression "*(int *)((long)pvVar3 + 0xc)" * (cast_expression "(int *)((long)pvVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0xc)" ( (binary_expression "(long)pvVar3 + 0xc" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (0 < *(int *)((long)pvVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }" { (if_statement "if (0 < *(int *)((long)pvVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }" if (parenthesized_expression "(0 < *(int *)((long)pvVar3 + 0x14))" ( (binary_expression "0 < *(int *)((long)pvVar3 + 0x14)" number_literal < (pointer_expression "*(int *)((long)pvVar3 + 0x14)" * (cast_expression "(int *)((long)pvVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x14)" ( (binary_expression "(long)pvVar3 + 0x14" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));" do (compound_statement "{\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "*(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4)" * (cast_expression "(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4)" ( (binary_expression "*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)((long)pvVar3 + 0x20)" * (cast_expression "(long *)((long)pvVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x20)" ( (binary_expression "(long)pvVar3 + 0x20" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)((long)pvVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)((long)pvVar3 + 0x14)" identifier < (pointer_expression "*(int *)((long)pvVar3 + 0x14)" * (cast_expression "(int *)((long)pvVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x14)" ( (binary_expression "(long)pvVar3 + 0x14" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) ;) })) }) (else_clause "else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }" else (compound_statement "{\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }\n  }" { (if_statement "if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);" do (compound_statement "{\n        piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      }" { (expression_statement "piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20));" (assignment_expression "piVar4 = (int *)(lVar5 + *(long *)((long)pvVar3 + 0x20))" identifier = (cast_expression "(int *)(lVar5 + *(long *)((long)pvVar3 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)((long)pvVar3 + 0x20))" ( (binary_expression "lVar5 + *(long *)((long)pvVar3 + 0x20)" identifier + (pointer_expression "*(long *)((long)pvVar3 + 0x20)" * (cast_expression "(long *)((long)pvVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x20)" ( (binary_expression "(long)pvVar3 + 0x20" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )))) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "lVar5 = lVar5 + 4;" (assignment_expression "lVar5 = lVar5 + 4" identifier = (binary_expression "lVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "((ulong)(iVar1 - 1) * 4 + 4 != lVar5)" ( (binary_expression "(ulong)(iVar1 - 1) * 4 + 4 != lVar5" (binary_expression "(ulong)(iVar1 - 1) * 4 + 4" (binary_expression "(ulong)(iVar1 - 1) * 4" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal) + number_literal) != identifier) )) ;) })) (if_statement "if (iVar1 < *(int *)((long)pvVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }" if (parenthesized_expression "(iVar1 < *(int *)((long)pvVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)((long)pvVar3 + 0x14)" identifier < (pointer_expression "*(int *)((long)pvVar3 + 0x14)" * (cast_expression "(int *)((long)pvVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x14)" ( (binary_expression "(long)pvVar3 + 0x14" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) (compound_statement "{\n      do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));\n    }" { (do_statement "do {\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)((long)pvVar3 + 0x14));" do (compound_statement "{\n        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4);" (assignment_expression "piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4)" identifier = (cast_expression "(int *)(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4)" ( (binary_expression "*(long *)((long)pvVar3 + 0x28) + (long)iVar1 * 4" (pointer_expression "*(long *)((long)pvVar3 + 0x28)" * (cast_expression "(long *)((long)pvVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x28)" ( (binary_expression "(long)pvVar3 + 0x28" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "*(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4)" * (cast_expression "(undefined4 *)(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4)" ( (binary_expression "*(long *)((long)pvVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)((long)pvVar3 + 0x20)" * (cast_expression "(long *)((long)pvVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x20)" ( (binary_expression "(long)pvVar3 + 0x20" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)((long)pvVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)((long)pvVar3 + 0x14)" identifier < (pointer_expression "*(int *)((long)pvVar3 + 0x14)" * (cast_expression "(int *)((long)pvVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x14)" ( (binary_expression "(long)pvVar3 + 0x14" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) )) ;) })) }))) (expression_statement "uVar2 = *(int *)((long)pvVar3 + 0xc) + 1;" (assignment_expression "uVar2 = *(int *)((long)pvVar3 + 0xc) + 1" identifier = (binary_expression "*(int *)((long)pvVar3 + 0xc) + 1" (pointer_expression "*(int *)((long)pvVar3 + 0xc)" * (cast_expression "(int *)((long)pvVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0xc)" ( (binary_expression "(long)pvVar3 + 0xc" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)((long)pvVar3 + 0xc) = uVar2;" (assignment_expression "*(uint *)((long)pvVar3 + 0xc) = uVar2" (pointer_expression "*(uint *)((long)pvVar3 + 0xc)" * (cast_expression "(uint *)((long)pvVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0xc)" ( (binary_expression "(long)pvVar3 + 0xc" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if ((*(int *)((long)pvVar3 + 0x10) != 0) &&\n     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)) {\n    *(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;\n    sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));\n  }" if (parenthesized_expression "((*(int *)((long)pvVar3 + 0x10) != 0) &&\n     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2))" ( (binary_expression "(*(int *)((long)pvVar3 + 0x10) != 0) &&\n     ((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)" (parenthesized_expression "(*(int *)((long)pvVar3 + 0x10) != 0)" ( (binary_expression "*(int *)((long)pvVar3 + 0x10) != 0" (pointer_expression "*(int *)((long)pvVar3 + 0x10)" * (cast_expression "(int *)((long)pvVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x10)" ( (binary_expression "(long)pvVar3 + 0x10" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2)" ( (binary_expression "(*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < uVar2" (binary_expression "(*(byte *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10)" (parenthesized_expression "(*(byte *)((long)pvVar3 + 0x1c) + 1)" ( (binary_expression "*(byte *)((long)pvVar3 + 0x1c) + 1" (pointer_expression "*(byte *)((long)pvVar3 + 0x1c)" * (cast_expression "(byte *)((long)pvVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x1c)" ( (binary_expression "(long)pvVar3 + 0x1c" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) )) * (pointer_expression "*(int *)((long)pvVar3 + 0x10)" * (cast_expression "(int *)((long)pvVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x10)" ( (binary_expression "(long)pvVar3 + 0x10" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) < identifier) ))) )) (compound_statement "{\n    *(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;\n    sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));\n  }" { (expression_statement "*(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1;" (assignment_expression "*(byte *)((long)pvVar3 + 0x1c) = *(byte *)((long)pvVar3 + 0x1c) + 1" (pointer_expression "*(byte *)((long)pvVar3 + 0x1c)" * (cast_expression "(byte *)((long)pvVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x1c)" ( (binary_expression "(long)pvVar3 + 0x1c" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((long)pvVar3 + 0x1c) + 1" (pointer_expression "*(byte *)((long)pvVar3 + 0x1c)" * (cast_expression "(byte *)((long)pvVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + 0x1c)" ( (binary_expression "(long)pvVar3 + 0x1c" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0));" (call_expression "sqlite3_result_int(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0))" identifier (argument_list "(context,(uint)(**(int **)((long)pvVar3 + 0x28) != 0))" ( identifier , (call_expression "(uint)(**(int **)((long)pvVar3 + 0x28) != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(**(int **)((long)pvVar3 + 0x28) != 0)" ( (binary_expression "**(int **)((long)pvVar3 + 0x28) != 0" (pointer_expression "**(int **)((long)pvVar3 + 0x28)" * (pointer_expression "*(int **)((long)pvVar3 + 0x28)" * (cast_expression "(int **)((long)pvVar3 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar3 + 0x28)" ( (binary_expression "(long)pvVar3 + 0x28" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) != number_literal) ))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 *param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar3 = sqlite3_value_blob(*param_3);" (assignment_expression "lVar3 = sqlite3_value_blob(*param_3)" identifier = (call_expression "sqlite3_value_blob(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "iVar1 = sqlite3_value_int(param_3[1]);" (assignment_expression "iVar1 = sqlite3_value_int(param_3[1])" identifier = (call_expression "sqlite3_value_int(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" if (parenthesized_expression "(*(int *)(lVar3 + 0xc) == 0)" ( (binary_expression "*(int *)(lVar3 + 0xc) == 0" (pointer_expression "*(int *)(lVar3 + 0xc)" * (cast_expression "(int *)(lVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc)" ( (binary_expression "lVar3 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" { (if_statement "if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" if (parenthesized_expression "(0 < *(int *)(lVar3 + 0x14))" ( (binary_expression "0 < *(int *)(lVar3 + 0x14)" number_literal < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));" do (compound_statement "{\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" * (cast_expression "(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (binary_expression "*(long *)(lVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" identifier < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) ;) })) }) (else_clause "else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" else (compound_statement "{\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" { (if_statement "if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);" do (compound_statement "{\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      }" { (expression_statement "piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));" (assignment_expression "piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20))" identifier = (cast_expression "(int *)(lVar5 + *(long *)(lVar3 + 0x20))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(lVar3 + 0x20))" ( (binary_expression "lVar5 + *(long *)(lVar3 + 0x20)" identifier + (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) ))))) )))) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "lVar5 = lVar5 + 4;" (assignment_expression "lVar5 = lVar5 + 4" identifier = (binary_expression "lVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "((ulong)(iVar1 - 1) * 4 + 4 != lVar5)" ( (binary_expression "(ulong)(iVar1 - 1) * 4 + 4 != lVar5" (binary_expression "(ulong)(iVar1 - 1) * 4 + 4" (binary_expression "(ulong)(iVar1 - 1) * 4" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal) + number_literal) != identifier) )) ;) })) (if_statement "if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" if (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" identifier < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" { (do_statement "do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));" do (compound_statement "{\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);" (assignment_expression "piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" identifier = (cast_expression "(int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" ( (binary_expression "*(long *)(lVar3 + 0x28) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x28)" * (cast_expression "(long *)(lVar3 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) ;) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" * identifier) + number_literal)) ;) (expression_statement "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" * (cast_expression "(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" ( (binary_expression "*(long *)(lVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x20)" * (cast_expression "(long *)(lVar3 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) + (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" ( (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" identifier < (pointer_expression "*(int *)(lVar3 + 0x14)" * (cast_expression "(int *)(lVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x14)" ( (binary_expression "lVar3 + 0x14" identifier + number_literal) ))))) )) ;) })) }))) (expression_statement "uVar2 = *(int *)(lVar3 + 0xc) + 1;" (assignment_expression "uVar2 = *(int *)(lVar3 + 0xc) + 1" identifier = (binary_expression "*(int *)(lVar3 + 0xc) + 1" (pointer_expression "*(int *)(lVar3 + 0xc)" * (cast_expression "(int *)(lVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc)" ( (binary_expression "lVar3 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(lVar3 + 0xc) = uVar2;" (assignment_expression "*(uint *)(lVar3 + 0xc) = uVar2" (pointer_expression "*(uint *)(lVar3 + 0xc)" * (cast_expression "(uint *)(lVar3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0xc)" ( (binary_expression "lVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }" if (parenthesized_expression "((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2))" ( (binary_expression "(*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)" (parenthesized_expression "(*(int *)(lVar3 + 0x10) != 0)" ( (binary_expression "*(int *)(lVar3 + 0x10) != 0" (pointer_expression "*(int *)(lVar3 + 0x10)" * (cast_expression "(int *)(lVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)" ( (binary_expression "(*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2" (binary_expression "(*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10)" (parenthesized_expression "(*(byte *)(lVar3 + 0x1c) + 1)" ( (binary_expression "*(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" * (cast_expression "(byte *)(lVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1c)" ( (binary_expression "lVar3 + 0x1c" identifier + number_literal) )))) + number_literal) )) * (pointer_expression "*(int *)(lVar3 + 0x10)" * (cast_expression "(int *)(lVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) ))))) < identifier) ))) )) (compound_statement "{\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }" { (expression_statement "*(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;" (assignment_expression "*(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" * (cast_expression "(byte *)(lVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1c)" ( (binary_expression "lVar3 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" * (cast_expression "(byte *)(lVar3 + 0x1c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x1c)" ( (binary_expression "lVar3 + 0x1c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);" (call_expression "sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0)" identifier (argument_list "(param_1,**(int **)(lVar3 + 0x28) != 0)" ( identifier , (binary_expression "**(int **)(lVar3 + 0x28) != 0" (pointer_expression "**(int **)(lVar3 + 0x28)" * (pointer_expression "*(int **)(lVar3 + 0x28)" * (cast_expression "(int **)(lVar3 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar3 + 0x28)" ( (binary_expression "lVar3 + 0x28" identifier + number_literal) ))))) != number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) * LIT) + LIT) != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != LIT) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0013112b(undefined8 param_1,undefined8 param_2,undefined8 *param_3)" (identifier "FUN_0013112b") (parameter_list "(undefined8 param_1,undefined8 param_2,undefined8 *param_3)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 *param_3" (type_identifier "undefined8") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar3 = sqlite3_value_blob(*param_3);\n  iVar1 = sqlite3_value_int(param_3[1]);\n  if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  uVar2 = *(int *)(lVar3 + 0xc) + 1;\n  *(uint *)(lVar3 + 0xc) = uVar2;\n  if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (expression_statement "lVar3 = sqlite3_value_blob(*param_3);" (assignment_expression "lVar3 = sqlite3_value_blob(*param_3)" (identifier "lVar3") (= "=") (call_expression "sqlite3_value_blob(*param_3)" (identifier "sqlite3_value_blob") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "iVar1 = sqlite3_value_int(param_3[1]);" (assignment_expression "iVar1 = sqlite3_value_int(param_3[1])" (identifier "iVar1") (= "=") (call_expression "sqlite3_value_int(param_3[1])" (identifier "sqlite3_value_int") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (*(int *)(lVar3 + 0xc) == 0) {\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }\n  else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(lVar3 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(lVar3 + 0xc) == 0" (pointer_expression "*(int *)(lVar3 + 0xc)" (* "*") (cast_expression "(int *)(lVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0xc)" (( "(") (binary_expression "lVar3 + 0xc" (identifier "lVar3") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" ({ "{") (if_statement "if (0 < *(int *)(lVar3 + 0x14)) {\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(lVar3 + 0x14))" (( "(") (binary_expression "0 < *(int *)(lVar3 + 0x14)" (number_literal "0") (< "<") (pointer_expression "*(int *)(lVar3 + 0x14)" (* "*") (cast_expression "(int *)(lVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x14)" (( "(") (binary_expression "lVar3 + 0x14" (identifier "lVar3") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      iVar1 = 0;\n      do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));" (do "do") (compound_statement "{\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" (( "(") (binary_expression "*(long *)(lVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x20)" (* "*") (cast_expression "(long *)(lVar3 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" (( "(") (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" (identifier "iVar1") (< "<") (pointer_expression "*(int *)(lVar3 + 0x14)" (* "*") (cast_expression "(int *)(lVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x14)" (( "(") (binary_expression "lVar3 + 0x14" (identifier "lVar3") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" (else "else") (compound_statement "{\n    if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }\n    if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }\n  }" ({ "{") (if_statement "if (0 < iVar1) {\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      lVar5 = 0;\n      do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);\n    }" ({ "{") (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);" (do "do") (compound_statement "{\n        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));\n        *piVar4 = *piVar4 + 1;\n        lVar5 = lVar5 + 4;\n      }" ({ "{") (expression_statement "piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));" (assignment_expression "piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20))" (identifier "piVar4") (= "=") (cast_expression "(int *)(lVar5 + *(long *)(lVar3 + 0x20))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + *(long *)(lVar3 + 0x20))" (( "(") (binary_expression "lVar5 + *(long *)(lVar3 + 0x20)" (identifier "lVar5") (+ "+") (pointer_expression "*(long *)(lVar3 + 0x20)" (* "*") (cast_expression "(long *)(lVar3 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")"))))) () ")")))) (; ";")) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar5 = lVar5 + 4;" (assignment_expression "lVar5 = lVar5 + 4" (identifier "lVar5") (= "=") (binary_expression "lVar5 + 4" (identifier "lVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((ulong)(iVar1 - 1) * 4 + 4 != lVar5)" (( "(") (binary_expression "(ulong)(iVar1 - 1) * 4 + 4 != lVar5" (binary_expression "(ulong)(iVar1 - 1) * 4 + 4" (binary_expression "(ulong)(iVar1 - 1) * 4" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 - 1)" (( "(") (binary_expression "iVar1 - 1" (identifier "iVar1") (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "4")) (+ "+") (number_literal "4")) (!= "!=") (identifier "lVar5")) () ")")) (; ";")) (} "}"))) (if_statement "if (iVar1 < *(int *)(lVar3 + 0x14)) {\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" (if "if") (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" (( "(") (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" (identifier "iVar1") (< "<") (pointer_expression "*(int *)(lVar3 + 0x14)" (* "*") (cast_expression "(int *)(lVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x14)" (( "(") (binary_expression "lVar3 + 0x14" (identifier "lVar3") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));\n    }" ({ "{") (do_statement "do {\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar1 < *(int *)(lVar3 + 0x14));" (do "do") (compound_statement "{\n        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);\n        *piVar4 = *piVar4 + 1;\n        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;\n        iVar1 = iVar1 + 1;\n      }" ({ "{") (expression_statement "piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);" (assignment_expression "piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" (identifier "piVar4") (= "=") (cast_expression "(int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4)" (( "(") (binary_expression "*(long *)(lVar3 + 0x28) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x28)" (* "*") (cast_expression "(long *)(lVar3 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*piVar4 = *piVar4 + 1;" (assignment_expression "*piVar4 = *piVar4 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "*piVar4 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;" (assignment_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1" (pointer_expression "*(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4)" (( "(") (binary_expression "*(long *)(lVar3 + 0x20) + (long)iVar1 * 4" (pointer_expression "*(long *)(lVar3 + 0x20)" (* "*") (cast_expression "(long *)(lVar3 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (binary_expression "(long)iVar1 * 4" (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1")) (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < *(int *)(lVar3 + 0x14))" (( "(") (binary_expression "iVar1 < *(int *)(lVar3 + 0x14)" (identifier "iVar1") (< "<") (pointer_expression "*(int *)(lVar3 + 0x14)" (* "*") (cast_expression "(int *)(lVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x14)" (( "(") (binary_expression "lVar3 + 0x14" (identifier "lVar3") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (; ";")) (} "}"))) (} "}")))) (expression_statement "uVar2 = *(int *)(lVar3 + 0xc) + 1;" (assignment_expression "uVar2 = *(int *)(lVar3 + 0xc) + 1" (identifier "uVar2") (= "=") (binary_expression "*(int *)(lVar3 + 0xc) + 1" (pointer_expression "*(int *)(lVar3 + 0xc)" (* "*") (cast_expression "(int *)(lVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0xc)" (( "(") (binary_expression "lVar3 + 0xc" (identifier "lVar3") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(lVar3 + 0xc) = uVar2;" (assignment_expression "*(uint *)(lVar3 + 0xc) = uVar2" (pointer_expression "*(uint *)(lVar3 + 0xc)" (* "*") (cast_expression "(uint *)(lVar3 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0xc)" (( "(") (binary_expression "lVar3 + 0xc" (identifier "lVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }" (if "if") (parenthesized_expression "((*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2))" (( "(") (binary_expression "(*(int *)(lVar3 + 0x10) != 0) &&\n     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)" (parenthesized_expression "(*(int *)(lVar3 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(lVar3 + 0x10) != 0" (pointer_expression "*(int *)(lVar3 + 0x10)" (* "*") (cast_expression "(int *)(lVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x10)" (( "(") (binary_expression "lVar3 + 0x10" (identifier "lVar3") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)" (( "(") (binary_expression "(*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2" (binary_expression "(*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10)" (parenthesized_expression "(*(byte *)(lVar3 + 0x1c) + 1)" (( "(") (binary_expression "*(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" (* "*") (cast_expression "(byte *)(lVar3 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x1c)" (( "(") (binary_expression "lVar3 + 0x1c" (identifier "lVar3") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "1")) () ")")) (* "*") (pointer_expression "*(int *)(lVar3 + 0x10)" (* "*") (cast_expression "(int *)(lVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x10)" (( "(") (binary_expression "lVar3 + 0x10" (identifier "lVar3") (+ "+") (number_literal "0x10")) () ")"))))) (< "<") (identifier "uVar2")) () ")"))) () ")")) (compound_statement "{\n    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;\n    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);\n  }" ({ "{") (expression_statement "*(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;" (assignment_expression "*(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" (* "*") (cast_expression "(byte *)(lVar3 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x1c)" (( "(") (binary_expression "lVar3 + 0x1c" (identifier "lVar3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(byte *)(lVar3 + 0x1c) + 1" (pointer_expression "*(byte *)(lVar3 + 0x1c)" (* "*") (cast_expression "(byte *)(lVar3 + 0x1c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x1c)" (( "(") (binary_expression "lVar3 + 0x1c" (identifier "lVar3") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);" (call_expression "sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0)" (identifier "sqlite3_result_int") (argument_list "(param_1,**(int **)(lVar3 + 0x28) != 0)" (( "(") (identifier "param_1") (, ",") (binary_expression "**(int **)(lVar3 + 0x28) != 0" (pointer_expression "**(int **)(lVar3 + 0x28)" (* "*") (pointer_expression "*(int **)(lVar3 + 0x28)" (* "*") (cast_expression "(int **)(lVar3 + 0x28)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar3 + 0x28)" (( "(") (binary_expression "lVar3 + 0x28" (identifier "lVar3") (+ "+") (number_literal "0x28")) () ")"))))) (!= "!=") (number_literal "0")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *context,int argc,type_2 **argv)

{
  int var_3;
  type_3 var_5;
  void *pvVar3;
  int *piVar4;
  long var_4;
  
  pvVar3 = var_1(*argv);
  var_3 = var_2(argv[1]);
  if (*(int *)((long)pvVar3 + 0xc) == 0) {
    if (0 < *(int *)((long)pvVar3 + 0x14)) {
      var_3 = 0;
      do {
        *(type_4 *)(*(long *)((long)pvVar3 + 0x20) + (long)var_3 * 4) = 1;
        var_3 = var_3 + 1;
      } while (var_3 < *(int *)((long)pvVar3 + 0x14));
    }
  }
  else {
    if (0 < var_3) {
      var_4 = 0;
      do {
        piVar4 = (int *)(var_4 + *(long *)((long)pvVar3 + 0x20));
        *piVar4 = *piVar4 + 1;
        var_4 = var_4 + 4;
      } while ((ulong)(var_3 - 1) * 4 + 4 != var_4);
    }
    if (var_3 < *(int *)((long)pvVar3 + 0x14)) {
      do {
        piVar4 = (int *)(*(long *)((long)pvVar3 + 0x28) + (long)var_3 * 4);
        *piVar4 = *piVar4 + 1;
        *(type_4 *)(*(long *)((long)pvVar3 + 0x20) + (long)var_3 * 4) = 1;
        var_3 = var_3 + 1;
      } while (var_3 < *(int *)((long)pvVar3 + 0x14));
    }
  }
  var_5 = *(int *)((long)pvVar3 + 0xc) + 1;
  *(type_3 *)((long)pvVar3 + 0xc) = var_5;
  if ((*(int *)((long)pvVar3 + 0x10) != 0) &&
     ((*(type_5 *)((long)pvVar3 + 0x1c) + 1) * *(int *)((long)pvVar3 + 0x10) < var_5)) {
    *(type_5 *)((long)pvVar3 + 0x1c) = *(type_5 *)((long)pvVar3 + 0x1c) + 1;
    var_6(context,(type_3)(**(int **)((long)pvVar3 + 0x28) != 0));
  }
  return;
}


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

void MASKED(undefined8 param_1,undefined8 param_2,undefined8 *param_3)

{
  int iVar1;
  uint uVar2;
  long lVar3;
  int *piVar4;
  long lVar5;
  
  lVar3 = sqlite3_value_blob(*param_3);
  iVar1 = sqlite3_value_int(param_3[1]);
  if (*(int *)(lVar3 + 0xc) == 0) {
    if (0 < *(int *)(lVar3 + 0x14)) {
      iVar1 = 0;
      do {
        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;
        iVar1 = iVar1 + 1;
      } while (iVar1 < *(int *)(lVar3 + 0x14));
    }
  }
  else {
    if (0 < iVar1) {
      lVar5 = 0;
      do {
        piVar4 = (int *)(lVar5 + *(long *)(lVar3 + 0x20));
        *piVar4 = *piVar4 + 1;
        lVar5 = lVar5 + 4;
      } while ((ulong)(iVar1 - 1) * 4 + 4 != lVar5);
    }
    if (iVar1 < *(int *)(lVar3 + 0x14)) {
      do {
        piVar4 = (int *)(*(long *)(lVar3 + 0x28) + (long)iVar1 * 4);
        *piVar4 = *piVar4 + 1;
        *(undefined4 *)(*(long *)(lVar3 + 0x20) + (long)iVar1 * 4) = 1;
        iVar1 = iVar1 + 1;
      } while (iVar1 < *(int *)(lVar3 + 0x14));
    }
  }
  uVar2 = *(int *)(lVar3 + 0xc) + 1;
  *(uint *)(lVar3 + 0xc) = uVar2;
  if ((*(int *)(lVar3 + 0x10) != 0) &&
     ((*(byte *)(lVar3 + 0x1c) + 1) * *(int *)(lVar3 + 0x10) < uVar2)) {
    *(byte *)(lVar3 + 0x1c) = *(byte *)(lVar3 + 0x1c) + 1;
    sqlite3_result_int(param_1,**(int **)(lVar3 + 0x28) != 0);
  }
  return;
}

