
void sqlite3_result_pointer
               (sqlite3_context *pCtx,void *pPtr,char *zPType,_func_void_void_ptr *xDestructor)

{
  Mem *p;
  
  p = pCtx->pOut;
  if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {
    vdbeMemClear(p);
  }
  if (zPType == (char *)0x0) {
    zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;
  }
  (p->u).zPType = zPType;
  p->z = (char *)pPtr;
  p->flags = 0x8601;
  p->eSubtype = 'p';
  if (xDestructor == (_func_void_void_ptr *)0x0) {
    xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);
  }
  p->xDel = xDestructor;
  return;
}



void sqlite3_result_pointer
               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)

{
  param_1 = (undefined4 *)*param_1;
  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {
    FUN_00028f1c(param_1);
  }
  if (param_3 == (undefined *)0x0) {
    param_3 = PTR_DAT_000f52d4 + -0x543c;
  }
  *param_1 = param_3;
  param_1[4] = param_2;
  *(undefined2 *)(param_1 + 2) = 0x8601;
  *(undefined1 *)((int)param_1 + 0xb) = 0x70;
  if (param_4 == (undefined *)0x0) {
    param_4 = PTR_LAB_000f52c8 + 0x2470;
  }
  param_1[9] = param_4;
  return;
}


lui gp,0xd
addiu gp,gp,0x3f40
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x1c(sp)
lw s0,0x0(a0)
sw gp,0x10(sp)
sw s3,0x28(sp)
or s3,a1,zero
sw s2,0x24(sp)
or s2,a2,zero
sw s1,0x20(sp)
sw ra,0x2c(sp)
lhu v0,0x8(s0)
andi v0,v0,0x2400
bne v0,zero,0x000293fc
_or s1,a3,zero
lw v0,0x18(s0)
bne v0,zero,0x00029400
_lw t9,-0x7fb4(gp)
beq s2,zero,0x00029414
_nop
li v0,-0x79ff
sw s2,0x0(s0)
sw s3,0x10(s0)
sh v0,0x8(s0)
li v0,0x70
bne s1,zero,0x000293dc
_sb v0,0xb(s0)
lw s1,-0x7fd8(gp)
addiu s1,s1,0x2470
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
sw s1,0x24(s0)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x70e4
bal 0x00028f1c
_or a0,s0,zero
bne s2,zero,0x000293b8
_lw gp,0x10(sp)
lw s2,-0x7fcc(gp)
b 0x000293b8
_addiu s2,s2,-0x543c
(translation_unit "void sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}\n\n" (function_definition "void sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}" primitive_type (function_declarator "sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}" { (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (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 *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0))" ( (binary_expression "((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 2) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(param_1 + 2) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 2) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 2) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(param_1[6] != 0)" ( (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    FUN_00028f1c(param_1);\n  }" { (expression_statement "FUN_00028f1c(param_1);" (call_expression "FUN_00028f1c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (if_statement "if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }" if (parenthesized_expression "(param_3 == (undefined *)0x0)" ( (binary_expression "param_3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }" { (expression_statement "param_3 = PTR_DAT_000f52d4 + -0x543c;" (assignment_expression "param_3 = PTR_DAT_000f52d4 + -0x543c" identifier = (binary_expression "PTR_DAT_000f52d4 + -0x543c" identifier + number_literal)) ;) })) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[4] = param_2;" (assignment_expression "param_1[4] = param_2" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined2 *)(param_1 + 2) = 0x8601;" (assignment_expression "*(undefined2 *)(param_1 + 2) = 0x8601" (pointer_expression "*(undefined2 *)(param_1 + 2)" * (cast_expression "(undefined2 *)(param_1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_1 + 0xb) = 0x70;" (assignment_expression "*(undefined1 *)((int)param_1 + 0xb) = 0x70" (pointer_expression "*(undefined1 *)((int)param_1 + 0xb)" * (cast_expression "(undefined1 *)((int)param_1 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xb)" ( (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }" if (parenthesized_expression "(param_4 == (undefined *)0x0)" ( (binary_expression "param_4 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }" { (expression_statement "param_4 = PTR_LAB_000f52c8 + 0x2470;" (assignment_expression "param_4 = PTR_LAB_000f52c8 + 0x2470" identifier = (binary_expression "PTR_LAB_000f52c8 + 0x2470" identifier + number_literal)) ;) })) (expression_statement "param_1[9] = param_4;" (assignment_expression "param_1[9] = param_4" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_pointer\n               (sqlite3_context *pCtx,void *pPtr,char *zPType,_func_void_void_ptr *xDestructor)\n\n{\n  Mem *p;\n  \n  p = pCtx->pOut;\n  if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n    vdbeMemClear(p);\n  }\n  if (zPType == (char *)0x0) {\n    zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;\n  }\n  (p->u).zPType = zPType;\n  p->z = (char *)pPtr;\n  p->flags = 0x8601;\n  p->eSubtype = 'p';\n  if (xDestructor == (_func_void_void_ptr *)0x0) {\n    xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);\n  }\n  p->xDel = xDestructor;\n  return;\n}\n\n" (function_definition "void sqlite3_result_pointer\n               (sqlite3_context *pCtx,void *pPtr,char *zPType,_func_void_void_ptr *xDestructor)\n\n{\n  Mem *p;\n  \n  p = pCtx->pOut;\n  if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n    vdbeMemClear(p);\n  }\n  if (zPType == (char *)0x0) {\n    zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;\n  }\n  (p->u).zPType = zPType;\n  p->z = (char *)pPtr;\n  p->flags = 0x8601;\n  p->eSubtype = 'p';\n  if (xDestructor == (_func_void_void_ptr *)0x0) {\n    xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);\n  }\n  p->xDel = xDestructor;\n  return;\n}" primitive_type (function_declarator "sqlite3_result_pointer\n               (sqlite3_context *pCtx,void *pPtr,char *zPType,_func_void_void_ptr *xDestructor)" identifier (parameter_list "(sqlite3_context *pCtx,void *pPtr,char *zPType,_func_void_void_ptr *xDestructor)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "void *pPtr" primitive_type (pointer_declarator "*pPtr" * identifier)) , (parameter_declaration "char *zPType" primitive_type (pointer_declarator "*zPType" * identifier)) , (parameter_declaration "_func_void_void_ptr *xDestructor" type_identifier (pointer_declarator "*xDestructor" * identifier)) ))) (compound_statement "{\n  Mem *p;\n  \n  p = pCtx->pOut;\n  if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n    vdbeMemClear(p);\n  }\n  if (zPType == (char *)0x0) {\n    zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;\n  }\n  (p->u).zPType = zPType;\n  p->z = (char *)pPtr;\n  p->flags = 0x8601;\n  p->eSubtype = 'p';\n  if (xDestructor == (_func_void_void_ptr *)0x0) {\n    xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);\n  }\n  p->xDel = xDestructor;\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)) ;) (if_statement "if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {\n    vdbeMemClear(p);\n  }" if (parenthesized_expression "(((p->flags & 0x2400) != 0) || (p->szMalloc != 0))" ( (binary_expression "((p->flags & 0x2400) != 0) || (p->szMalloc != 0)" (parenthesized_expression "((p->flags & 0x2400) != 0)" ( (binary_expression "(p->flags & 0x2400) != 0" (parenthesized_expression "(p->flags & 0x2400)" ( (binary_expression "p->flags & 0x2400" (field_expression "p->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) || (parenthesized_expression "(p->szMalloc != 0)" ( (binary_expression "p->szMalloc != 0" (field_expression "p->szMalloc" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    vdbeMemClear(p);\n  }" { (expression_statement "vdbeMemClear(p);" (call_expression "vdbeMemClear(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (if_statement "if (zPType == (char *)0x0) {\n    zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;\n  }" if (parenthesized_expression "(zPType == (char *)0x0)" ( (binary_expression "zPType == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;\n  }" { (expression_statement "zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c;" (assignment_expression "zPType = PTR_yy_shift_ofst_376__000f52d4 + -0x543c" identifier = (binary_expression "PTR_yy_shift_ofst_376__000f52d4 + -0x543c" identifier + number_literal)) ;) })) (expression_statement "(p->u).zPType = zPType;" (assignment_expression "(p->u).zPType = zPType" (field_expression "(p->u).zPType" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "p->z = (char *)pPtr;" (assignment_expression "p->z = (char *)pPtr" (field_expression "p->z" identifier -> field_identifier) = (cast_expression "(char *)pPtr" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "p->flags = 0x8601;" (assignment_expression "p->flags = 0x8601" (field_expression "p->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->eSubtype = 'p';" (assignment_expression "p->eSubtype = 'p'" (field_expression "p->eSubtype" identifier -> field_identifier) = (char_literal "'p'" ' character ')) ;) (if_statement "if (xDestructor == (_func_void_void_ptr *)0x0) {\n    xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);\n  }" if (parenthesized_expression "(xDestructor == (_func_void_void_ptr *)0x0)" ( (binary_expression "xDestructor == (_func_void_void_ptr *)0x0" identifier == (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);\n  }" { (expression_statement "xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470);" (assignment_expression "xDestructor = (_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470)" identifier = (cast_expression "(_func_void_void_ptr *)(PTR_LAB_000f52c8 + 0x2470)" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52c8 + 0x2470)" ( (binary_expression "PTR_LAB_000f52c8 + 0x2470" identifier + number_literal) )))) ;) })) (expression_statement "p->xDel = xDestructor;" (assignment_expression "p->xDel = xDestructor" (field_expression "p->xDel" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}\n\n" (function_definition "void sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}" primitive_type (function_declarator "sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}" { (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (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 *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0))" ( (binary_expression "((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 2) & 0x2400) != 0)" ( (binary_expression "(*(ushort *)(param_1 + 2) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 2) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 2) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 2)" * (cast_expression "(ushort *)(param_1 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) )) || (parenthesized_expression "(param_1[6] != 0)" ( (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    FUN_00028f1c(param_1);\n  }" { (expression_statement "FUN_00028f1c(param_1);" (call_expression "FUN_00028f1c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (if_statement "if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }" if (parenthesized_expression "(param_3 == (undefined *)0x0)" ( (binary_expression "param_3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }" { (expression_statement "param_3 = PTR_DAT_000f52d4 + -0x543c;" (assignment_expression "param_3 = PTR_DAT_000f52d4 + -0x543c" identifier = (binary_expression "PTR_DAT_000f52d4 + -0x543c" identifier + number_literal)) ;) })) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[4] = param_2;" (assignment_expression "param_1[4] = param_2" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined2 *)(param_1 + 2) = 0x8601;" (assignment_expression "*(undefined2 *)(param_1 + 2) = 0x8601" (pointer_expression "*(undefined2 *)(param_1 + 2)" * (cast_expression "(undefined2 *)(param_1 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_1 + 0xb) = 0x70;" (assignment_expression "*(undefined1 *)((int)param_1 + 0xb) = 0x70" (pointer_expression "*(undefined1 *)((int)param_1 + 0xb)" * (cast_expression "(undefined1 *)((int)param_1 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0xb)" ( (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }" if (parenthesized_expression "(param_4 == (undefined *)0x0)" ( (binary_expression "param_4 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }" { (expression_statement "param_4 = PTR_LAB_000f52c8 + 0x2470;" (assignment_expression "param_4 = PTR_LAB_000f52c8 + 0x2470" identifier = (binary_expression "PTR_LAB_000f52c8 + 0x2470" identifier + number_literal)) ;) })) (expression_statement "param_1[9] = param_4;" (assignment_expression "param_1[9] = param_4" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}" (primitive_type "void") (function_declarator "sqlite3_result_pointer\n               (undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" (identifier "sqlite3_result_pointer") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined *param_3" (type_identifier "undefined") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined *param_4" (type_identifier "undefined") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  param_1 = (undefined4 *)*param_1;\n  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }\n  if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }\n  *param_1 = param_3;\n  param_1[4] = param_2;\n  *(undefined2 *)(param_1 + 2) = 0x8601;\n  *(undefined1 *)((int)param_1 + 0xb) = 0x70;\n  if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }\n  param_1[9] = param_4;\n  return;\n}" ({ "{") (expression_statement "param_1 = (undefined4 *)*param_1;" (assignment_expression "param_1 = (undefined4 *)*param_1" (identifier "param_1") (= "=") (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 *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {\n    FUN_00028f1c(param_1);\n  }" (if "if") (parenthesized_expression "(((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0))" (( "(") (binary_expression "((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 2) & 0x2400) != 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 2) & 0x2400) != 0" (parenthesized_expression "(*(ushort *)(param_1 + 2) & 0x2400)" (( "(") (binary_expression "*(ushort *)(param_1 + 2) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 2)" (* "*") (cast_expression "(ushort *)(param_1 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_1[6] != 0)" (( "(") (binary_expression "param_1[6] != 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00028f1c(param_1);\n  }" ({ "{") (expression_statement "FUN_00028f1c(param_1);" (call_expression "FUN_00028f1c(param_1)" (identifier "FUN_00028f1c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == (undefined *)0x0) {\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }" (if "if") (parenthesized_expression "(param_3 == (undefined *)0x0)" (( "(") (binary_expression "param_3 == (undefined *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_3 = PTR_DAT_000f52d4 + -0x543c;\n  }" ({ "{") (expression_statement "param_3 = PTR_DAT_000f52d4 + -0x543c;" (assignment_expression "param_3 = PTR_DAT_000f52d4 + -0x543c" (identifier "param_3") (= "=") (binary_expression "PTR_DAT_000f52d4 + -0x543c" (identifier "PTR_DAT_000f52d4") (+ "+") (number_literal "-0x543c"))) (; ";")) (} "}"))) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_1[4] = param_2;" (assignment_expression "param_1[4] = param_2" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 2) = 0x8601;" (assignment_expression "*(undefined2 *)(param_1 + 2) = 0x8601" (pointer_expression "*(undefined2 *)(param_1 + 2)" (* "*") (cast_expression "(undefined2 *)(param_1 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0x8601")) (; ";")) (expression_statement "*(undefined1 *)((int)param_1 + 0xb) = 0x70;" (assignment_expression "*(undefined1 *)((int)param_1 + 0xb) = 0x70" (pointer_expression "*(undefined1 *)((int)param_1 + 0xb)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0xb)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0xb)" (( "(") (binary_expression "(int)param_1 + 0xb" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "0x70")) (; ";")) (if_statement "if (param_4 == (undefined *)0x0) {\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }" (if "if") (parenthesized_expression "(param_4 == (undefined *)0x0)" (( "(") (binary_expression "param_4 == (undefined *)0x0" (identifier "param_4") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_4 = PTR_LAB_000f52c8 + 0x2470;\n  }" ({ "{") (expression_statement "param_4 = PTR_LAB_000f52c8 + 0x2470;" (assignment_expression "param_4 = PTR_LAB_000f52c8 + 0x2470" (identifier "param_4") (= "=") (binary_expression "PTR_LAB_000f52c8 + 0x2470" (identifier "PTR_LAB_000f52c8") (+ "+") (number_literal "0x2470"))) (; ";")) (} "}"))) (expression_statement "param_1[9] = param_4;" (assignment_expression "param_1[9] = param_4" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "param_4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1
               (type_1 *pCtx,void *pPtr,char *var_2,type_2 *var_4)

{
  type_3 *p;
  
  p = pCtx->pOut;
  if (((p->flags & 0x2400) != 0) || (p->szMalloc != 0)) {
    var_1(p);
  }
  if (var_2 == (char *)0x0) {
    var_2 = var_3 + -0x543c;
  }
  (p->u).var_2 = var_2;
  p->z = (char *)pPtr;
  p->flags = 0x8601;
  p->eSubtype = 'p';
  if (var_4 == (type_2 *)0x0) {
    var_4 = (type_2 *)(var_5 + 0x2470);
  }
  p->xDel = var_4;
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (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))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement))))

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

{
  param_1 = (undefined4 *)*param_1;
  if (((*(ushort *)(param_1 + 2) & 0x2400) != 0) || (param_1[6] != 0)) {
    FUN_00028f1c(param_1);
  }
  if (param_3 == (undefined *)0x0) {
    param_3 = PTR_DAT_000f52d4 + -0x543c;
  }
  *param_1 = param_3;
  param_1[4] = param_2;
  *(undefined2 *)(param_1 + 2) = 0x8601;
  *(undefined1 *)((int)param_1 + 0xb) = 0x70;
  if (param_4 == (undefined *)0x0) {
    param_4 = PTR_LAB_000f52c8 + 0x2470;
  }
  param_1[9] = param_4;
  return;
}

