
void dense_rankValueFunc(sqlite3_context *pCtx)

{
  int *piVar1;
  uint uVar2;
  undefined1 *puVar3;
  undefined4 in_stack_fffffff4;
  
  puVar3 = &_gp;
  piVar1 = (int *)sqlite3_aggregate_context(pCtx,0x18);
  if (piVar1 != (int *)0x0) {
    if (piVar1[2] != 0 || piVar1[3] != 0) {
      uVar2 = piVar1[1] + 1;
      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;
      piVar1[1] = uVar2;
      piVar1[3] = 0;
      piVar1[2] = 0;
    }
    sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));
  }
  return;
}



void FUN_00080fa4(undefined4 param_1)

{
  int *piVar1;
  uint uVar2;
  
  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);
  if (piVar1 != (int *)0x0) {
    if (piVar1[2] != 0 || piVar1[3] != 0) {
      uVar2 = piVar1[1] + 1;
      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;
      piVar1[1] = uVar2;
      piVar1[3] = 0;
      piVar1[2] = 0;
    }
    sqlite3_result_int64(param_1);
  }
  return;
}


lui gp,0x11
addiu gp,gp,0x697c
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
li a1,0x18
lw t9,-0x7e4c(gp)
bal 0x00080884
_nop
lw gp,0x10(sp)
beq v0,zero,0x00081040
_lw ra,0x1c(sp)
lw v1,0x8(v0)
lw a0,0xc(v0)
or v1,v1,a0
beq v1,zero,0x00081020
_nop
lw a1,0x0(v0)
lw v1,0x4(v0)
addiu a0,v1,0x1
sltu v1,a0,v1
addu v1,v1,a1
sw v1,0x0(v0)
sw a0,0x4(v0)
or a1,zero,zero
or a0,zero,zero
sw a1,0xc(v0)
sw a0,0x8(v0)
lw a3,0x4(v0)
lw a2,0x0(v0)
or a0,s0,zero
lw t9,-0x7f3c(gp)
bal 0x00069a88
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_00080fa4(undefined4 param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00080fa4(undefined4 param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00080fa4(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);" (assignment_expression "piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18)" identifier = (cast_expression "(int *)sqlite3_aggregate_context(param_1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_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    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }" { (if_statement "if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" if (parenthesized_expression "(piVar1[2] != 0 || piVar1[3] != 0)" ( (binary_expression "piVar1[2] != 0 || piVar1[3] != 0" (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" { (expression_statement "uVar2 = piVar1[1] + 1;" (assignment_expression "uVar2 = piVar1[1] + 1" identifier = (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (call_expression "(uint)(uVar2 < (uint)piVar1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < (uint)piVar1[1])" ( (binary_expression "uVar2 < (uint)piVar1[1]" identifier < (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ))) + (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "piVar1[1] = uVar2;" (assignment_expression "piVar1[1] = uVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "sqlite3_result_int64(param_1);" (call_expression "sqlite3_result_int64(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void dense_rankValueFunc(sqlite3_context *pCtx)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  undefined4 in_stack_fffffff4;\n  \n  puVar3 = &_gp;\n  piVar1 = (int *)sqlite3_aggregate_context(pCtx,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));\n  }\n  return;\n}\n\n" (function_definition "void dense_rankValueFunc(sqlite3_context *pCtx)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  undefined4 in_stack_fffffff4;\n  \n  puVar3 = &_gp;\n  piVar1 = (int *)sqlite3_aggregate_context(pCtx,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));\n  }\n  return;\n}" primitive_type (function_declarator "dense_rankValueFunc(sqlite3_context *pCtx)" identifier (parameter_list "(sqlite3_context *pCtx)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  undefined4 in_stack_fffffff4;\n  \n  puVar3 = &_gp;\n  piVar1 = (int *)sqlite3_aggregate_context(pCtx,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 in_stack_fffffff4;" type_identifier identifier ;) (expression_statement "puVar3 = &_gp;" (assignment_expression "puVar3 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "piVar1 = (int *)sqlite3_aggregate_context(pCtx,0x18);" (assignment_expression "piVar1 = (int *)sqlite3_aggregate_context(pCtx,0x18)" identifier = (cast_expression "(int *)sqlite3_aggregate_context(pCtx,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(pCtx,0x18)" identifier (argument_list "(pCtx,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));\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    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));\n  }" { (if_statement "if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" if (parenthesized_expression "(piVar1[2] != 0 || piVar1[3] != 0)" ( (binary_expression "piVar1[2] != 0 || piVar1[3] != 0" (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" { (expression_statement "uVar2 = piVar1[1] + 1;" (assignment_expression "uVar2 = piVar1[1] + 1" identifier = (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (call_expression "(uint)(uVar2 < (uint)piVar1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < (uint)piVar1[1])" ( (binary_expression "uVar2 < (uint)piVar1[1]" identifier < (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ))) + (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "piVar1[1] = uVar2;" (assignment_expression "piVar1[1] = uVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4));" (call_expression "sqlite3_result_int64(pCtx,CONCAT44(puVar3,in_stack_fffffff4))" identifier (argument_list "(pCtx,CONCAT44(puVar3,in_stack_fffffff4))" ( identifier , (call_expression "CONCAT44(puVar3,in_stack_fffffff4)" identifier (argument_list "(puVar3,in_stack_fffffff4)" ( identifier , identifier ))) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00080fa4(undefined4 param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00080fa4(undefined4 param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00080fa4(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);" (assignment_expression "piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18)" identifier = (cast_expression "(int *)sqlite3_aggregate_context(param_1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_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    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }" { (if_statement "if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" if (parenthesized_expression "(piVar1[2] != 0 || piVar1[3] != 0)" ( (binary_expression "piVar1[2] != 0 || piVar1[3] != 0" (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" { (expression_statement "uVar2 = piVar1[1] + 1;" (assignment_expression "uVar2 = piVar1[1] + 1" identifier = (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (call_expression "(uint)(uVar2 < (uint)piVar1[1])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < (uint)piVar1[1])" ( (binary_expression "uVar2 < (uint)piVar1[1]" identifier < (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ))) + (pointer_expression "*piVar1" * identifier))) ;) (expression_statement "piVar1[1] = uVar2;" (assignment_expression "piVar1[1] = uVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "sqlite3_result_int64(param_1);" (call_expression "sqlite3_result_int64(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) || (binary_expression (subscript_expression IDENT [ LIT ]) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00080fa4(undefined4 param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00080fa4(undefined4 param_1)" (identifier "FUN_00080fa4") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  \n  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);" (assignment_expression "piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18)" (identifier "piVar1") (= "=") (cast_expression "(int *)sqlite3_aggregate_context(param_1,0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sqlite3_aggregate_context(param_1,0x18)" (identifier "sqlite3_aggregate_context") (argument_list "(param_1,0x18)" (( "(") (identifier "param_1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_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    if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }\n    sqlite3_result_int64(param_1);\n  }" ({ "{") (if_statement "if (piVar1[2] != 0 || piVar1[3] != 0) {\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" (if "if") (parenthesized_expression "(piVar1[2] != 0 || piVar1[3] != 0)" (( "(") (binary_expression "piVar1[2] != 0 || piVar1[3] != 0" (binary_expression "piVar1[2] != 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "piVar1[3] != 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      uVar2 = piVar1[1] + 1;\n      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;\n      piVar1[1] = uVar2;\n      piVar1[3] = 0;\n      piVar1[2] = 0;\n    }" ({ "{") (expression_statement "uVar2 = piVar1[1] + 1;" (assignment_expression "uVar2 = piVar1[1] + 1" (identifier "uVar2") (= "=") (binary_expression "piVar1[1] + 1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;" (assignment_expression "*piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "(uint)(uVar2 < (uint)piVar1[1]) + *piVar1" (call_expression "(uint)(uVar2 < (uint)piVar1[1])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 < (uint)piVar1[1])" (( "(") (binary_expression "uVar2 < (uint)piVar1[1]" (identifier "uVar2") (< "<") (cast_expression "(uint)piVar1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) () ")"))) (+ "+") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (expression_statement "piVar1[1] = uVar2;" (assignment_expression "piVar1[1] = uVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "sqlite3_result_int64(param_1);" (call_expression "sqlite3_result_int64(param_1)" (identifier "sqlite3_result_int64") (argument_list "(param_1)" (( "(") (identifier "param_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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator 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: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

void MASKED(undefined4 param_1)

{
  int *piVar1;
  uint uVar2;
  
  piVar1 = (int *)sqlite3_aggregate_context(param_1,0x18);
  if (piVar1 != (int *)0x0) {
    if (piVar1[2] != 0 || piVar1[3] != 0) {
      uVar2 = piVar1[1] + 1;
      *piVar1 = (uint)(uVar2 < (uint)piVar1[1]) + *piVar1;
      piVar1[1] = uVar2;
      piVar1[3] = 0;
      piVar1[2] = 0;
    }
    sqlite3_result_int64(param_1);
  }
  return;
}

