
void measureAllocationSize(sqlite3 *db,void *p)

{
  int iVar1;
  
  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p);
  *db->pnBytesFreed = *db->pnBytesFreed + iVar1;
  return;
}



void FUN_0001d008(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);
  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;
  return;
}


lui gp,0x14
addiu gp,gp,0x75a8
addu gp,gp,t9
lw v0,-0x7fd8(gp)
addiu sp,sp,-0x20
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
sw gp,0x10(sp)
lw t9,-0x4da0(v0)
jalr t9
_or a0,a1,zero
lw a0,0x1e8(s0)
lw v1,0x0(a0)
addu v0,v1,v0
sw v0,0x0(a0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_0001d008(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}\n\n" (function_definition "void FUN_0001d008(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0001d008(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);" (assignment_expression "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2)" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "**(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;" (assignment_expression "**(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1" (pointer_expression "**(int **)(param_1 + 0x1e8)" * (pointer_expression "*(int **)(param_1 + 0x1e8)" * (cast_expression "(int **)(param_1 + 0x1e8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1e8)" ( (binary_expression "param_1 + 0x1e8" identifier + number_literal) ))))) = (binary_expression "**(int **)(param_1 + 0x1e8) + iVar1" (pointer_expression "**(int **)(param_1 + 0x1e8)" * (pointer_expression "*(int **)(param_1 + 0x1e8)" * (cast_expression "(int **)(param_1 + 0x1e8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1e8)" ( (binary_expression "param_1 + 0x1e8" identifier + number_literal) ))))) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void measureAllocationSize(sqlite3 *db,void *p)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p);\n  *db->pnBytesFreed = *db->pnBytesFreed + iVar1;\n  return;\n}\n\n" (function_definition "void measureAllocationSize(sqlite3 *db,void *p)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p);\n  *db->pnBytesFreed = *db->pnBytesFreed + iVar1;\n  return;\n}" primitive_type (function_declarator "measureAllocationSize(sqlite3 *db,void *p)" identifier (parameter_list "(sqlite3 *db,void *p)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p);\n  *db->pnBytesFreed = *db->pnBytesFreed + iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p);" (assignment_expression "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p)" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(p)" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "(p)" ( identifier )))) ;) (expression_statement "*db->pnBytesFreed = *db->pnBytesFreed + iVar1;" (assignment_expression "*db->pnBytesFreed = *db->pnBytesFreed + iVar1" (pointer_expression "*db->pnBytesFreed" * (field_expression "db->pnBytesFreed" identifier -> field_identifier)) = (binary_expression "*db->pnBytesFreed + iVar1" (pointer_expression "*db->pnBytesFreed" * (field_expression "db->pnBytesFreed" identifier -> field_identifier)) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001d008(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}\n\n" (function_definition "void FUN_0001d008(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0001d008(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);" (assignment_expression "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2)" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "**(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;" (assignment_expression "**(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1" (pointer_expression "**(int **)(param_1 + 0x1e8)" * (pointer_expression "*(int **)(param_1 + 0x1e8)" * (cast_expression "(int **)(param_1 + 0x1e8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1e8)" ( (binary_expression "param_1 + 0x1e8" identifier + number_literal) ))))) = (binary_expression "**(int **)(param_1 + 0x1e8) + iVar1" (pointer_expression "**(int **)(param_1 + 0x1e8)" * (pointer_expression "*(int **)(param_1 + 0x1e8)" * (cast_expression "(int **)(param_1 + 0x1e8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1e8)" ( (binary_expression "param_1 + 0x1e8" identifier + number_literal) ))))) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0001d008(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001d008(int param_1,undefined4 param_2)" (identifier "FUN_0001d008") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);\n  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);" (assignment_expression "iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" (( "(") (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (* "*") (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (* "*") (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" (( "(") (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" (identifier "PTR_DAT_0015c5d8") (+ "+") (number_literal "-0x4da0")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "**(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;" (assignment_expression "**(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1" (pointer_expression "**(int **)(param_1 + 0x1e8)" (* "*") (pointer_expression "*(int **)(param_1 + 0x1e8)" (* "*") (cast_expression "(int **)(param_1 + 0x1e8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1e8)" (( "(") (binary_expression "param_1 + 0x1e8" (identifier "param_1") (+ "+") (number_literal "0x1e8")) () ")"))))) (= "=") (binary_expression "**(int **)(param_1 + 0x1e8) + iVar1" (pointer_expression "**(int **)(param_1 + 0x1e8)" (* "*") (pointer_expression "*(int **)(param_1 + 0x1e8)" (* "*") (cast_expression "(int **)(param_1 + 0x1e8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1e8)" (( "(") (binary_expression "param_1 + 0x1e8" (identifier "param_1") (+ "+") (number_literal "0x1e8")) () ")"))))) (+ "+") (identifier "iVar1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *db,void *p)

{
  int var_2;
  
  var_2 = (**(type_2 **)(var_1 + -0x4da0))(p);
  *db->pnBytesFreed = *db->pnBytesFreed + var_2;
  return;
}


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

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_2);
  **(int **)(param_1 + 0x1e8) = **(int **)(param_1 + 0x1e8) + iVar1;
  return;
}

