
void sqlite3_result_int64(sqlite3_context *pCtx,i64 iVal)

{
  Mem *pMem;
  int in_a2;
  undefined4 in_a3;
  
  pMem = pCtx->pOut;
  if ((pMem->flags & 0x2400) == 0) {
    *(undefined4 *)((int)&pMem->u + 4) = in_a3;
    (pMem->u).nZero = in_a2;
    pMem->flags = 4;
    return;
  }
  vdbeReleaseAndSetInt64(pMem,iVal);
  return;
}



void sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)*param_1;
  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {
    puVar1[1] = param_4;
    *puVar1 = param_3;
    *(undefined2 *)(puVar1 + 2) = 4;
    return;
  }
  FUN_00028b94();
  return;
}


lui gp,0xd
addiu gp,gp,0x4590
addu gp,gp,t9
lw a0,0x0(a0)
lhu v0,0x8(a0)
andi v0,v0,0x2400
bne v0,zero,0x00028d40
_li v0,0x4
sw a3,0x4(a0)
sw a2,0x0(a0)
jr ra
_sh v0,0x8(a0)
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x746c
b 0x00028b94
_nop
(translation_unit "void sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}\n\n" (function_definition "void sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}" primitive_type (function_declarator "sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }" if (parenthesized_expression "((*(ushort *)(puVar1 + 2) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + 2) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + 2) & 0x2400)" ( (binary_expression "*(ushort *)(puVar1 + 2) & 0x2400" (pointer_expression "*(ushort *)(puVar1 + 2)" * (cast_expression "(ushort *)(puVar1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }" { (expression_statement "puVar1[1] = param_4;" (assignment_expression "puVar1[1] = param_4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(puVar1 + 2) = 4;" (assignment_expression "*(undefined2 *)(puVar1 + 2) = 4" (pointer_expression "*(undefined2 *)(puVar1 + 2)" * (cast_expression "(undefined2 *)(puVar1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00028b94();" (call_expression "FUN_00028b94()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_int64(sqlite3_context *pCtx,i64 iVal)\n\n{\n  Mem *pMem;\n  int in_a2;\n  undefined4 in_a3;\n  \n  pMem = pCtx->pOut;\n  if ((pMem->flags & 0x2400) == 0) {\n    *(undefined4 *)((int)&pMem->u + 4) = in_a3;\n    (pMem->u).nZero = in_a2;\n    pMem->flags = 4;\n    return;\n  }\n  vdbeReleaseAndSetInt64(pMem,iVal);\n  return;\n}\n\n" (function_definition "void sqlite3_result_int64(sqlite3_context *pCtx,i64 iVal)\n\n{\n  Mem *pMem;\n  int in_a2;\n  undefined4 in_a3;\n  \n  pMem = pCtx->pOut;\n  if ((pMem->flags & 0x2400) == 0) {\n    *(undefined4 *)((int)&pMem->u + 4) = in_a3;\n    (pMem->u).nZero = in_a2;\n    pMem->flags = 4;\n    return;\n  }\n  vdbeReleaseAndSetInt64(pMem,iVal);\n  return;\n}" primitive_type (function_declarator "sqlite3_result_int64(sqlite3_context *pCtx,i64 iVal)" identifier (parameter_list "(sqlite3_context *pCtx,i64 iVal)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "i64 iVal" type_identifier identifier) ))) (compound_statement "{\n  Mem *pMem;\n  int in_a2;\n  undefined4 in_a3;\n  \n  pMem = pCtx->pOut;\n  if ((pMem->flags & 0x2400) == 0) {\n    *(undefined4 *)((int)&pMem->u + 4) = in_a3;\n    (pMem->u).nZero = in_a2;\n    pMem->flags = 4;\n    return;\n  }\n  vdbeReleaseAndSetInt64(pMem,iVal);\n  return;\n}" { (declaration "Mem *pMem;" type_identifier (pointer_declarator "*pMem" * identifier) ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (expression_statement "pMem = pCtx->pOut;" (assignment_expression "pMem = pCtx->pOut" identifier = (field_expression "pCtx->pOut" identifier -> field_identifier)) ;) (if_statement "if ((pMem->flags & 0x2400) == 0) {\n    *(undefined4 *)((int)&pMem->u + 4) = in_a3;\n    (pMem->u).nZero = in_a2;\n    pMem->flags = 4;\n    return;\n  }" if (parenthesized_expression "((pMem->flags & 0x2400) == 0)" ( (binary_expression "(pMem->flags & 0x2400) == 0" (parenthesized_expression "(pMem->flags & 0x2400)" ( (binary_expression "pMem->flags & 0x2400" (field_expression "pMem->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    *(undefined4 *)((int)&pMem->u + 4) = in_a3;\n    (pMem->u).nZero = in_a2;\n    pMem->flags = 4;\n    return;\n  }" { (expression_statement "*(undefined4 *)((int)&pMem->u + 4) = in_a3;" (assignment_expression "*(undefined4 *)((int)&pMem->u + 4) = in_a3" (pointer_expression "*(undefined4 *)((int)&pMem->u + 4)" * (cast_expression "(undefined4 *)((int)&pMem->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pMem->u + 4)" ( (binary_expression "(int)&pMem->u + 4" (cast_expression "(int)&pMem->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pMem->u" & (field_expression "pMem->u" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "(pMem->u).nZero = in_a2;" (assignment_expression "(pMem->u).nZero = in_a2" (field_expression "(pMem->u).nZero" (parenthesized_expression "(pMem->u)" ( (field_expression "pMem->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pMem->flags = 4;" (assignment_expression "pMem->flags = 4" (field_expression "pMem->flags" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "vdbeReleaseAndSetInt64(pMem,iVal);" (call_expression "vdbeReleaseAndSetInt64(pMem,iVal)" identifier (argument_list "(pMem,iVal)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}\n\n" (function_definition "void sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}" primitive_type (function_declarator "sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }" if (parenthesized_expression "((*(ushort *)(puVar1 + 2) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(puVar1 + 2) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + 2) & 0x2400)" ( (binary_expression "*(ushort *)(puVar1 + 2) & 0x2400" (pointer_expression "*(ushort *)(puVar1 + 2)" * (cast_expression "(ushort *)(puVar1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }" { (expression_statement "puVar1[1] = param_4;" (assignment_expression "puVar1[1] = param_4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(puVar1 + 2) = 4;" (assignment_expression "*(undefined2 *)(puVar1 + 2) = 4" (pointer_expression "*(undefined2 *)(puVar1 + 2)" * (cast_expression "(undefined2 *)(puVar1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00028b94();" (call_expression "FUN_00028b94()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE 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))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}" (primitive_type "void") (function_declarator "sqlite3_result_int64(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "sqlite3_result_int64") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)*param_1;\n  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }\n  FUN_00028b94();\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(puVar1 + 2) & 0x2400) == 0)" (( "(") (binary_expression "(*(ushort *)(puVar1 + 2) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(puVar1 + 2) & 0x2400)" (( "(") (binary_expression "*(ushort *)(puVar1 + 2) & 0x2400" (pointer_expression "*(ushort *)(puVar1 + 2)" (* "*") (cast_expression "(ushort *)(puVar1 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1[1] = param_4;\n    *puVar1 = param_3;\n    *(undefined2 *)(puVar1 + 2) = 4;\n    return;\n  }" ({ "{") (expression_statement "puVar1[1] = param_4;" (assignment_expression "puVar1[1] = param_4" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*puVar1 = param_3;" (assignment_expression "*puVar1 = param_3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined2 *)(puVar1 + 2) = 4;" (assignment_expression "*(undefined2 *)(puVar1 + 2) = 4" (pointer_expression "*(undefined2 *)(puVar1 + 2)" (* "*") (cast_expression "(undefined2 *)(puVar1 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00028b94();" (call_expression "FUN_00028b94()" (identifier "FUN_00028b94") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)*param_1;
  if ((*(ushort *)(puVar1 + 2) & 0x2400) == 0) {
    puVar1[1] = param_4;
    *puVar1 = param_3;
    *(undefined2 *)(puVar1 + 2) = 4;
    return;
  }
  FUN_00028b94();
  return;
}

