
void statClearPage(StatPage *p)

{
  statClearCells((StatPage *)&p->nCell,(StatPage *)&p->aCell);
  if (p->pPg != (DbPage *)0x0) {
    (*(code *)(PTR_LAB_0015c66c + -0x138c))();
  }
                    /* WARNING: Subroutine does not return */
  sqlite3_free(p->zPath);
}



void FUN_0003f478(int param_1)

{
  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);
  if (*(int *)(param_1 + 4) != 0) {
    (*(code *)(PTR_LAB_0015c66c + -0x138c))();
  }
  sqlite3_free(*(undefined4 *)(param_1 + 0xc));
  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);
  return;
}


lui gp,0x12
addiu gp,gp,0x5138
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7eec(gp)
addiu a1,a0,0x1c
sw s0,0x18(sp)
addiu t9,t9,-0xc2c
or s0,a0,zero
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0003f3d4
_addiu a0,a0,0x14
lw a0,0x4(s0)
beq a0,zero,0x0003f4cc
_lw gp,0x10(sp)
lw t9,-0x7f44(gp)
addiu t9,t9,-0x138c
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7fc4(gp)
bal 0x0002b124
_lw a0,0xc(s0)
or a0,s0,zero
lw gp,0x10(sp)
li a2,0x28
lw ra,0x1c(sp)
or a1,zero,zero
lw s0,0x18(sp)
lw t9,-0x7bf8(gp)
jr t9
_addiu sp,sp,0x20
(translation_unit "void FUN_0003f478(int param_1)\n\n{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}\n\n" (function_definition "void FUN_0003f478(int param_1)\n\n{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}" primitive_type (function_declarator "FUN_0003f478(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}" { (expression_statement "FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);" (call_expression "FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c)" identifier (argument_list "(param_1 + 0x14,param_1 + 0x1c)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) , (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" { (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0x138c))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))" ( (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0x138c)" * (cast_expression "(code *)(PTR_LAB_0015c66c + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c66c + -0x138c)" ( (binary_expression "PTR_LAB_0015c66c + -0x138c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) })) (expression_statement "sqlite3_free(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_free(*(undefined4 *)(param_1 + 0xc))" 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 "(*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);" (call_expression "(*(code *)PTR_memset_0015c9b8)(param_1,0,0x28)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" ( (pointer_expression "*(code *)PTR_memset_0015c9b8" * (cast_expression "(code *)PTR_memset_0015c9b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,0x28)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void statClearPage(StatPage *p)\n\n{\n  statClearCells((StatPage *)&p->nCell,(StatPage *)&p->aCell);\n  if (p->pPg != (DbPage *)0x0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n                    /* WARNING: Subroutine does not return */\n  sqlite3_free(p->zPath);\n}\n\n" (function_definition "void statClearPage(StatPage *p)\n\n{\n  statClearCells((StatPage *)&p->nCell,(StatPage *)&p->aCell);\n  if (p->pPg != (DbPage *)0x0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n                    /* WARNING: Subroutine does not return */\n  sqlite3_free(p->zPath);\n}" primitive_type (function_declarator "statClearPage(StatPage *p)" identifier (parameter_list "(StatPage *p)" ( (parameter_declaration "StatPage *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  statClearCells((StatPage *)&p->nCell,(StatPage *)&p->aCell);\n  if (p->pPg != (DbPage *)0x0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n                    /* WARNING: Subroutine does not return */\n  sqlite3_free(p->zPath);\n}" { (expression_statement "statClearCells((StatPage *)&p->nCell,(StatPage *)&p->aCell);" (call_expression "statClearCells((StatPage *)&p->nCell,(StatPage *)&p->aCell)" identifier (argument_list "((StatPage *)&p->nCell,(StatPage *)&p->aCell)" ( (cast_expression "(StatPage *)&p->nCell" ( (type_descriptor "StatPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->nCell" & (field_expression "p->nCell" identifier -> field_identifier))) , (cast_expression "(StatPage *)&p->aCell" ( (type_descriptor "StatPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->aCell" & (field_expression "p->aCell" identifier -> field_identifier))) ))) ;) (if_statement "if (p->pPg != (DbPage *)0x0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" if (parenthesized_expression "(p->pPg != (DbPage *)0x0)" ( (binary_expression "p->pPg != (DbPage *)0x0" (field_expression "p->pPg" identifier -> field_identifier) != (cast_expression "(DbPage *)0x0" ( (type_descriptor "DbPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" { (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0x138c))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))" ( (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0x138c)" * (cast_expression "(code *)(PTR_LAB_0015c66c + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c66c + -0x138c)" ( (binary_expression "PTR_LAB_0015c66c + -0x138c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) })) comment (expression_statement "sqlite3_free(p->zPath);" (call_expression "sqlite3_free(p->zPath)" identifier (argument_list "(p->zPath)" ( (field_expression "p->zPath" identifier -> field_identifier) ))) ;) })))
(translation_unit "void FUN_0003f478(int param_1)\n\n{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}\n\n" (function_definition "void FUN_0003f478(int param_1)\n\n{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}" primitive_type (function_declarator "FUN_0003f478(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}" { (expression_statement "FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);" (call_expression "FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c)" identifier (argument_list "(param_1 + 0x14,param_1 + 0x1c)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) , (binary_expression "param_1 + 0x1c" identifier + number_literal) ))) ;) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" { (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0x138c))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))" ( (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0x138c)" * (cast_expression "(code *)(PTR_LAB_0015c66c + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c66c + -0x138c)" ( (binary_expression "PTR_LAB_0015c66c + -0x138c" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) })) (expression_statement "sqlite3_free(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_free(*(undefined4 *)(param_1 + 0xc))" 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 "(*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);" (call_expression "(*(code *)PTR_memset_0015c9b8)(param_1,0,0x28)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" ( (pointer_expression "*(code *)PTR_memset_0015c9b8" * (cast_expression "(code *)PTR_memset_0015c9b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,0x28)" ( identifier , number_literal , number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (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 ( IDENT , LIT , LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0003f478(int param_1)\n\n{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003f478(int param_1)" (identifier "FUN_0003f478") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);\n  if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }\n  sqlite3_free(*(undefined4 *)(param_1 + 0xc));\n  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);\n  return;\n}" ({ "{") (expression_statement "FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);" (call_expression "FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c)" (identifier "FUN_0003f3d4") (argument_list "(param_1 + 0x14,param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) (, ",") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 4) != 0) {\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)(PTR_LAB_0015c66c + -0x138c))();\n  }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0x138c))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0x138c))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0x138c)" (* "*") (cast_expression "(code *)(PTR_LAB_0015c66c + -0x138c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c66c + -0x138c)" (( "(") (binary_expression "PTR_LAB_0015c66c + -0x138c" (identifier "PTR_LAB_0015c66c") (+ "+") (number_literal "-0x138c")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "sqlite3_free(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_free(*(undefined4 *)(param_1 + 0xc))" (identifier "sqlite3_free") (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 "(*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);" (call_expression "(*(code *)PTR_memset_0015c9b8)(param_1,0,0x28)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" (( "(") (pointer_expression "*(code *)PTR_memset_0015c9b8" (* "*") (cast_expression "(code *)PTR_memset_0015c9b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0015c9b8"))) () ")")) (argument_list "(param_1,0,0x28)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0x28") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p)

{
  var_1((type_1 *)&p->nCell,(type_1 *)&p->aCell);
  if (p->pPg != (type_2 *)0x0) {
    (*(type_3 *)(var_2 + -0x138c))();
  }
                    /* WARNING: Subroutine does not return */
  var_3(p->zPath);
}


(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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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: (parenthesized_expression (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)))))) 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 (identifier) (number_literal) (number_literal)))) (return_statement))))

void MASKED(int param_1)

{
  FUN_0003f3d4(param_1 + 0x14,param_1 + 0x1c);
  if (*(int *)(param_1 + 4) != 0) {
    (*(code *)(PTR_LAB_0015c66c + -0x138c))();
  }
  sqlite3_free(*(undefined4 *)(param_1 + 0xc));
  (*(code *)PTR_memset_0015c9b8)(param_1,0,0x28);
  return;
}

