
void * sqlite3DbReallocOrFree(sqlite3 *db,void *p,u64 n)

{
  void *pvVar1;
  undefined1 *puVar2;
  undefined4 in_stack_ffffffe4;
  
  puVar2 = &_gp;
  pvVar1 = sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4));
  if ((pvVar1 == (void *)0x0) && (p != (void *)0x0)) {
    (*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);
    return (void *)0x0;
  }
  return pvVar1;
}



int FUN_00057748(undefined4 param_1,int param_2)

{
  int iVar1;
  
  iVar1 = FUN_00057704();
  if ((iVar1 == 0) && (param_2 != 0)) {
    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);
    return 0;
  }
  return iVar1;
}


lui gp,0x11
addiu gp,gp,-0x4198
addu gp,gp,t9
lw t9,-0x7eb0(gp)
addiu sp,sp,-0x30
addiu t9,t9,0x7704
sw gp,0x10(sp)
sw s1,0x28(sp)
or s1,a0,zero
sw s0,0x24(sp)
sw ra,0x2c(sp)
bal 0x00057704
_or s0,a1,zero
beq v0,zero,0x00057798
_lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
beq s0,zero,0x00057784
_lw t9,-0x7ed8(gp)
or a1,s0,zero
sw v0,0x1c(sp)
addiu t9,t9,-0x56dc
jalr t9
_or a0,s1,zero
lw ra,0x2c(sp)
lw v0,0x1c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_00057748(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00057748(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00057748(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00057704();" (assignment_expression "iVar1 = FUN_00057704()" identifier = (call_expression "FUN_00057704()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }" if (parenthesized_expression "((iVar1 == 0) && (param_2 != 0))" ( (binary_expression "(iVar1 == 0) && (param_2 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }" { (expression_statement "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);" (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x56dc)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x56dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x56dc)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x56dc" identifier + number_literal) )))) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void * sqlite3DbReallocOrFree(sqlite3 *db,void *p,u64 n)\n\n{\n  void *pvVar1;\n  undefined1 *puVar2;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar2 = &_gp;\n  pvVar1 = sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4));\n  if ((pvVar1 == (void *)0x0) && (p != (void *)0x0)) {\n    (*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);\n    return (void *)0x0;\n  }\n  return pvVar1;\n}\n\n" (function_definition "void * sqlite3DbReallocOrFree(sqlite3 *db,void *p,u64 n)\n\n{\n  void *pvVar1;\n  undefined1 *puVar2;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar2 = &_gp;\n  pvVar1 = sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4));\n  if ((pvVar1 == (void *)0x0) && (p != (void *)0x0)) {\n    (*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);\n    return (void *)0x0;\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* sqlite3DbReallocOrFree(sqlite3 *db,void *p,u64 n)" * (function_declarator "sqlite3DbReallocOrFree(sqlite3 *db,void *p,u64 n)" identifier (parameter_list "(sqlite3 *db,void *p,u64 n)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "u64 n" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  undefined1 *puVar2;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar2 = &_gp;\n  pvVar1 = sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4));\n  if ((pvVar1 == (void *)0x0) && (p != (void *)0x0)) {\n    (*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);\n    return (void *)0x0;\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "puVar2 = &_gp;" (assignment_expression "puVar2 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "pvVar1 = sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4));" (assignment_expression "pvVar1 = sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4))" identifier = (call_expression "sqlite3DbRealloc(db,p,CONCAT44(&_gp,in_stack_ffffffe4))" identifier (argument_list "(db,p,CONCAT44(&_gp,in_stack_ffffffe4))" ( identifier , identifier , (call_expression "CONCAT44(&_gp,in_stack_ffffffe4)" identifier (argument_list "(&_gp,in_stack_ffffffe4)" ( (pointer_expression "&_gp" & identifier) , identifier ))) )))) ;) (if_statement "if ((pvVar1 == (void *)0x0) && (p != (void *)0x0)) {\n    (*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);\n    return (void *)0x0;\n  }" if (parenthesized_expression "((pvVar1 == (void *)0x0) && (p != (void *)0x0))" ( (binary_expression "(pvVar1 == (void *)0x0) && (p != (void *)0x0)" (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)) )) && (parenthesized_expression "(p != (void *)0x0)" ( (binary_expression "p != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    (*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);\n    return (void *)0x0;\n  }" { (expression_statement "(*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p);" (call_expression "(*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))(db,p)" (parenthesized_expression "(*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc))" ( (pointer_expression "*(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc)" * (cast_expression "(code *)(*(int *)(puVar2 + -0x7ed8) + -0x56dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar2 + -0x7ed8) + -0x56dc)" ( (binary_expression "*(int *)(puVar2 + -0x7ed8) + -0x56dc" (pointer_expression "*(int *)(puVar2 + -0x7ed8)" * (cast_expression "(int *)(puVar2 + -0x7ed8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x7ed8)" ( (binary_expression "puVar2 + -0x7ed8" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(db,p)" ( identifier , identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "int FUN_00057748(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00057748(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00057748(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00057704();" (assignment_expression "iVar1 = FUN_00057704()" identifier = (call_expression "FUN_00057704()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }" if (parenthesized_expression "((iVar1 == 0) && (param_2 != 0))" ( (binary_expression "(iVar1 == 0) && (param_2 != 0)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }" { (expression_statement "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);" (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x56dc)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x56dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x56dc)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x56dc" identifier + number_literal) )))) )) (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return iVar1;" return identifier ;) })))
(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 IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != 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 ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00057748(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00057748(undefined4 param_1,int param_2)" (identifier "FUN_00057748") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00057704();\n  if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00057704();" (assignment_expression "iVar1 = FUN_00057704()" (identifier "iVar1") (= "=") (call_expression "FUN_00057704()" (identifier "FUN_00057704") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) && (param_2 != 0)) {\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (param_2 != 0))" (( "(") (binary_expression "(iVar1 == 0) && (param_2 != 0)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);\n    return 0;\n  }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);" (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x56dc))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x56dc)" (* "*") (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x56dc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x56dc)" (( "(") (binary_expression "PTR_LAB_0015b6d8 + -0x56dc" (identifier "PTR_LAB_0015b6d8") (+ "+") (number_literal "-0x56dc")) () ")")))) () ")")) (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) 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 (identifier) (identifier)))) (return_statement (number_literal)))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  
  iVar1 = FUN_00057704();
  if ((iVar1 == 0) && (param_2 != 0)) {
    (*(code *)(PTR_LAB_0015b6d8 + -0x56dc))(param_1,param_2);
    return 0;
  }
  return iVar1;
}

