
void * sqlite3MemMalloc(int nByte)

{
  void *pvVar1;
  
  pvVar1 = (void *)(*(code *)PTR_malloc_000f54c4)();
  if (pvVar1 != (void *)0x0) {
    return pvVar1;
  }
  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,nByte);
  return (void *)0x0;
}



int FUN_00049574(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_malloc_000f54c4)();
  if (iVar1 != 0) {
    return iVar1;
  }
  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);
  return 0;
}


lui gp,0xb
addiu gp,gp,0x3d2c
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7ddc(gp)
sw gp,0x10(sp)
sw s0,0x20(sp)
sw ra,0x24(sp)
jalr t9
_or s0,a0,zero
beq v0,zero,0x000495b4
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw a1,-0x7fd4(gp)
li a0,0x7
lw t9,-0x7ed4(gp)
or a2,s0,zero
sw v0,0x1c(sp)
jalr t9
_addiu a1,a1,0x7414
lw ra,0x24(sp)
lw v0,0x1c(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_00049574(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}\n\n" (function_definition "int FUN_00049574(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}" primitive_type (function_declarator "FUN_00049574(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_malloc_000f54c4)();" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000f54c4)()" identifier = (call_expression "(*(code *)PTR_malloc_000f54c4)()" (parenthesized_expression "(*(code *)PTR_malloc_000f54c4)" ( (pointer_expression "*(code *)PTR_malloc_000f54c4" * (cast_expression "(code *)PTR_malloc_000f54c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);" (call_expression "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_log_000f53cc)" ( (pointer_expression "*(code *)PTR_sqlite3_log_000f53cc" * (cast_expression "(code *)PTR_sqlite3_log_000f53cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(7,PTR_LAB_000f52cc + 0x7414,param_1)" ( number_literal , (binary_expression "PTR_LAB_000f52cc + 0x7414" identifier + number_literal) , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * sqlite3MemMalloc(int nByte)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_000f54c4)();\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,nByte);\n  return (void *)0x0;\n}\n\n" (function_definition "void * sqlite3MemMalloc(int nByte)\n\n{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_000f54c4)();\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,nByte);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* sqlite3MemMalloc(int nByte)" * (function_declarator "sqlite3MemMalloc(int nByte)" identifier (parameter_list "(int nByte)" ( (parameter_declaration "int nByte" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  pvVar1 = (void *)(*(code *)PTR_malloc_000f54c4)();\n  if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,nByte);\n  return (void *)0x0;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (expression_statement "pvVar1 = (void *)(*(code *)PTR_malloc_000f54c4)();" (assignment_expression "pvVar1 = (void *)(*(code *)PTR_malloc_000f54c4)()" identifier = (cast_expression "(void *)(*(code *)PTR_malloc_000f54c4)()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000f54c4)()" (parenthesized_expression "(*(code *)PTR_malloc_000f54c4)" ( (pointer_expression "*(code *)PTR_malloc_000f54c4" * (cast_expression "(code *)PTR_malloc_000f54c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    return pvVar1;\n  }" if (parenthesized_expression "(pvVar1 != (void *)0x0)" ( (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pvVar1;\n  }" { (return_statement "return pvVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,nByte);" (call_expression "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,nByte)" (parenthesized_expression "(*(code *)PTR_sqlite3_log_000f53cc)" ( (pointer_expression "*(code *)PTR_sqlite3_log_000f53cc" * (cast_expression "(code *)PTR_sqlite3_log_000f53cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(7,PTR_LAB_000f52cc + 0x7414,nByte)" ( number_literal , (binary_expression "PTR_LAB_000f52cc + 0x7414" identifier + number_literal) , identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_00049574(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}\n\n" (function_definition "int FUN_00049574(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}" primitive_type (function_declarator "FUN_00049574(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_malloc_000f54c4)();" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000f54c4)()" identifier = (call_expression "(*(code *)PTR_malloc_000f54c4)()" (parenthesized_expression "(*(code *)PTR_malloc_000f54c4)" ( (pointer_expression "*(code *)PTR_malloc_000f54c4" * (cast_expression "(code *)PTR_malloc_000f54c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);" (call_expression "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_log_000f53cc)" ( (pointer_expression "*(code *)PTR_sqlite3_log_000f53cc" * (cast_expression "(code *)PTR_sqlite3_log_000f53cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(7,PTR_LAB_000f52cc + 0x7414,param_1)" ( number_literal , (binary_expression "PTR_LAB_000f52cc + 0x7414" identifier + number_literal) , identifier ))) ;) (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 IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00049574(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00049574(undefined4 param_1)" (identifier "FUN_00049574") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_malloc_000f54c4)();\n  if (iVar1 != 0) {\n    return iVar1;\n  }\n  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_malloc_000f54c4)();" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000f54c4)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_malloc_000f54c4)()" (parenthesized_expression "(*(code *)PTR_malloc_000f54c4)" (( "(") (pointer_expression "*(code *)PTR_malloc_000f54c4" (* "*") (cast_expression "(code *)PTR_malloc_000f54c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000f54c4"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);" (call_expression "(*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_log_000f53cc)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_log_000f53cc" (* "*") (cast_expression "(code *)PTR_sqlite3_log_000f53cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_log_000f53cc"))) () ")")) (argument_list "(7,PTR_LAB_000f52cc + 0x7414,param_1)" (( "(") (number_literal "7") (, ",") (binary_expression "PTR_LAB_000f52cc + 0x7414" (identifier "PTR_LAB_000f52cc") (+ "+") (number_literal "0x7414")) (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(int nByte)

{
  void *var_1;
  
  var_1 = (void *)(*(type_1 *)PTR_malloc_000f54c4)();
  if (var_1 != (void *)0x0) {
    return var_1;
  }
  (*(type_1 *)PTR_sqlite3_log_000f53cc)(7,var_2 + 0x7414,nByte);
  return (void *)0x0;
}


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

int MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_malloc_000f54c4)();
  if (iVar1 != 0) {
    return iVar1;
  }
  (*(code *)PTR_sqlite3_log_000f53cc)(7,PTR_LAB_000f52cc + 0x7414,param_1);
  return 0;
}

