
void sqlite3_result_zeroblob(sqlite3_context *pCtx,int n)

{
  Mem *p;
  
  p = pCtx->pOut;
  sqlite3VdbeMemRelease(p);
  p->flags = 0x4010;
  p->n = 0;
  if (n < 0) {
    n = 0;
  }
  (p->u).nZero = n;
  p->enc = '\x01';
  p->z = (char *)0x0;
  return;
}



void sqlite3_result_zeroblob(undefined4 *param_1,int param_2)

{
  int *piVar1;
  
  piVar1 = (int *)*param_1;
  FUN_0002ed08(piVar1);
  *(undefined2 *)(piVar1 + 2) = 0x4010;
  piVar1[3] = 0;
  if (param_2 < 0) {
    param_2 = 0;
  }
  *piVar1 = param_2;
  *(undefined1 *)((int)piVar1 + 10) = 1;
  piVar1[4] = 0;
  return;
}


lui gp,0xd
addiu gp,gp,-0xac4
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s1,a1,zero
lw s0,0x0(a0)
or a0,s0,zero
lw t9,-0x7f9c(gp)
addiu t9,t9,-0x12f8
bal 0x0002ed08
_nop
lw gp,0x10(sp)
li v0,0x4010
sh v0,0x8(s0)
sw zero,0xc(s0)
slti a1,s1,0x0
movn s1,zero,a1
sw s1,0x0(s0)
li v0,0x1
sb v0,0xa(s0)
sw zero,0x10(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void sqlite3_result_zeroblob(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}\n\n" (function_definition "void sqlite3_result_zeroblob(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}" primitive_type (function_declarator "sqlite3_result_zeroblob(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "FUN_0002ed08(piVar1);" (call_expression "FUN_0002ed08(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "*(undefined2 *)(piVar1 + 2) = 0x4010;" (assignment_expression "*(undefined2 *)(piVar1 + 2) = 0x4010" (pointer_expression "*(undefined2 *)(piVar1 + 2)" * (cast_expression "(undefined2 *)(piVar1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_2 < 0) {\n    param_2 = 0;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    param_2 = 0;\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) })) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)piVar1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)piVar1 + 10)" * (cast_expression "(undefined1 *)((int)piVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 10)" ( (binary_expression "(int)piVar1 + 10" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_zeroblob(sqlite3_context *pCtx,int n)\n\n{\n  Mem *p;\n  \n  p = pCtx->pOut;\n  sqlite3VdbeMemRelease(p);\n  p->flags = 0x4010;\n  p->n = 0;\n  if (n < 0) {\n    n = 0;\n  }\n  (p->u).nZero = n;\n  p->enc = '\x01';\n  p->z = (char *)0x0;\n  return;\n}\n\n" (function_definition "void sqlite3_result_zeroblob(sqlite3_context *pCtx,int n)\n\n{\n  Mem *p;\n  \n  p = pCtx->pOut;\n  sqlite3VdbeMemRelease(p);\n  p->flags = 0x4010;\n  p->n = 0;\n  if (n < 0) {\n    n = 0;\n  }\n  (p->u).nZero = n;\n  p->enc = '\x01';\n  p->z = (char *)0x0;\n  return;\n}" primitive_type (function_declarator "sqlite3_result_zeroblob(sqlite3_context *pCtx,int n)" identifier (parameter_list "(sqlite3_context *pCtx,int n)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n  Mem *p;\n  \n  p = pCtx->pOut;\n  sqlite3VdbeMemRelease(p);\n  p->flags = 0x4010;\n  p->n = 0;\n  if (n < 0) {\n    n = 0;\n  }\n  (p->u).nZero = n;\n  p->enc = '\x01';\n  p->z = (char *)0x0;\n  return;\n}" { (declaration "Mem *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "p = pCtx->pOut;" (assignment_expression "p = pCtx->pOut" identifier = (field_expression "pCtx->pOut" identifier -> field_identifier)) ;) (expression_statement "sqlite3VdbeMemRelease(p);" (call_expression "sqlite3VdbeMemRelease(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "p->flags = 0x4010;" (assignment_expression "p->flags = 0x4010" (field_expression "p->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->n = 0;" (assignment_expression "p->n = 0" (field_expression "p->n" identifier -> field_identifier) = number_literal) ;) (if_statement "if (n < 0) {\n    n = 0;\n  }" if (parenthesized_expression "(n < 0)" ( (binary_expression "n < 0" identifier < number_literal) )) (compound_statement "{\n    n = 0;\n  }" { (expression_statement "n = 0;" (assignment_expression "n = 0" identifier = number_literal) ;) })) (expression_statement "(p->u).nZero = n;" (assignment_expression "(p->u).nZero = n" (field_expression "(p->u).nZero" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "p->enc = '\x01';" (assignment_expression "p->enc = '\x01'" (field_expression "p->enc" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "p->z = (char *)0x0;" (assignment_expression "p->z = (char *)0x0" (field_expression "p->z" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_zeroblob(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}\n\n" (function_definition "void sqlite3_result_zeroblob(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}" primitive_type (function_declarator "sqlite3_result_zeroblob(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "FUN_0002ed08(piVar1);" (call_expression "FUN_0002ed08(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "*(undefined2 *)(piVar1 + 2) = 0x4010;" (assignment_expression "*(undefined2 *)(piVar1 + 2) = 0x4010" (pointer_expression "*(undefined2 *)(piVar1 + 2)" * (cast_expression "(undefined2 *)(piVar1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_2 < 0) {\n    param_2 = 0;\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    param_2 = 0;\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) })) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)piVar1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)piVar1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)piVar1 + 10)" * (cast_expression "(undefined1 *)((int)piVar1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 10)" ( (binary_expression "(int)piVar1 + 10" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void sqlite3_result_zeroblob(undefined4 *param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}" (primitive_type "void") (function_declarator "sqlite3_result_zeroblob(undefined4 *param_1,int param_2)" (identifier "sqlite3_result_zeroblob") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = (int *)*param_1;\n  FUN_0002ed08(piVar1);\n  *(undefined2 *)(piVar1 + 2) = 0x4010;\n  piVar1[3] = 0;\n  if (param_2 < 0) {\n    param_2 = 0;\n  }\n  *piVar1 = param_2;\n  *(undefined1 *)((int)piVar1 + 10) = 1;\n  piVar1[4] = 0;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = (int *)*param_1;" (assignment_expression "piVar1 = (int *)*param_1" (identifier "piVar1") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "FUN_0002ed08(piVar1);" (call_expression "FUN_0002ed08(piVar1)" (identifier "FUN_0002ed08") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "*(undefined2 *)(piVar1 + 2) = 0x4010;" (assignment_expression "*(undefined2 *)(piVar1 + 2) = 0x4010" (pointer_expression "*(undefined2 *)(piVar1 + 2)" (* "*") (cast_expression "(undefined2 *)(piVar1 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0x4010")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 < 0) {\n    param_2 = 0;\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = 0;\n  }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)((int)piVar1 + 10) = 1;" (assignment_expression "*(undefined1 *)((int)piVar1 + 10) = 1" (pointer_expression "*(undefined1 *)((int)piVar1 + 10)" (* "*") (cast_expression "(undefined1 *)((int)piVar1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 10)" (( "(") (binary_expression "(int)piVar1 + 10" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (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))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement))))

void MASKED(undefined4 *param_1,int param_2)

{
  int *piVar1;
  
  piVar1 = (int *)*param_1;
  FUN_0002ed08(piVar1);
  *(undefined2 *)(piVar1 + 2) = 0x4010;
  piVar1[3] = 0;
  if (param_2 < 0) {
    param_2 = 0;
  }
  *piVar1 = param_2;
  *(undefined1 *)((int)piVar1 + 10) = 1;
  piVar1[4] = 0;
  return;
}

