
void last_valueStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8);
  if (piVar1 != (int *)0x0) {
    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);
    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);
    *piVar1 = iVar2;
    if (iVar2 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);
      return;
    }
    piVar1[1] = piVar1[1] + 1;
  }
  return;
}



void FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);
  if (piVar1 != (int *)0x0) {
    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);
    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);
    *piVar1 = iVar2;
    if (iVar2 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);
      return;
    }
    piVar1[1] = piVar1[1] + 1;
  }
  return;
}


lui gp,0x9
addiu gp,gp,-0xee4
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7df0(gp)
li a1,0x8
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a0,zero
sw s1,0x1c(sp)
or s1,a2,zero
sw ra,0x24(sp)
jalr t9
_sw s0,0x18(sp)
beq v0,zero,0x0006e1fc
_lw gp,0x10(sp)
lw t9,-0x7e70(gp)
or s0,v0,zero
jalr t9
_lw a0,0x0(v0)
lw gp,0x10(sp)
lw t9,-0x7ec0(gp)
jalr t9
_lw a0,0x0(s1)
lw gp,0x10(sp)
beq v0,zero,0x0006e214
_sw v0,0x0(s0)
lw v0,0x4(s0)
addiu v0,v0,0x1
sw v0,0x4(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or a0,s2,zero
lw s1,0x1c(sp)
lw s2,0x20(sp)
lw s0,0x18(sp)
lw t9,-0x7f24(gp)
jr t9
_addiu sp,sp,0x28
(translation_unit "void FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" (parenthesized_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)" ( (pointer_expression "*(code *)PTR_sqlite3_aggregate_context_000f54b0" * (cast_expression "(code *)PTR_sqlite3_aggregate_context_000f54b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,8)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" { (expression_statement "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);" (call_expression "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_free_000f5430)" ( (pointer_expression "*(code *)PTR_sqlite3_value_free_000f5430" * (cast_expression "(code *)PTR_sqlite3_value_free_000f5430" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)" ( (pointer_expression "*(code *)PTR_sqlite3_value_dup_000f53e0" * (cast_expression "(code *)PTR_sqlite3_value_dup_000f53e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }" { comment comment (expression_statement "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);" (call_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_nomem_000f537c" * (cast_expression "(code *)PTR_sqlite3_result_error_nomem_000f537c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1[1] = piVar1[1] + 1;" (assignment_expression "piVar1[1] = piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void last_valueStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}\n\n" (function_definition "void last_valueStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" primitive_type (function_declarator "last_valueStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)" identifier (parameter_list "(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int nArg" primitive_type identifier) , (parameter_declaration "sqlite3_value **apArg" type_identifier (pointer_declarator "**apArg" * (pointer_declarator "*apArg" * identifier))) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,8)" (parenthesized_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)" ( (pointer_expression "*(code *)PTR_sqlite3_aggregate_context_000f54b0" * (cast_expression "(code *)PTR_sqlite3_aggregate_context_000f54b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCtx,8)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" { (expression_statement "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);" (call_expression "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_free_000f5430)" ( (pointer_expression "*(code *)PTR_sqlite3_value_free_000f5430" * (cast_expression "(code *)PTR_sqlite3_value_free_000f5430" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)(*apArg)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)" ( (pointer_expression "*(code *)PTR_sqlite3_value_dup_000f53e0" * (cast_expression "(code *)PTR_sqlite3_value_dup_000f53e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*apArg)" ( (pointer_expression "*apArg" * identifier) )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);\n      return;\n    }" { comment comment (expression_statement "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx);" (call_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(pCtx)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_nomem_000f537c" * (cast_expression "(code *)PTR_sqlite3_result_error_nomem_000f537c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCtx)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1[1] = piVar1[1] + 1;" (assignment_expression "piVar1[1] = piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" (parenthesized_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)" ( (pointer_expression "*(code *)PTR_sqlite3_aggregate_context_000f54b0" * (cast_expression "(code *)PTR_sqlite3_aggregate_context_000f54b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,8)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" { (expression_statement "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);" (call_expression "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_free_000f5430)" ( (pointer_expression "*(code *)PTR_sqlite3_value_free_000f5430" * (cast_expression "(code *)PTR_sqlite3_value_free_000f5430" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar1)" ( (pointer_expression "*piVar1" * identifier) ))) ;) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)" ( (pointer_expression "*(code *)PTR_sqlite3_value_dup_000f53e0" * (cast_expression "(code *)PTR_sqlite3_value_dup_000f53e0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }" { (expression_statement "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);" (call_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_nomem_000f537c" * (cast_expression "(code *)PTR_sqlite3_result_error_nomem_000f537c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "piVar1[1] = piVar1[1] + 1;" (assignment_expression "piVar1[1] = piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006e184(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0006e184") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8)" (parenthesized_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_aggregate_context_000f54b0" (* "*") (cast_expression "(code *)PTR_sqlite3_aggregate_context_000f54b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_aggregate_context_000f54b0"))) () ")")) (argument_list "(param_1,8)" (( "(") (identifier "param_1") (, ",") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);\n    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);\n    *piVar1 = iVar2;\n    if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }\n    piVar1[1] = piVar1[1] + 1;\n  }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);" (call_expression "(*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_free_000f5430)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_value_free_000f5430" (* "*") (cast_expression "(code *)PTR_sqlite3_value_free_000f5430" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_value_free_000f5430"))) () ")")) (argument_list "(*piVar1)" (( "(") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) () ")"))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);" (assignment_expression "iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_dup_000f53e0)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_value_dup_000f53e0" (* "*") (cast_expression "(code *)PTR_sqlite3_value_dup_000f53e0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_value_dup_000f53e0"))) () ")")) (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "*piVar1 = iVar2;" (assignment_expression "*piVar1 = iVar2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);" (call_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_nomem_000f537c)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_result_error_nomem_000f537c" (* "*") (cast_expression "(code *)PTR_sqlite3_result_error_nomem_000f537c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_result_error_nomem_000f537c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar1[1] = piVar1[1] + 1;" (assignment_expression "piVar1[1] = piVar1[1] + 1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))) (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 (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (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: (identifier)))) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (return_statement))))

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

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);
  if (piVar1 != (int *)0x0) {
    (*(code *)PTR_sqlite3_value_free_000f5430)(*piVar1);
    iVar2 = (*(code *)PTR_sqlite3_value_dup_000f53e0)(*param_3);
    *piVar1 = iVar2;
    if (iVar2 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006e22c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)PTR_sqlite3_result_error_nomem_000f537c)(param_1);
      return;
    }
    piVar1[1] = piVar1[1] + 1;
  }
  return;
}

