
void sqlite3_expert_destroy(sqlite3expert *p)

{
  IdxTable *pIVar1;
  IdxWrite *pIVar2;
  
  if (p == (sqlite3expert *)0x0) {
    return;
  }
  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbm);
  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbv);
  idxScanFree(p->pScan,(IdxScan *)0x0);
  idxStatementFree(p->pStatement,(IdxStatement *)0x0);
  pIVar1 = p->pTable;
  while (pIVar1 != (IdxTable *)0x0) {
    pIVar1 = pIVar1->pNext;
    (*(code *)PTR_sqlite3_free_0018f978)();
  }
  pIVar2 = p->pWrite;
  while (pIVar2 != (IdxWrite *)0x0) {
    pIVar2 = pIVar2->pNext;
    (*(code *)PTR_sqlite3_free_0018f978)();
  }
  idxHashClear(&p->hIdx);
  (*(code *)PTR_sqlite3_free_0018f978)(p->zCandidates);
  (*(code *)PTR_sqlite3_free_0018f978)(p);
  return;
}



void sqlite3_expert_destroy(int param_1)

{
  int iVar1;
  
  if (param_1 == 0) {
    return;
  }
  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));
  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));
  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);
  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);
  iVar1 = *(int *)(param_1 + 0x10);
  while (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0xc);
    (*(code *)PTR_sqlite3_free_0018f978)();
  }
  iVar1 = *(int *)(param_1 + 0x18);
  while (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 8);
    (*(code *)PTR_sqlite3_free_0018f978)();
  }
  FUN_0001c110(param_1 + 0x2c);
  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));
  (*(code *)PTR_sqlite3_free_0018f978)(param_1);
  return;
}


lui gp,0x16
addiu gp,gp,0x6444
addu gp,gp,t9
beq a0,zero,0x00031608
_lw t9,-0x7e38(gp)
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw a0,0x8(a0)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0xc(s0)
lw t9,-0x7e38(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a1,zero,zero
lw a0,0x14(s0)
lw t9,-0x7fb0(gp)
addiu t9,t9,-0x43ec
bal 0x0001bc14
_nop
lw gp,0x10(sp)
or a1,zero,zero
lw a0,0x1c(s0)
lw t9,-0x7fb0(gp)
addiu t9,t9,-0x4338
bal 0x0001bcc8
_nop
lw gp,0x10(sp)
lw a0,0x10(s0)
beq a0,zero,0x0003158c
_nop
lw s1,0xc(a0)
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne s1,zero,0x00031570
_or a0,s1,zero
lw a0,0x18(s0)
beq a0,zero,0x000315b4
_nop
lw s1,0x8(a0)
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne s1,zero,0x00031598
_or a0,s1,zero
addiu a0,s0,0x2c
lw t9,-0x7fb0(gp)
addiu t9,t9,-0x3ef0
bal 0x0001c110
_nop
lw gp,0x10(sp)
lw a0,0x102c(s0)
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,s0,zero
lw t9,-0x7fa8(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_nop
(translation_unit "void sqlite3_expert_destroy(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}\n\n" (function_definition "void sqlite3_expert_destroy(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}" primitive_type (function_declarator "sqlite3_expert_destroy(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" ( (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" * (cast_expression "(code *)PTR_sqlite3_close_0018fae8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" ( (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" * (cast_expression "(code *)PTR_sqlite3_close_0018fae8" ( (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) )))) ))) ;) (expression_statement "FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);" (call_expression "FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);" (call_expression "FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1c),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (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) ))))) ;) (while_statement "while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (while_statement "while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0001c110(param_1 + 0x2c);" (call_expression "FUN_0001c110(param_1 + 0x2c)" identifier (argument_list "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c))" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x102c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x102c)" * (cast_expression "(undefined4 *)(param_1 + 0x102c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x102c)" ( (binary_expression "param_1 + 0x102c" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(param_1);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_expert_destroy(sqlite3expert *p)\n\n{\n  IdxTable *pIVar1;\n  IdxWrite *pIVar2;\n  \n  if (p == (sqlite3expert *)0x0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbm);\n  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbv);\n  idxScanFree(p->pScan,(IdxScan *)0x0);\n  idxStatementFree(p->pStatement,(IdxStatement *)0x0);\n  pIVar1 = p->pTable;\n  while (pIVar1 != (IdxTable *)0x0) {\n    pIVar1 = pIVar1->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  pIVar2 = p->pWrite;\n  while (pIVar2 != (IdxWrite *)0x0) {\n    pIVar2 = pIVar2->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  idxHashClear(&p->hIdx);\n  (*(code *)PTR_sqlite3_free_0018f978)(p->zCandidates);\n  (*(code *)PTR_sqlite3_free_0018f978)(p);\n  return;\n}\n\n" (function_definition "void sqlite3_expert_destroy(sqlite3expert *p)\n\n{\n  IdxTable *pIVar1;\n  IdxWrite *pIVar2;\n  \n  if (p == (sqlite3expert *)0x0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbm);\n  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbv);\n  idxScanFree(p->pScan,(IdxScan *)0x0);\n  idxStatementFree(p->pStatement,(IdxStatement *)0x0);\n  pIVar1 = p->pTable;\n  while (pIVar1 != (IdxTable *)0x0) {\n    pIVar1 = pIVar1->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  pIVar2 = p->pWrite;\n  while (pIVar2 != (IdxWrite *)0x0) {\n    pIVar2 = pIVar2->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  idxHashClear(&p->hIdx);\n  (*(code *)PTR_sqlite3_free_0018f978)(p->zCandidates);\n  (*(code *)PTR_sqlite3_free_0018f978)(p);\n  return;\n}" primitive_type (function_declarator "sqlite3_expert_destroy(sqlite3expert *p)" identifier (parameter_list "(sqlite3expert *p)" ( (parameter_declaration "sqlite3expert *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  IdxTable *pIVar1;\n  IdxWrite *pIVar2;\n  \n  if (p == (sqlite3expert *)0x0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbm);\n  (*(code *)PTR_sqlite3_close_0018fae8)(p->dbv);\n  idxScanFree(p->pScan,(IdxScan *)0x0);\n  idxStatementFree(p->pStatement,(IdxStatement *)0x0);\n  pIVar1 = p->pTable;\n  while (pIVar1 != (IdxTable *)0x0) {\n    pIVar1 = pIVar1->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  pIVar2 = p->pWrite;\n  while (pIVar2 != (IdxWrite *)0x0) {\n    pIVar2 = pIVar2->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  idxHashClear(&p->hIdx);\n  (*(code *)PTR_sqlite3_free_0018f978)(p->zCandidates);\n  (*(code *)PTR_sqlite3_free_0018f978)(p);\n  return;\n}" { (declaration "IdxTable *pIVar1;" type_identifier (pointer_declarator "*pIVar1" * identifier) ;) (declaration "IdxWrite *pIVar2;" type_identifier (pointer_declarator "*pIVar2" * identifier) ;) (if_statement "if (p == (sqlite3expert *)0x0) {\n    return;\n  }" if (parenthesized_expression "(p == (sqlite3expert *)0x0)" ( (binary_expression "p == (sqlite3expert *)0x0" identifier == (cast_expression "(sqlite3expert *)0x0" ( (type_descriptor "sqlite3expert *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(p->dbm);" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(p->dbm)" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" ( (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" * (cast_expression "(code *)PTR_sqlite3_close_0018fae8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->dbm)" ( (field_expression "p->dbm" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(p->dbv);" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(p->dbv)" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" ( (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" * (cast_expression "(code *)PTR_sqlite3_close_0018fae8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->dbv)" ( (field_expression "p->dbv" identifier -> field_identifier) ))) ;) (expression_statement "idxScanFree(p->pScan,(IdxScan *)0x0);" (call_expression "idxScanFree(p->pScan,(IdxScan *)0x0)" identifier (argument_list "(p->pScan,(IdxScan *)0x0)" ( (field_expression "p->pScan" identifier -> field_identifier) , (cast_expression "(IdxScan *)0x0" ( (type_descriptor "IdxScan *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "idxStatementFree(p->pStatement,(IdxStatement *)0x0);" (call_expression "idxStatementFree(p->pStatement,(IdxStatement *)0x0)" identifier (argument_list "(p->pStatement,(IdxStatement *)0x0)" ( (field_expression "p->pStatement" identifier -> field_identifier) , (cast_expression "(IdxStatement *)0x0" ( (type_descriptor "IdxStatement *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "pIVar1 = p->pTable;" (assignment_expression "pIVar1 = p->pTable" identifier = (field_expression "p->pTable" identifier -> field_identifier)) ;) (while_statement "while (pIVar1 != (IdxTable *)0x0) {\n    pIVar1 = pIVar1->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" while (parenthesized_expression "(pIVar1 != (IdxTable *)0x0)" ( (binary_expression "pIVar1 != (IdxTable *)0x0" identifier != (cast_expression "(IdxTable *)0x0" ( (type_descriptor "IdxTable *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pIVar1 = pIVar1->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" { (expression_statement "pIVar1 = pIVar1->pNext;" (assignment_expression "pIVar1 = pIVar1->pNext" identifier = (field_expression "pIVar1->pNext" identifier -> field_identifier)) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "pIVar2 = p->pWrite;" (assignment_expression "pIVar2 = p->pWrite" identifier = (field_expression "p->pWrite" identifier -> field_identifier)) ;) (while_statement "while (pIVar2 != (IdxWrite *)0x0) {\n    pIVar2 = pIVar2->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" while (parenthesized_expression "(pIVar2 != (IdxWrite *)0x0)" ( (binary_expression "pIVar2 != (IdxWrite *)0x0" identifier != (cast_expression "(IdxWrite *)0x0" ( (type_descriptor "IdxWrite *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pIVar2 = pIVar2->pNext;\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" { (expression_statement "pIVar2 = pIVar2->pNext;" (assignment_expression "pIVar2 = pIVar2->pNext" identifier = (field_expression "pIVar2->pNext" identifier -> field_identifier)) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "idxHashClear(&p->hIdx);" (call_expression "idxHashClear(&p->hIdx)" identifier (argument_list "(&p->hIdx)" ( (pointer_expression "&p->hIdx" & (field_expression "p->hIdx" identifier -> field_identifier)) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(p->zCandidates);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(p->zCandidates)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->zCandidates)" ( (field_expression "p->zCandidates" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(p);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(p)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_expert_destroy(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}\n\n" (function_definition "void sqlite3_expert_destroy(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}" primitive_type (function_declarator "sqlite3_expert_destroy(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" ( (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" * (cast_expression "(code *)PTR_sqlite3_close_0018fae8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" ( (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" * (cast_expression "(code *)PTR_sqlite3_close_0018fae8" ( (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) )))) ))) ;) (expression_statement "FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);" (call_expression "FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x14),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);" (call_expression "FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x1c),0)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (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) ))))) ;) (while_statement "while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xc)" identifier = (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (while_statement "while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" { (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" identifier = (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0001c110(param_1 + 0x2c);" (call_expression "FUN_0001c110(param_1 + 0x2c)" identifier (argument_list "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c))" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x102c))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x102c)" * (cast_expression "(undefined4 *)(param_1 + 0x102c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x102c)" ( (binary_expression "param_1 + 0x102c" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(param_1);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" ( (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" * (cast_expression "(code *)PTR_sqlite3_free_0018f978" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (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) )))) ))) ;) (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) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void sqlite3_expert_destroy(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "sqlite3_expert_destroy(int param_1)" (identifier "sqlite3_expert_destroy") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));\n  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));\n  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);\n  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);\n  iVar1 = *(int *)(param_1 + 0x10);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  iVar1 = *(int *)(param_1 + 0x18);\n  while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }\n  FUN_0001c110(param_1 + 0x2c);\n  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));\n  (*(code *)PTR_sqlite3_free_0018f978)(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" (* "*") (cast_expression "(code *)PTR_sqlite3_close_0018fae8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_close_0018fae8"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));" (call_expression "(*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc))" (parenthesized_expression "(*(code *)PTR_sqlite3_close_0018fae8)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_close_0018fae8" (* "*") (cast_expression "(code *)PTR_sqlite3_close_0018fae8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_close_0018fae8"))) () ")")) (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")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);" (call_expression "FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0)" (identifier "FUN_0001bc14") (argument_list "(*(undefined4 *)(param_1 + 0x14),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);" (call_expression "FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0)" (identifier "FUN_0001bcc8") (argument_list "(*(undefined4 *)(param_1 + 0x1c),0)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" (identifier "iVar1") (= "=") (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")) () ")"))))) (; ";")) (while_statement "while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 0xc);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0018f978" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0018f978"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (while_statement "while (iVar1 != 0) {\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(iVar1 + 8);\n    (*(code *)PTR_sqlite3_free_0018f978)();\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar1 + 8);" (assignment_expression "iVar1 = *(int *)(iVar1 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)();" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0018f978" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0018f978"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001c110(param_1 + 0x2c);" (call_expression "FUN_0001c110(param_1 + 0x2c)" (identifier "FUN_0001c110") (argument_list "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c))" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0018f978" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0018f978"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x102c))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x102c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x102c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x102c)" (( "(") (binary_expression "param_1 + 0x102c" (identifier "param_1") (+ "+") (number_literal "0x102c")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_free_0018f978)(param_1);" (call_expression "(*(code *)PTR_sqlite3_free_0018f978)(param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_free_0018f978)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_0018f978" (* "*") (cast_expression "(code *)PTR_sqlite3_free_0018f978" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_0018f978"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *var_1)

{
  type_2 *var_4;
  type_3 *var_5;
  
  if (var_1 == (type_1 *)0x0) {
    return;
  }
  (*(type_4 *)PTR_sqlite3_close_0018fae8)(var_1->dbm);
  (*(type_4 *)PTR_sqlite3_close_0018fae8)(var_1->dbv);
  var_2(var_1->pScan,(type_5 *)0x0);
  var_3(var_1->pStatement,(type_6 *)0x0);
  var_4 = var_1->pTable;
  while (var_4 != (type_2 *)0x0) {
    var_4 = var_4->pNext;
    (*(type_4 *)PTR_sqlite3_free_0018f978)();
  }
  var_5 = var_1->pWrite;
  while (var_5 != (type_3 *)0x0) {
    var_5 = var_5->pNext;
    (*(type_4 *)PTR_sqlite3_free_0018f978)();
  }
  var_6(&var_1->hIdx);
  (*(type_4 *)PTR_sqlite3_free_0018f978)(var_1->zCandidates);
  (*(type_4 *)PTR_sqlite3_free_0018f978)(var_1);
  return;
}


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

void MASKED(int param_1)

{
  int iVar1;
  
  if (param_1 == 0) {
    return;
  }
  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 8));
  (*(code *)PTR_sqlite3_close_0018fae8)(*(undefined4 *)(param_1 + 0xc));
  FUN_0001bc14(*(undefined4 *)(param_1 + 0x14),0);
  FUN_0001bcc8(*(undefined4 *)(param_1 + 0x1c),0);
  iVar1 = *(int *)(param_1 + 0x10);
  while (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 0xc);
    (*(code *)PTR_sqlite3_free_0018f978)();
  }
  iVar1 = *(int *)(param_1 + 0x18);
  while (iVar1 != 0) {
    iVar1 = *(int *)(iVar1 + 8);
    (*(code *)PTR_sqlite3_free_0018f978)();
  }
  FUN_0001c110(param_1 + 0x2c);
  (*(code *)PTR_sqlite3_free_0018f978)(*(undefined4 *)(param_1 + 0x102c));
  (*(code *)PTR_sqlite3_free_0018f978)(param_1);
  return;
}

