
void * fts3MallocZero(sqlite3_int64 nByte)

{
  void *pvVar1;
  undefined4 in_a1;
  undefined1 *puVar2;
  undefined4 in_stack_fffffff4;
  
  puVar2 = &_gp;
  pvVar1 = sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4));
  if (pvVar1 != (void *)0x0) {
    pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);
  }
  return pvVar1;
}



int FUN_00054238(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = sqlite3_malloc64();
  if (iVar1 != 0) {
    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);
  }
  return iVar1;
}


lui gp,0x11
addiu gp,gp,-0xc88
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7e50(gp)
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
bal 0x00050f8c
_or s0,a1,zero
lw gp,0x10(sp)
beq v0,zero,0x00054284
_or v1,v0,zero
lw t9,-0x7bfc(gp)
or a1,zero,zero
or a2,s0,zero
jalr t9
_or a0,v0,zero
or v1,v0,zero
lw ra,0x1c(sp)
or v0,v1,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int FUN_00054238(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00054238(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00054238(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_malloc64();" (assignment_expression "iVar1 = sqlite3_malloc64()" identifier = (call_expression "sqlite3_malloc64()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2)" identifier = (call_expression "(*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2)" (parenthesized_expression "(*(code *)PTR_memset_0015b9b4)" ( (pointer_expression "*(code *)PTR_memset_0015b9b4" * (cast_expression "(code *)PTR_memset_0015b9b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,0,param_2)" ( identifier , number_literal , identifier )))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void * fts3MallocZero(sqlite3_int64 nByte)\n\n{\n  void *pvVar1;\n  undefined4 in_a1;\n  undefined1 *puVar2;\n  undefined4 in_stack_fffffff4;\n  \n  puVar2 = &_gp;\n  pvVar1 = sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4));\n  if (pvVar1 != (void *)0x0) {\n    pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);\n  }\n  return pvVar1;\n}\n\n" (function_definition "void * fts3MallocZero(sqlite3_int64 nByte)\n\n{\n  void *pvVar1;\n  undefined4 in_a1;\n  undefined1 *puVar2;\n  undefined4 in_stack_fffffff4;\n  \n  puVar2 = &_gp;\n  pvVar1 = sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4));\n  if (pvVar1 != (void *)0x0) {\n    pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* fts3MallocZero(sqlite3_int64 nByte)" * (function_declarator "fts3MallocZero(sqlite3_int64 nByte)" identifier (parameter_list "(sqlite3_int64 nByte)" ( (parameter_declaration "sqlite3_int64 nByte" type_identifier identifier) )))) (compound_statement "{\n  void *pvVar1;\n  undefined4 in_a1;\n  undefined1 *puVar2;\n  undefined4 in_stack_fffffff4;\n  \n  puVar2 = &_gp;\n  pvVar1 = sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4));\n  if (pvVar1 != (void *)0x0) {\n    pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "undefined4 in_a1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 in_stack_fffffff4;" type_identifier identifier ;) (expression_statement "puVar2 = &_gp;" (assignment_expression "puVar2 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "pvVar1 = sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4));" (assignment_expression "pvVar1 = sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4))" identifier = (call_expression "sqlite3_malloc64(CONCAT44(&_gp,in_stack_fffffff4))" identifier (argument_list "(CONCAT44(&_gp,in_stack_fffffff4))" ( (call_expression "CONCAT44(&_gp,in_stack_fffffff4)" identifier (argument_list "(&_gp,in_stack_fffffff4)" ( (pointer_expression "&_gp" & identifier) , identifier ))) )))) ;) (if_statement "if (pvVar1 != (void *)0x0) {\n    pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);\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    pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);\n  }" { (expression_statement "pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1);" (assignment_expression "pvVar1 = (void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1)" identifier = (cast_expression "(void *)(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar2 + -0x7bfc))(pvVar1,0,in_a1)" (parenthesized_expression "(**(code **)(puVar2 + -0x7bfc))" ( (pointer_expression "**(code **)(puVar2 + -0x7bfc)" * (pointer_expression "*(code **)(puVar2 + -0x7bfc)" * (cast_expression "(code **)(puVar2 + -0x7bfc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x7bfc)" ( (binary_expression "puVar2 + -0x7bfc" identifier + number_literal) ))))) )) (argument_list "(pvVar1,0,in_a1)" ( identifier , number_literal , identifier ))))) ;) })) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "int FUN_00054238(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00054238(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00054238(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sqlite3_malloc64();" (assignment_expression "iVar1 = sqlite3_malloc64()" identifier = (call_expression "sqlite3_malloc64()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2)" identifier = (call_expression "(*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2)" (parenthesized_expression "(*(code *)PTR_memset_0015b9b4)" ( (pointer_expression "*(code *)PTR_memset_0015b9b4" * (cast_expression "(code *)PTR_memset_0015b9b4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,0,param_2)" ( identifier , number_literal , identifier )))) ;) })) (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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT )))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00054238(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00054238(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00054238") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sqlite3_malloc64();\n  if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = sqlite3_malloc64();" (assignment_expression "iVar1 = sqlite3_malloc64()" (identifier "iVar1") (= "=") (call_expression "sqlite3_malloc64()" (identifier "sqlite3_malloc64") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2)" (parenthesized_expression "(*(code *)PTR_memset_0015b9b4)" (( "(") (pointer_expression "*(code *)PTR_memset_0015b9b4" (* "*") (cast_expression "(code *)PTR_memset_0015b9b4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0015b9b4"))) () ")")) (argument_list "(iVar1,0,param_2)" (( "(") (identifier "iVar1") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

void * function_1(type_1 nByte)

{
  void *var_3;
  type_2 in_a1;
  type_3 *var_4;
  type_2 in_stack_fffffff4;
  
  var_4 = &_gp;
  var_3 = var_1(var_2(&_gp,in_stack_fffffff4));
  if (var_3 != (void *)0x0) {
    var_3 = (void *)(**(type_4 **)(var_4 + -0x7bfc))(var_3,0,in_a1);
  }
  return var_3;
}


(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: (type_identifier) 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: (identifier) right: (number_literal))) consequence: (compound_statement (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 (identifier) (number_literal) (identifier))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = sqlite3_malloc64();
  if (iVar1 != 0) {
    iVar1 = (*(code *)PTR_memset_0015b9b4)(iVar1,0,param_2);
  }
  return iVar1;
}

