
int memjrnlClose(sqlite3_file *pJfd)

{
  sqlite3_io_methods *psVar1;
  
  psVar1 = pJfd[4].pMethods;
  while (psVar1 != (sqlite3_io_methods *)0x0) {
    psVar1 = (sqlite3_io_methods *)psVar1->iVersion;
    (*(code *)PTR_sqlite3_free_000f53a0)();
  }
  pJfd[4].pMethods = (sqlite3_io_methods *)0x0;
  return 0;
}



undefined4 FUN_00029b60(int param_1)

{
  int *piVar1;
  
  piVar1 = *(int **)(param_1 + 0x10);
  while (piVar1 != (int *)0x0) {
    piVar1 = (int *)*piVar1;
    (*(code *)PTR_sqlite3_free_000f53a0)();
  }
  *(undefined4 *)(param_1 + 0x10) = 0;
  return 0;
}


lui gp,0xd
addiu gp,gp,0x3740
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x20(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s0,0x1c(sp)
lw a0,0x10(a0)
beq a0,zero,0x00029bac
_lw ra,0x24(sp)
lw t9,-0x7f00(gp)
jalr t9
_lw s0,0x0(a0)
lw gp,0x10(sp)
bne s0,zero,0x00029b90
_or a0,s0,zero
lw ra,0x24(sp)
or v0,zero,zero
lw s0,0x1c(sp)
sw zero,0x10(s1)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 FUN_00029b60(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00029b60(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}" type_identifier (function_declarator "FUN_00029b60(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(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 "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" while (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" { (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_000f53a0)();" (call_expression "(*(code *)PTR_sqlite3_free_000f53a0)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f53a0)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f53a0" * (cast_expression "(code *)PTR_sqlite3_free_000f53a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int memjrnlClose(sqlite3_file *pJfd)\n\n{\n  sqlite3_io_methods *psVar1;\n  \n  psVar1 = pJfd[4].pMethods;\n  while (psVar1 != (sqlite3_io_methods *)0x0) {\n    psVar1 = (sqlite3_io_methods *)psVar1->iVersion;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  pJfd[4].pMethods = (sqlite3_io_methods *)0x0;\n  return 0;\n}\n\n" (function_definition "int memjrnlClose(sqlite3_file *pJfd)\n\n{\n  sqlite3_io_methods *psVar1;\n  \n  psVar1 = pJfd[4].pMethods;\n  while (psVar1 != (sqlite3_io_methods *)0x0) {\n    psVar1 = (sqlite3_io_methods *)psVar1->iVersion;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  pJfd[4].pMethods = (sqlite3_io_methods *)0x0;\n  return 0;\n}" primitive_type (function_declarator "memjrnlClose(sqlite3_file *pJfd)" identifier (parameter_list "(sqlite3_file *pJfd)" ( (parameter_declaration "sqlite3_file *pJfd" type_identifier (pointer_declarator "*pJfd" * identifier)) ))) (compound_statement "{\n  sqlite3_io_methods *psVar1;\n  \n  psVar1 = pJfd[4].pMethods;\n  while (psVar1 != (sqlite3_io_methods *)0x0) {\n    psVar1 = (sqlite3_io_methods *)psVar1->iVersion;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  pJfd[4].pMethods = (sqlite3_io_methods *)0x0;\n  return 0;\n}" { (declaration "sqlite3_io_methods *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (expression_statement "psVar1 = pJfd[4].pMethods;" (assignment_expression "psVar1 = pJfd[4].pMethods" identifier = (field_expression "pJfd[4].pMethods" (subscript_expression "pJfd[4]" identifier [ number_literal ]) . field_identifier)) ;) (while_statement "while (psVar1 != (sqlite3_io_methods *)0x0) {\n    psVar1 = (sqlite3_io_methods *)psVar1->iVersion;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" while (parenthesized_expression "(psVar1 != (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar1 != (sqlite3_io_methods *)0x0" identifier != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    psVar1 = (sqlite3_io_methods *)psVar1->iVersion;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" { (expression_statement "psVar1 = (sqlite3_io_methods *)psVar1->iVersion;" (assignment_expression "psVar1 = (sqlite3_io_methods *)psVar1->iVersion" identifier = (cast_expression "(sqlite3_io_methods *)psVar1->iVersion" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar1->iVersion" identifier -> field_identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_000f53a0)();" (call_expression "(*(code *)PTR_sqlite3_free_000f53a0)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f53a0)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f53a0" * (cast_expression "(code *)PTR_sqlite3_free_000f53a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "pJfd[4].pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pJfd[4].pMethods = (sqlite3_io_methods *)0x0" (field_expression "pJfd[4].pMethods" (subscript_expression "pJfd[4]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00029b60(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00029b60(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}" type_identifier (function_declarator "FUN_00029b60(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(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 "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" while (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" { (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "(*(code *)PTR_sqlite3_free_000f53a0)();" (call_expression "(*(code *)PTR_sqlite3_free_000f53a0)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f53a0)" ( (pointer_expression "*(code *)PTR_sqlite3_free_000f53a0" * (cast_expression "(code *)PTR_sqlite3_free_000f53a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00029b60(int param_1)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00029b60(int param_1)" (identifier "FUN_00029b60") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_1 + 0x10);\n  while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x10);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x10)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x10)" (* "*") (cast_expression "(int **)(param_1 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (while_statement "while (piVar1 != (int *)0x0) {\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" (while "while") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar1 = (int *)*piVar1;\n    (*(code *)PTR_sqlite3_free_000f53a0)();\n  }" ({ "{") (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (expression_statement "(*(code *)PTR_sqlite3_free_000f53a0)();" (call_expression "(*(code *)PTR_sqlite3_free_000f53a0)()" (parenthesized_expression "(*(code *)PTR_sqlite3_free_000f53a0)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_free_000f53a0" (* "*") (cast_expression "(code *)PTR_sqlite3_free_000f53a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_free_000f53a0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *pJfd)

{
  type_2 *var_1;
  
  var_1 = pJfd[4].pMethods;
  while (var_1 != (type_2 *)0x0) {
    var_1 = (type_2 *)var_1->iVersion;
    (*(type_3 *)PTR_sqlite3_free_000f53a0)();
  }
  pJfd[4].pMethods = (type_2 *)0x0;
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1)

{
  int *piVar1;
  
  piVar1 = *(int **)(param_1 + 0x10);
  while (piVar1 != (int *)0x0) {
    piVar1 = (int *)*piVar1;
    (*(code *)PTR_sqlite3_free_000f53a0)();
  }
  *(undefined4 *)(param_1 + 0x10) = 0;
  return 0;
}

