
int sqlite3_db_release_memory(sqlite3 *db)

{
  u8 uVar1;
  undefined *puVar2;
  Btree *pBVar3;
  int iVar4;
  int iVar5;
  
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);
  if (db->noSharedCache == '\0') {
    btreeEnterAll(db);
    iVar4 = db->nDb;
    if (0 < iVar4) goto LAB_0002d17c;
    uVar1 = db->noSharedCache;
  }
  else {
    iVar4 = db->nDb;
    if (iVar4 < 1) goto LAB_0002d1f0;
LAB_0002d17c:
    puVar2 = PTR_DAT_000f52bc;
    iVar5 = 0;
    do {
      pBVar3 = db->aDb[iVar5].pBt;
      iVar5 = iVar5 + 1;
      if (pBVar3 != (Btree *)0x0) {
        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);
        iVar4 = db->nDb;
      }
    } while (iVar5 < iVar4);
    uVar1 = db->noSharedCache;
  }
  if (uVar1 == '\0') {
    btreeLeaveAll(db);
  }
LAB_0002d1f0:
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);
  return 0;
}



undefined4 sqlite3_db_release_memory(int param_1)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));
  if (*(char *)(param_1 + 0x59) == '\0') {
    FUN_0002cfb0(param_1);
    iVar4 = *(int *)(param_1 + 0x14);
    if (0 < iVar4) goto LAB_0002d17c;
    cVar1 = *(char *)(param_1 + 0x59);
  }
  else {
    iVar4 = *(int *)(param_1 + 0x14);
    if (iVar4 < 1) goto LAB_0002d1f0;
LAB_0002d17c:
    puVar2 = PTR_DAT_000f52bc;
    iVar5 = 0;
    do {
      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);
      iVar5 = iVar5 + 1;
      if (iVar3 != 0) {
        (**(code **)(puVar2 + 0x4134))
                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));
        iVar4 = *(int *)(param_1 + 0x14);
      }
    } while (iVar5 < iVar4);
    cVar1 = *(char *)(param_1 + 0x59);
  }
  if (cVar1 == '\0') {
    FUN_0002d080(param_1);
  }
LAB_0002d1f0:
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));
  return 0;
}


lui gp,0xd
addiu gp,gp,0x170
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7e58(gp)
sw s1,0x1c(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s0,0x18(sp)
jalr t9
_lw a0,0xc(a0)
lbu v0,0x59(s1)
beq v0,zero,0x0002d214
_lw gp,0x10(sp)
lw a0,0x14(s1)
blez a0,0x0002d1f0
_lw t9,-0x7e30(gp)
lw s2,-0x7fe4(gp)
or s0,zero,zero
addiu s2,s2,0x40a0
lw v1,0x10(s1)
sll v0,s0,0x4
addu v0,v1,v0
lw v0,0x4(v0)
beq v0,zero,0x0002d1c0
_addiu s0,s0,0x1
lw v0,0x4(v0)
lw t9,0x94(s2)
lw v0,0x0(v0)
lw v0,0xd4(v0)
jalr t9
_lw a0,0x2c(v0)
lw gp,0x10(sp)
lw a0,0x14(s1)
slt v0,s0,a0
bne v0,zero,0x0002d188
_nop
lbu v0,0x59(s1)
bne v0,zero,0x0002d1f0
_lw t9,-0x7e30(gp)
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x2f80
bal 0x0002d080
_or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x7e30(gp)
jalr t9
_lw a0,0xc(s1)
or v0,zero,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x3050
bal 0x0002cfb0
_or a0,s1,zero
lw a0,0x14(s1)
bgtz a0,0x0002d17c
_lw gp,0x10(sp)
b 0x0002d1d0
_lbu v0,0x59(s1)
(translation_unit "undefined4 sqlite3_db_release_memory(int param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_db_release_memory(int param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" type_identifier (function_declarator "sqlite3_db_release_memory(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x59) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x59) == '\0'" (pointer_expression "*(char *)(param_1 + 0x59)" * (cast_expression "(char *)(param_1 + 0x59)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x59)" ( (binary_expression "param_1 + 0x59" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" { (expression_statement "FUN_0002cfb0(param_1);" (call_expression "FUN_0002cfb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar4) goto LAB_0002d17c;" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (goto_statement "goto LAB_0002d17c;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(param_1 + 0x59);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x59)" identifier = (pointer_expression "*(char *)(param_1 + 0x59)" * (cast_expression "(char *)(param_1 + 0x59)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x59)" ( (binary_expression "param_1 + 0x59" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" else (compound_statement "{\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" { (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 < 1) goto LAB_0002d1f0;" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0002d1f0;" goto statement_identifier ;)) (labeled_statement "LAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;" statement_identifier : (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);" do (compound_statement "{\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    }" { (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4" (binary_expression "*(int *)(param_1 + 0x10) + iVar5 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar5 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }" { (expression_statement "(**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));" (call_expression "(**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c))" (parenthesized_expression "(**(code **)(puVar2 + 0x4134))" ( (pointer_expression "**(code **)(puVar2 + 0x4134)" * (pointer_expression "*(code **)(puVar2 + 0x4134)" * (cast_expression "(code **)(puVar2 + 0x4134)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x4134)" ( (binary_expression "puVar2 + 0x4134" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c))" ( (pointer_expression "*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" * (cast_expression "(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" ( (binary_expression "*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c" (pointer_expression "*(int *)(**(int **)(iVar3 + 4) + 0xd4)" * (cast_expression "(int *)(**(int **)(iVar3 + 4) + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(iVar3 + 4) + 0xd4)" ( (binary_expression "**(int **)(iVar3 + 4) + 0xd4" (pointer_expression "**(int **)(iVar3 + 4)" * (pointer_expression "*(int **)(iVar3 + 4)" * (cast_expression "(int **)(iVar3 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) })) }) while (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x59);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x59)" identifier = (pointer_expression "*(char *)(param_1 + 0x59)" * (cast_expression "(char *)(param_1 + 0x59)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x59)" ( (binary_expression "param_1 + 0x59" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002d080(param_1);\n  }" { (expression_statement "FUN_0002d080(param_1);" (call_expression "FUN_0002d080(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (labeled_statement "LAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3_db_release_memory(sqlite3 *db)\n\n{\n  u8 uVar1;\n  undefined *puVar2;\n  Btree *pBVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n    iVar4 = db->nDb;\n    if (0 < iVar4) goto LAB_0002d17c;\n    uVar1 = db->noSharedCache;\n  }\n  else {\n    iVar4 = db->nDb;\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);\n    uVar1 = db->noSharedCache;\n  }\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return 0;\n}\n\n" (function_definition "int sqlite3_db_release_memory(sqlite3 *db)\n\n{\n  u8 uVar1;\n  undefined *puVar2;\n  Btree *pBVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n    iVar4 = db->nDb;\n    if (0 < iVar4) goto LAB_0002d17c;\n    uVar1 = db->noSharedCache;\n  }\n  else {\n    iVar4 = db->nDb;\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);\n    uVar1 = db->noSharedCache;\n  }\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return 0;\n}" primitive_type (function_declarator "sqlite3_db_release_memory(sqlite3 *db)" identifier (parameter_list "(sqlite3 *db)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  undefined *puVar2;\n  Btree *pBVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);\n  if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n    iVar4 = db->nDb;\n    if (0 < iVar4) goto LAB_0002d17c;\n    uVar1 = db->noSharedCache;\n  }\n  else {\n    iVar4 = db->nDb;\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);\n    uVar1 = db->noSharedCache;\n  }\n  if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);\n  return 0;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "Btree *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (if_statement "if (db->noSharedCache == '\0') {\n    btreeEnterAll(db);\n    iVar4 = db->nDb;\n    if (0 < iVar4) goto LAB_0002d17c;\n    uVar1 = db->noSharedCache;\n  }\n  else {\n    iVar4 = db->nDb;\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);\n    uVar1 = db->noSharedCache;\n  }" if (parenthesized_expression "(db->noSharedCache == '\0')" ( (binary_expression "db->noSharedCache == '\0'" (field_expression "db->noSharedCache" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    btreeEnterAll(db);\n    iVar4 = db->nDb;\n    if (0 < iVar4) goto LAB_0002d17c;\n    uVar1 = db->noSharedCache;\n  }" { (expression_statement "btreeEnterAll(db);" (call_expression "btreeEnterAll(db)" identifier (argument_list "(db)" ( identifier ))) ;) (expression_statement "iVar4 = db->nDb;" (assignment_expression "iVar4 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar4) goto LAB_0002d17c;" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (goto_statement "goto LAB_0002d17c;" goto statement_identifier ;)) (expression_statement "uVar1 = db->noSharedCache;" (assignment_expression "uVar1 = db->noSharedCache" identifier = (field_expression "db->noSharedCache" identifier -> field_identifier)) ;) }) (else_clause "else {\n    iVar4 = db->nDb;\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);\n    uVar1 = db->noSharedCache;\n  }" else (compound_statement "{\n    iVar4 = db->nDb;\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);\n    uVar1 = db->noSharedCache;\n  }" { (expression_statement "iVar4 = db->nDb;" (assignment_expression "iVar4 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (if_statement "if (iVar4 < 1) goto LAB_0002d1f0;" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0002d1f0;" goto statement_identifier ;)) (labeled_statement "LAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;" statement_identifier : (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    } while (iVar5 < iVar4);" do (compound_statement "{\n      pBVar3 = db->aDb[iVar5].pBt;\n      iVar5 = iVar5 + 1;\n      if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }\n    }" { (expression_statement "pBVar3 = db->aDb[iVar5].pBt;" (assignment_expression "pBVar3 = db->aDb[iVar5].pBt" identifier = (field_expression "db->aDb[iVar5].pBt" (subscript_expression "db->aDb[iVar5]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (pBVar3 != (Btree *)0x0) {\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }" if (parenthesized_expression "(pBVar3 != (Btree *)0x0)" ( (binary_expression "pBVar3 != (Btree *)0x0" identifier != (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);\n        iVar4 = db->nDb;\n      }" { (expression_statement "(**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache);" (call_expression "(**(code **)(puVar2 + 0x4134))(pBVar3->pBt->pPager->pPCache->pCache)" (parenthesized_expression "(**(code **)(puVar2 + 0x4134))" ( (pointer_expression "**(code **)(puVar2 + 0x4134)" * (pointer_expression "*(code **)(puVar2 + 0x4134)" * (cast_expression "(code **)(puVar2 + 0x4134)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x4134)" ( (binary_expression "puVar2 + 0x4134" identifier + number_literal) ))))) )) (argument_list "(pBVar3->pBt->pPager->pPCache->pCache)" ( (field_expression "pBVar3->pBt->pPager->pPCache->pCache" (field_expression "pBVar3->pBt->pPager->pPCache" (field_expression "pBVar3->pBt->pPager" (field_expression "pBVar3->pBt" identifier -> field_identifier) -> field_identifier) -> field_identifier) -> field_identifier) ))) ;) (expression_statement "iVar4 = db->nDb;" (assignment_expression "iVar4 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) })) }) while (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) ;) (expression_statement "uVar1 = db->noSharedCache;" (assignment_expression "uVar1 = db->noSharedCache" identifier = (field_expression "db->noSharedCache" identifier -> field_identifier)) ;) }))) (if_statement "if (uVar1 == '\0') {\n    btreeLeaveAll(db);\n  }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    btreeLeaveAll(db);\n  }" { (expression_statement "btreeLeaveAll(db);" (call_expression "btreeLeaveAll(db)" identifier (argument_list "(db)" ( identifier ))) ;) })) (labeled_statement "LAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex)" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 sqlite3_db_release_memory(int param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_db_release_memory(int param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" type_identifier (function_declarator "sqlite3_db_release_memory(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" * (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x59) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x59) == '\0'" (pointer_expression "*(char *)(param_1 + 0x59)" * (cast_expression "(char *)(param_1 + 0x59)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x59)" ( (binary_expression "param_1 + 0x59" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" { (expression_statement "FUN_0002cfb0(param_1);" (call_expression "FUN_0002cfb0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar4) goto LAB_0002d17c;" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (goto_statement "goto LAB_0002d17c;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(param_1 + 0x59);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x59)" identifier = (pointer_expression "*(char *)(param_1 + 0x59)" * (cast_expression "(char *)(param_1 + 0x59)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x59)" ( (binary_expression "param_1 + 0x59" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" else (compound_statement "{\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" { (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 < 1) goto LAB_0002d1f0;" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (goto_statement "goto LAB_0002d1f0;" goto statement_identifier ;)) (labeled_statement "LAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;" statement_identifier : (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" identifier = identifier) ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);" do (compound_statement "{\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    }" { (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4" (binary_expression "*(int *)(param_1 + 0x10) + iVar5 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar5 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }" { (expression_statement "(**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));" (call_expression "(**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c))" (parenthesized_expression "(**(code **)(puVar2 + 0x4134))" ( (pointer_expression "**(code **)(puVar2 + 0x4134)" * (pointer_expression "*(code **)(puVar2 + 0x4134)" * (cast_expression "(code **)(puVar2 + 0x4134)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x4134)" ( (binary_expression "puVar2 + 0x4134" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c))" ( (pointer_expression "*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" * (cast_expression "(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" ( (binary_expression "*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c" (pointer_expression "*(int *)(**(int **)(iVar3 + 4) + 0xd4)" * (cast_expression "(int *)(**(int **)(iVar3 + 4) + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(**(int **)(iVar3 + 4) + 0xd4)" ( (binary_expression "**(int **)(iVar3 + 4) + 0xd4" (pointer_expression "**(int **)(iVar3 + 4)" * (pointer_expression "*(int **)(iVar3 + 4)" * (cast_expression "(int **)(iVar3 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) })) }) while (parenthesized_expression "(iVar5 < iVar4)" ( (binary_expression "iVar5 < iVar4" identifier < identifier) )) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x59);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x59)" identifier = (pointer_expression "*(char *)(param_1 + 0x59)" * (cast_expression "(char *)(param_1 + 0x59)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x59)" ( (binary_expression "param_1 + 0x59" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002d080(param_1);\n  }" { (expression_statement "FUN_0002d080(param_1);" (call_expression "FUN_0002d080(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (labeled_statement "LAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" statement_identifier : (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" ( (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" * (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;)) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;)) (return_statement return LIT ;) })))
(function_definition "undefined4 sqlite3_db_release_memory(int param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "sqlite3_db_release_memory(int param_1)" (identifier "sqlite3_db_release_memory") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));\n  if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }\nLAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_enter_000f5448)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_enter_000f5448" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_enter_000f5448" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_enter_000f5448"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x59) == '\0') {\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }\n  else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x59) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x59) == '\0'" (pointer_expression "*(char *)(param_1 + 0x59)" (* "*") (cast_expression "(char *)(param_1 + 0x59)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x59)" (( "(") (binary_expression "param_1 + 0x59" (identifier "param_1") (+ "+") (number_literal "0x59")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0002cfb0(param_1);\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (0 < iVar4) goto LAB_0002d17c;\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" ({ "{") (expression_statement "FUN_0002cfb0(param_1);" (call_expression "FUN_0002cfb0(param_1)" (identifier "FUN_0002cfb0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (0 < iVar4) goto LAB_0002d17c;" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (goto_statement "goto LAB_0002d17c;" (goto "goto") (statement_identifier "LAB_0002d17c") (; ";"))) (expression_statement "cVar1 = *(char *)(param_1 + 0x59);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x59)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x59)" (* "*") (cast_expression "(char *)(param_1 + 0x59)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x59)" (( "(") (binary_expression "param_1 + 0x59" (identifier "param_1") (+ "+") (number_literal "0x59")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" (else "else") (compound_statement "{\n    iVar4 = *(int *)(param_1 + 0x14);\n    if (iVar4 < 1) goto LAB_0002d1f0;\nLAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;\n    iVar5 = 0;\n    do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);\n    cVar1 = *(char *)(param_1 + 0x59);\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar4 < 1) goto LAB_0002d1f0;" (if "if") (parenthesized_expression "(iVar4 < 1)" (( "(") (binary_expression "iVar4 < 1" (identifier "iVar4") (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_0002d1f0;" (goto "goto") (statement_identifier "LAB_0002d1f0") (; ";"))) (labeled_statement "LAB_0002d17c:\n    puVar2 = PTR_DAT_000f52bc;" (statement_identifier "LAB_0002d17c") (: ":") (expression_statement "puVar2 = PTR_DAT_000f52bc;" (assignment_expression "puVar2 = PTR_DAT_000f52bc" (identifier "puVar2") (= "=") (identifier "PTR_DAT_000f52bc")) (; ";"))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    } while (iVar5 < iVar4);" (do "do") (compound_statement "{\n      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);\n      iVar5 = iVar5 + 1;\n      if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);" (assignment_expression "iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4" (binary_expression "*(int *)(param_1 + 0x10) + iVar5 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar5 * 0x10" (identifier "iVar5") (* "*") (number_literal "0x10"))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 != 0) {\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));\n        iVar4 = *(int *)(param_1 + 0x14);\n      }" ({ "{") (expression_statement "(**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));" (call_expression "(**(code **)(puVar2 + 0x4134))\n                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c))" (parenthesized_expression "(**(code **)(puVar2 + 0x4134))" (( "(") (pointer_expression "**(code **)(puVar2 + 0x4134)" (* "*") (pointer_expression "*(code **)(puVar2 + 0x4134)" (* "*") (cast_expression "(code **)(puVar2 + 0x4134)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 0x4134)" (( "(") (binary_expression "puVar2 + 0x4134" (identifier "puVar2") (+ "+") (number_literal "0x4134")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c))" (( "(") (pointer_expression "*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" (* "*") (cast_expression "(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c)" (( "(") (binary_expression "*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c" (pointer_expression "*(int *)(**(int **)(iVar3 + 4) + 0xd4)" (* "*") (cast_expression "(int *)(**(int **)(iVar3 + 4) + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(**(int **)(iVar3 + 4) + 0xd4)" (( "(") (binary_expression "**(int **)(iVar3 + 4) + 0xd4" (pointer_expression "**(int **)(iVar3 + 4)" (* "*") (pointer_expression "*(int **)(iVar3 + 4)" (* "*") (cast_expression "(int **)(iVar3 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (+ "+") (number_literal "0xd4")) () ")")))) (+ "+") (number_literal "0x2c")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x14)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(iVar5 < iVar4)" (( "(") (binary_expression "iVar5 < iVar4" (identifier "iVar5") (< "<") (identifier "iVar4")) () ")")) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0x59);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x59)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x59)" (* "*") (cast_expression "(char *)(param_1 + 0x59)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x59)" (( "(") (binary_expression "param_1 + 0x59" (identifier "param_1") (+ "+") (number_literal "0x59")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') {\n    FUN_0002d080(param_1);\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0002d080(param_1);\n  }" ({ "{") (expression_statement "FUN_0002d080(param_1);" (call_expression "FUN_0002d080(param_1)" (identifier "FUN_0002d080") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0002d1f0:\n  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (statement_identifier "LAB_0002d1f0") (: ":") (expression_statement "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_mutex_leave_000f5470)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_mutex_leave_000f5470" (* "*") (cast_expression "(code *)PTR_sqlite3_mutex_leave_000f5470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_mutex_leave_000f5470"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *db)

{
  type_2 var_6;
  type_3 *var_5;
  type_4 *var_4;
  int var_2;
  int var_3;
  
  (*(type_5 *)PTR_sqlite3_mutex_enter_000f5448)(db->mutex);
  if (db->noSharedCache == '\0') {
    var_1(db);
    var_2 = db->nDb;
    if (0 < var_2) goto LAB_0002d17c;
    var_6 = db->noSharedCache;
  }
  else {
    var_2 = db->nDb;
    if (var_2 < 1) goto LAB_0002d1f0;
LAB_0002d17c:
    var_5 = PTR_DAT_000f52bc;
    var_3 = 0;
    do {
      var_4 = db->aDb[var_3].pBt;
      var_3 = var_3 + 1;
      if (var_4 != (type_4 *)0x0) {
        (**(type_5 **)(var_5 + 0x4134))(var_4->pBt->pPager->pPCache->pCache);
        var_2 = db->nDb;
      }
    } while (var_3 < var_2);
    var_6 = db->noSharedCache;
  }
  if (var_6 == '\0') {
    var_7(db);
  }
LAB_0002d1f0:
  (*(type_5 *)PTR_sqlite3_mutex_leave_000f5470)(db->mutex);
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  (*(code *)PTR_sqlite3_mutex_enter_000f5448)(*(undefined4 *)(param_1 + 0xc));
  if (*(char *)(param_1 + 0x59) == '\0') {
    FUN_0002cfb0(param_1);
    iVar4 = *(int *)(param_1 + 0x14);
    if (0 < iVar4) goto LAB_0002d17c;
    cVar1 = *(char *)(param_1 + 0x59);
  }
  else {
    iVar4 = *(int *)(param_1 + 0x14);
    if (iVar4 < 1) goto LAB_0002d1f0;
LAB_0002d17c:
    puVar2 = PTR_DAT_000f52bc;
    iVar5 = 0;
    do {
      iVar3 = *(int *)(*(int *)(param_1 + 0x10) + iVar5 * 0x10 + 4);
      iVar5 = iVar5 + 1;
      if (iVar3 != 0) {
        (**(code **)(puVar2 + 0x4134))
                  (*(undefined4 *)(*(int *)(**(int **)(iVar3 + 4) + 0xd4) + 0x2c));
        iVar4 = *(int *)(param_1 + 0x14);
      }
    } while (iVar5 < iVar4);
    cVar1 = *(char *)(param_1 + 0x59);
  }
  if (cVar1 == '\0') {
    FUN_0002d080(param_1);
  }
LAB_0002d1f0:
  (*(code *)PTR_sqlite3_mutex_leave_000f5470)(*(undefined4 *)(param_1 + 0xc));
  return 0;
}

