
void countStep(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8);
  if ((argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)) {
    return;
  }
  if (piVar1 != (int *)0x0) {
    uVar2 = piVar1[1];
    uVar4 = uVar2 + 1;
    piVar1[1] = uVar4;
    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;
  }
  return;
}



void FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);
  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))
  {
    return;
  }
  if (piVar1 != (int *)0x0) {
    uVar2 = piVar1[1];
    uVar4 = uVar2 + 1;
    piVar1[1] = uVar4;
    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;
  }
  return;
}


lui gp,0xb
addiu gp,gp,-0x537c
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7df0(gp)
sw s1,0x1c(sp)
or s1,a1,zero
li a1,0x8
sw gp,0x10(sp)
sw s2,0x20(sp)
sw s0,0x18(sp)
sw ra,0x24(sp)
jalr t9
_or s2,a2,zero
lw gp,0x10(sp)
bne s1,zero,0x0005269c
_or s0,v0,zero
beq s0,zero,0x00052688
_lw ra,0x24(sp)
lw v0,0x4(s0)
lw a0,0x0(s0)
addiu v1,v0,0x1
sltu v0,v1,v0
sw v1,0x4(s0)
addu v0,v0,a0
sw v0,0x0(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7db4(gp)
jalr t9
_lw a0,0x0(s2)
li v1,0x5
bne v0,v1,0x00052660
_lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier 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 ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }" if (parenthesized_expression "((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))" ( (binary_expression "(param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5)" ( (comma_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)" ( (pointer_expression "*(code *)PTR_sqlite3_value_type_000f54ec" * (cast_expression "(code *)PTR_sqlite3_value_type_000f54ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) , (binary_expression "iVar3 == 5" identifier == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\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    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }" { (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar2 + 1;" (assignment_expression "uVar4 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[1] = uVar4;" (assignment_expression "piVar1[1] = uVar4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar4 < uVar2) + *piVar1" (call_expression "(uint)(uVar4 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) ))) + (pointer_expression "*piVar1" * identifier))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void countStep(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8);\n  if ((argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)) {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}\n\n" (function_definition "void countStep(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8);\n  if ((argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)) {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" primitive_type (function_declarator "countStep(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8);\n  if ((argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)) {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(context,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 "(context,8)" ( identifier , number_literal ))))) ;) (if_statement "if ((argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)) {\n    return;\n  }" if (parenthesized_expression "((argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5))" ( (binary_expression "(argc != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)" (parenthesized_expression "(argc != 0)" ( (binary_expression "argc != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5)" ( (comma_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv), iVar3 == 5" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*argv)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)(*argv)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)" ( (pointer_expression "*(code *)PTR_sqlite3_value_type_000f54ec" * (cast_expression "(code *)PTR_sqlite3_value_type_000f54ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) )))) , (binary_expression "iVar3 == 5" identifier == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\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    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }" { (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar2 + 1;" (assignment_expression "uVar4 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[1] = uVar4;" (assignment_expression "piVar1[1] = uVar4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar4 < uVar2) + *piVar1" (call_expression "(uint)(uVar4 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) ))) + (pointer_expression "*piVar1" * identifier))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier 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 ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }" if (parenthesized_expression "((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))" ( (binary_expression "(param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5)" ( (comma_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)" ( (pointer_expression "*(code *)PTR_sqlite3_value_type_000f54ec" * (cast_expression "(code *)PTR_sqlite3_value_type_000f54ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) , (binary_expression "iVar3 == 5" identifier == number_literal)) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\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    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }" { (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = uVar2 + 1;" (assignment_expression "uVar4 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[1] = uVar4;" (assignment_expression "piVar1[1] = uVar4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar4 < uVar2) + *piVar1" (call_expression "(uint)(uVar4 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 < uVar2)" ( (binary_expression "uVar4 < uVar2" identifier < identifier) ))) + (pointer_expression "*piVar1" * identifier))) ;) })) (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 ;) (declaration TYPE 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 (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (pointer_expression * IDENT))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005261c(undefined4 param_1,int param_2,undefined4 *param_3)" (identifier "FUN_0005261c") (parameter_list "(undefined4 param_1,int param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);\n  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (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 ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))\n  {\n    return;\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))" (( "(") (binary_expression "(param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5)" (( "(") (comma_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5" (assignment_expression "iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_type_000f54ec)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_value_type_000f54ec" (* "*") (cast_expression "(code *)PTR_sqlite3_value_type_000f54ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_value_type_000f54ec"))) () ")")) (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (, ",") (binary_expression "iVar3 == 5" (identifier "iVar3") (== "==") (number_literal "5"))) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\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    uVar2 = piVar1[1];\n    uVar4 = uVar2 + 1;\n    piVar1[1] = uVar4;\n    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;\n  }" ({ "{") (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" (identifier "uVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar4 = uVar2 + 1;" (assignment_expression "uVar4 = uVar2 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1[1] = uVar4;" (assignment_expression "piVar1[1] = uVar4" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar4 < uVar2) + *piVar1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "(uint)(uVar4 < uVar2) + *piVar1" (call_expression "(uint)(uVar4 < uVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar4 < uVar2)" (( "(") (binary_expression "uVar4 < uVar2" (identifier "uVar4") (< "<") (identifier "uVar2")) () ")"))) (+ "+") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *context,int var_1,type_2 **argv)

{
  int *var_3;
  type_3 var_4;
  int var_2;
  type_3 var_5;
  
  var_3 = (int *)(*(type_4 *)PTR_sqlite3_aggregate_context_000f54b0)(context,8);
  if ((var_1 != 0) && (var_2 = (*(type_4 *)PTR_sqlite3_value_type_000f54ec)(*argv), var_2 == 5)) {
    return;
  }
  if (var_3 != (int *)0x0) {
    var_4 = var_3[1];
    var_5 = var_4 + 1;
    var_3[1] = var_5;
    *var_3 = (type_3)(var_5 < var_4) + *var_3;
  }
  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: (primitive_type) 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (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))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement))) (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 (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (pointer_expression argument: (identifier))))))) (return_statement))))

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

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,8);
  if ((param_2 != 0) && (iVar3 = (*(code *)PTR_sqlite3_value_type_000f54ec)(*param_3), iVar3 == 5))
  {
    return;
  }
  if (piVar1 != (int *)0x0) {
    uVar2 = piVar1[1];
    uVar4 = uVar2 + 1;
    piVar1[1] = uVar4;
    *piVar1 = (uint)(uVar4 < uVar2) + *piVar1;
  }
  return;
}

