
void fts5MultiIterFree(Fts5Iter *pIter)

{
  if (pIter == (Fts5Iter *)0x0) {
    return;
  }
  if (0 < pIter->nSeg) {
    sqlite3Fts5BufferFree(&pIter->aSeg[0].term);
                    /* WARNING: Subroutine does not return */
    sqlite3_free(pIter->aSeg[0].pLeaf);
  }
  sqlite3Fts5BufferFree(&pIter->poslist);
                    /* WARNING: Subroutine does not return */
  sqlite3_free(pIter);
}



void FUN_00040298(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 == 0) {
    return;
  }
  if (0 < *(int *)(param_1 + 0x30)) {
    iVar2 = 0;
    iVar1 = param_1 + 0x8c;
    do {
      FUN_0002cd00(iVar1);
      iVar2 = iVar2 + 1;
      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));
      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));
      if (*(int *)(iVar1 + -4) != 0) {
        FUN_0004021c();
      }
      sqlite3_free(*(undefined4 *)(iVar1 + -8));
      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);
      iVar1 = iVar1 + 0x58;
    } while (iVar2 < *(int *)(param_1 + 0x30));
  }
  FUN_0002cd00(param_1 + 0x1c);
  sqlite3_free(param_1);
  return;
}


lui gp,0x12
addiu gp,gp,0x3318
addu gp,gp,t9
beq a0,zero,0x000403b8
_nop
addiu sp,sp,-0x38
sw s2,0x24(sp)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw v0,0x30(a0)
blez v0,0x000403c0
_or s2,a0,zero
lw s3,-0x7ed8(gp)
addiu s0,a0,0x8c
lw s4,-0x7ef0(gp)
or s1,zero,zero
addiu s3,s3,-0x3300
addiu s4,s4,0x21c
or t9,s3,zero
bal 0x0002cd00
_or a0,s0,zero
addiu s1,s1,0x1
lw gp,0x10(sp)
addiu s5,s0,-0x3c
lw t9,-0x7f90(gp)
bal 0x0002a7f4
_lw a0,-0x30(s0)
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x0002a7f4
_lw a0,-0x2c(s0)
lw a0,-0x4(s0)
beq a0,zero,0x00040344
_lw gp,0x10(sp)
or t9,s4,zero
bal 0x0004021c
_nop
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
addiu s0,s0,0x58
bal 0x0002a7f4
_lw a0,-0x60(s0)
li a2,0x58
lw gp,0x10(sp)
or a1,zero,zero
lw t9,-0x7bfc(gp)
jalr t9
_or a0,s5,zero
lw v0,0x30(s2)
slt v0,s1,v0
bne v0,zero,0x000402f4
_nop
or t9,s3,zero
bal 0x0002cd00
_addiu a0,s2,0x1c
or a0,s2,zero
lw gp,0x10(sp)
lw ra,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7f90(gp)
b 0x0002a7f4
_addiu sp,sp,0x38
jr ra
_nop
lw s3,-0x7ed8(gp)
b 0x0004037c
_addiu s3,s3,-0x3300
(translation_unit "void FUN_00040298(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00040298(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00040298(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" 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 ;) })) (if_statement "if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x30))" ( (binary_expression "0 < *(int *)(param_1 + 0x30)" number_literal < (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = param_1 + 0x8c;" (assignment_expression "iVar1 = param_1 + 0x8c" identifier = (binary_expression "param_1 + 0x8c" identifier + number_literal)) ;) (do_statement "do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));" do (compound_statement "{\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    }" { (expression_statement "FUN_0002cd00(iVar1);" (call_expression "FUN_0002cd00(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -0x30));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -0x30))" identifier (argument_list "(*(undefined4 *)(iVar1 + -0x30))" ( (pointer_expression "*(undefined4 *)(iVar1 + -0x30)" * (cast_expression "(undefined4 *)(iVar1 + -0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x30)" ( (binary_expression "iVar1 + -0x30" identifier + number_literal) )))) ))) ;) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -0x2c))" identifier (argument_list "(*(undefined4 *)(iVar1 + -0x2c))" ( (pointer_expression "*(undefined4 *)(iVar1 + -0x2c)" * (cast_expression "(undefined4 *)(iVar1 + -0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x2c)" ( (binary_expression "iVar1 + -0x2c" identifier + number_literal) )))) ))) ;) (if_statement "if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }" if (parenthesized_expression "(*(int *)(iVar1 + -4) != 0)" ( (binary_expression "*(int *)(iVar1 + -4) != 0" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0004021c();\n      }" { (expression_statement "FUN_0004021c();" (call_expression "FUN_0004021c()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -8));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -8))" identifier (argument_list "(*(undefined4 *)(iVar1 + -8))" ( (pointer_expression "*(undefined4 *)(iVar1 + -8)" * (cast_expression "(undefined4 *)(iVar1 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -8)" ( (binary_expression "iVar1 + -8" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);" (call_expression "(*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58)" (parenthesized_expression "(*(code *)PTR_memset_0015b9b4)" ( (pointer_expression "*(code *)PTR_memset_0015b9b4" * (cast_expression "(code *)PTR_memset_0015b9b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + -0x3c,0,0x58)" ( (binary_expression "iVar1 + -0x3c" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "iVar1 = iVar1 + 0x58;" (assignment_expression "iVar1 = iVar1 + 0x58" identifier = (binary_expression "iVar1 + 0x58" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x30))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x30)" identifier < (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_0002cd00(param_1 + 0x1c);" (call_expression "FUN_0002cd00(param_1 + 0x1c)" identifier (argument_list "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) (expression_statement "sqlite3_free(param_1);" (call_expression "sqlite3_free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void fts5MultiIterFree(Fts5Iter *pIter)\n\n{\n  if (pIter == (Fts5Iter *)0x0) {\n    return;\n  }\n  if (0 < pIter->nSeg) {\n    sqlite3Fts5BufferFree(&pIter->aSeg[0].term);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_free(pIter->aSeg[0].pLeaf);\n  }\n  sqlite3Fts5BufferFree(&pIter->poslist);\n                    /* WARNING: Subroutine does not return */\n  sqlite3_free(pIter);\n}\n\n" (function_definition "void fts5MultiIterFree(Fts5Iter *pIter)\n\n{\n  if (pIter == (Fts5Iter *)0x0) {\n    return;\n  }\n  if (0 < pIter->nSeg) {\n    sqlite3Fts5BufferFree(&pIter->aSeg[0].term);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_free(pIter->aSeg[0].pLeaf);\n  }\n  sqlite3Fts5BufferFree(&pIter->poslist);\n                    /* WARNING: Subroutine does not return */\n  sqlite3_free(pIter);\n}" primitive_type (function_declarator "fts5MultiIterFree(Fts5Iter *pIter)" identifier (parameter_list "(Fts5Iter *pIter)" ( (parameter_declaration "Fts5Iter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) ))) (compound_statement "{\n  if (pIter == (Fts5Iter *)0x0) {\n    return;\n  }\n  if (0 < pIter->nSeg) {\n    sqlite3Fts5BufferFree(&pIter->aSeg[0].term);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_free(pIter->aSeg[0].pLeaf);\n  }\n  sqlite3Fts5BufferFree(&pIter->poslist);\n                    /* WARNING: Subroutine does not return */\n  sqlite3_free(pIter);\n}" { (if_statement "if (pIter == (Fts5Iter *)0x0) {\n    return;\n  }" if (parenthesized_expression "(pIter == (Fts5Iter *)0x0)" ( (binary_expression "pIter == (Fts5Iter *)0x0" identifier == (cast_expression "(Fts5Iter *)0x0" ( (type_descriptor "Fts5Iter *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (0 < pIter->nSeg) {\n    sqlite3Fts5BufferFree(&pIter->aSeg[0].term);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_free(pIter->aSeg[0].pLeaf);\n  }" if (parenthesized_expression "(0 < pIter->nSeg)" ( (binary_expression "0 < pIter->nSeg" number_literal < (field_expression "pIter->nSeg" identifier -> field_identifier)) )) (compound_statement "{\n    sqlite3Fts5BufferFree(&pIter->aSeg[0].term);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_free(pIter->aSeg[0].pLeaf);\n  }" { (expression_statement "sqlite3Fts5BufferFree(&pIter->aSeg[0].term);" (call_expression "sqlite3Fts5BufferFree(&pIter->aSeg[0].term)" identifier (argument_list "(&pIter->aSeg[0].term)" ( (pointer_expression "&pIter->aSeg[0].term" & (field_expression "pIter->aSeg[0].term" (subscript_expression "pIter->aSeg[0]" (field_expression "pIter->aSeg" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ))) ;) comment (expression_statement "sqlite3_free(pIter->aSeg[0].pLeaf);" (call_expression "sqlite3_free(pIter->aSeg[0].pLeaf)" identifier (argument_list "(pIter->aSeg[0].pLeaf)" ( (field_expression "pIter->aSeg[0].pLeaf" (subscript_expression "pIter->aSeg[0]" (field_expression "pIter->aSeg" identifier -> field_identifier) [ number_literal ]) . field_identifier) ))) ;) })) (expression_statement "sqlite3Fts5BufferFree(&pIter->poslist);" (call_expression "sqlite3Fts5BufferFree(&pIter->poslist)" identifier (argument_list "(&pIter->poslist)" ( (pointer_expression "&pIter->poslist" & (field_expression "pIter->poslist" identifier -> field_identifier)) ))) ;) comment (expression_statement "sqlite3_free(pIter);" (call_expression "sqlite3_free(pIter)" identifier (argument_list "(pIter)" ( identifier ))) ;) })))
(translation_unit "void FUN_00040298(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00040298(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00040298(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" 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 ;) })) (if_statement "if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x30))" ( (binary_expression "0 < *(int *)(param_1 + 0x30)" number_literal < (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = param_1 + 0x8c;" (assignment_expression "iVar1 = param_1 + 0x8c" identifier = (binary_expression "param_1 + 0x8c" identifier + number_literal)) ;) (do_statement "do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));" do (compound_statement "{\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    }" { (expression_statement "FUN_0002cd00(iVar1);" (call_expression "FUN_0002cd00(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -0x30));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -0x30))" identifier (argument_list "(*(undefined4 *)(iVar1 + -0x30))" ( (pointer_expression "*(undefined4 *)(iVar1 + -0x30)" * (cast_expression "(undefined4 *)(iVar1 + -0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x30)" ( (binary_expression "iVar1 + -0x30" identifier + number_literal) )))) ))) ;) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -0x2c))" identifier (argument_list "(*(undefined4 *)(iVar1 + -0x2c))" ( (pointer_expression "*(undefined4 *)(iVar1 + -0x2c)" * (cast_expression "(undefined4 *)(iVar1 + -0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0x2c)" ( (binary_expression "iVar1 + -0x2c" identifier + number_literal) )))) ))) ;) (if_statement "if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }" if (parenthesized_expression "(*(int *)(iVar1 + -4) != 0)" ( (binary_expression "*(int *)(iVar1 + -4) != 0" (pointer_expression "*(int *)(iVar1 + -4)" * (cast_expression "(int *)(iVar1 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0004021c();\n      }" { (expression_statement "FUN_0004021c();" (call_expression "FUN_0004021c()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -8));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -8))" identifier (argument_list "(*(undefined4 *)(iVar1 + -8))" ( (pointer_expression "*(undefined4 *)(iVar1 + -8)" * (cast_expression "(undefined4 *)(iVar1 + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -8)" ( (binary_expression "iVar1 + -8" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);" (call_expression "(*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58)" (parenthesized_expression "(*(code *)PTR_memset_0015b9b4)" ( (pointer_expression "*(code *)PTR_memset_0015b9b4" * (cast_expression "(code *)PTR_memset_0015b9b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + -0x3c,0,0x58)" ( (binary_expression "iVar1 + -0x3c" identifier + number_literal) , number_literal , number_literal ))) ;) (expression_statement "iVar1 = iVar1 + 0x58;" (assignment_expression "iVar1 = iVar1 + 0x58" identifier = (binary_expression "iVar1 + 0x58" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x30))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x30)" identifier < (pointer_expression "*(int *)(param_1 + 0x30)" * (cast_expression "(int *)(param_1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_0002cd00(param_1 + 0x1c);" (call_expression "FUN_0002cd00(param_1 + 0x1c)" identifier (argument_list "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) (expression_statement "sqlite3_free(param_1);" (call_expression "sqlite3_free(param_1)" 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 ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (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) )))) ))) ;) (expression_statement (call_expression 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) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression 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 ( (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00040298(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00040298(int param_1)" (identifier "FUN_00040298") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return;\n  }\n  if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }\n  FUN_0002cd00(param_1 + 0x1c);\n  sqlite3_free(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (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") (; ";")) (} "}"))) (if_statement "if (0 < *(int *)(param_1 + 0x30)) {\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x30))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x30)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (compound_statement "{\n    iVar2 = 0;\n    iVar1 = param_1 + 0x8c;\n    do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = param_1 + 0x8c;" (assignment_expression "iVar1 = param_1 + 0x8c" (identifier "iVar1") (= "=") (binary_expression "param_1 + 0x8c" (identifier "param_1") (+ "+") (number_literal "0x8c"))) (; ";")) (do_statement "do {\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    } while (iVar2 < *(int *)(param_1 + 0x30));" (do "do") (compound_statement "{\n      FUN_0002cd00(iVar1);\n      iVar2 = iVar2 + 1;\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));\n      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));\n      if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }\n      sqlite3_free(*(undefined4 *)(iVar1 + -8));\n      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);\n      iVar1 = iVar1 + 0x58;\n    }" ({ "{") (expression_statement "FUN_0002cd00(iVar1);" (call_expression "FUN_0002cd00(iVar1)" (identifier "FUN_0002cd00") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -0x30));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -0x30))" (identifier "sqlite3_free") (argument_list "(*(undefined4 *)(iVar1 + -0x30))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + -0x30)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x30)" (( "(") (binary_expression "iVar1 + -0x30" (identifier "iVar1") (+ "+") (number_literal "-0x30")) () ")")))) () ")"))) (; ";")) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -0x2c))" (identifier "sqlite3_free") (argument_list "(*(undefined4 *)(iVar1 + -0x2c))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + -0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0x2c)" (( "(") (binary_expression "iVar1 + -0x2c" (identifier "iVar1") (+ "+") (number_literal "-0x2c")) () ")")))) () ")"))) (; ";")) (if_statement "if (*(int *)(iVar1 + -4) != 0) {\n        FUN_0004021c();\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + -4) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + -4) != 0" (pointer_expression "*(int *)(iVar1 + -4)" (* "*") (cast_expression "(int *)(iVar1 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0004021c();\n      }" ({ "{") (expression_statement "FUN_0004021c();" (call_expression "FUN_0004021c()" (identifier "FUN_0004021c") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "sqlite3_free(*(undefined4 *)(iVar1 + -8));" (call_expression "sqlite3_free(*(undefined4 *)(iVar1 + -8))" (identifier "sqlite3_free") (argument_list "(*(undefined4 *)(iVar1 + -8))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + -8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -8)" (( "(") (binary_expression "iVar1 + -8" (identifier "iVar1") (+ "+") (number_literal "-8")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);" (call_expression "(*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58)" (parenthesized_expression "(*(code *)PTR_memset_0015b9b4)" (( "(") (pointer_expression "*(code *)PTR_memset_0015b9b4" (* "*") (cast_expression "(code *)PTR_memset_0015b9b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0015b9b4"))) () ")")) (argument_list "(iVar1 + -0x3c,0,0x58)" (( "(") (binary_expression "iVar1 + -0x3c" (identifier "iVar1") (+ "+") (number_literal "-0x3c")) (, ",") (number_literal "0") (, ",") (number_literal "0x58") () ")"))) (; ";")) (expression_statement "iVar1 = iVar1 + 0x58;" (assignment_expression "iVar1 = iVar1 + 0x58" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 0x58" (identifier "iVar1") (+ "+") (number_literal "0x58"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x30))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 0x30)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x30)" (* "*") (cast_expression "(int *)(param_1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0002cd00(param_1 + 0x1c);" (call_expression "FUN_0002cd00(param_1 + 0x1c)" (identifier "FUN_0002cd00") (argument_list "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))) (; ";")) (expression_statement "sqlite3_free(param_1);" (call_expression "sqlite3_free(param_1)" (identifier "sqlite3_free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "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)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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)))))))) (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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)))))))) (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 (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (param_1 == 0) {
    return;
  }
  if (0 < *(int *)(param_1 + 0x30)) {
    iVar2 = 0;
    iVar1 = param_1 + 0x8c;
    do {
      FUN_0002cd00(iVar1);
      iVar2 = iVar2 + 1;
      sqlite3_free(*(undefined4 *)(iVar1 + -0x30));
      sqlite3_free(*(undefined4 *)(iVar1 + -0x2c));
      if (*(int *)(iVar1 + -4) != 0) {
        FUN_0004021c();
      }
      sqlite3_free(*(undefined4 *)(iVar1 + -8));
      (*(code *)PTR_memset_0015b9b4)(iVar1 + -0x3c,0,0x58);
      iVar1 = iVar1 + 0x58;
    } while (iVar2 < *(int *)(param_1 + 0x30));
  }
  FUN_0002cd00(param_1 + 0x1c);
  sqlite3_free(param_1);
  return;
}

