
/* WARNING: Removing unreachable block (ram,0x0005b6cc) */

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

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  longlong lVar4;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18);
  if (piVar1 != (int *)0x0) {
    iVar3 = *piVar1;
    uVar2 = piVar1[1];
    if (iVar3 == 0 && uVar2 == 0) {
      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);
      *(longlong *)(piVar1 + 2) = lVar4;
      if (lVar4 < 1) {
        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);
        iVar3 = *piVar1;
        uVar2 = piVar1[1];
      }
      else {
        iVar3 = *piVar1;
        uVar2 = piVar1[1];
      }
    }
    piVar1[1] = uVar2 + 1;
    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;
  }
  return;
}



/* WARNING: Removing unreachable block (ram,0x0005b6cc) */

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

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  longlong lVar4;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);
  if (piVar1 != (int *)0x0) {
    iVar3 = *piVar1;
    uVar2 = piVar1[1];
    if (iVar3 == 0 && uVar2 == 0) {
      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);
      *(longlong *)(piVar1 + 2) = lVar4;
      if (lVar4 < 1) {
        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);
        iVar3 = *piVar1;
        uVar2 = piVar1[1];
      }
      else {
        iVar3 = *piVar1;
        uVar2 = piVar1[1];
      }
    }
    piVar1[1] = uVar2 + 1;
    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;
  }
  return;
}


lui gp,0xa
addiu gp,gp,0x1c84
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7df0(gp)
li a1,0x18
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,0x0005b688
_lw gp,0x10(sp)
lw v1,0x0(v0)
or s0,v0,zero
lw v0,0x4(v0)
or a0,v1,v0
beq a0,zero,0x0005b6a0
_lw t9,-0x7f2c(gp)
addiu a0,v0,0x1
sltu v0,a0,v0
sw a0,0x4(s0)
addu v0,v0,v1
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
jalr t9
_lw a0,0x0(s1)
lw gp,0x10(sp)
sw v0,0x8(s0)
blez v0,0x0005b6c4
_sw v1,0xc(s0)
lw v1,0x0(s0)
b 0x0005b674
_lw v0,0x4(s0)
bne v0,zero,0x0005b6d4
_lw a1,-0x7fd4(gp)
bne v1,zero,0x0005b6b8
_nop
li a2,-0x1
lw t9,-0x7d7c(gp)
or a0,s2,zero
jalr t9
_addiu a1,a1,0x7e10
lw v1,0x0(s0)
b 0x0005b674
_lw v0,0x4(s0)
(translation_unit "/* WARNING: Removing unreachable block (ram,0x0005b6cc) */\n\nvoid FUN_0005b61c(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0005b61c(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005b61c(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  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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 "longlong lVar4;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" (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,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" if (parenthesized_expression "(iVar3 == 0 && uVar2 == 0)" ( (binary_expression "iVar3 == 0 && uVar2 == 0" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "uVar2 == 0" identifier == number_literal)) )) (compound_statement "{\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" { (expression_statement "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);" (assignment_expression "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int64_000f5374" * (cast_expression "(code *)PTR_sqlite3_value_int64_000f5374" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "*(longlong *)(piVar1 + 2) = lVar4;" (assignment_expression "*(longlong *)(piVar1 + 2) = lVar4" (pointer_expression "*(longlong *)(piVar1 + 2)" * (cast_expression "(longlong *)(piVar1 + 2)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" if (parenthesized_expression "(lVar4 < 1)" ( (binary_expression "lVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" { (expression_statement "(*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);" (call_expression "(*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_000f5524)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_000f5524" * (cast_expression "(code *)PTR_sqlite3_result_error_000f5524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" ( identifier , (binary_expression "PTR_LAB_000f52cc + 0x7e10" identifier + number_literal) , number_literal ))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" else (compound_statement "{\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "piVar1[1] = uVar2 + 1;" (assignment_expression "piVar1[1] = uVar2 + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;" (assignment_expression "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar2 + 1 < uVar2) + iVar3" (call_expression "(uint)(uVar2 + 1 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 + 1 < uVar2)" ( (binary_expression "uVar2 + 1 < uVar2" (binary_expression "uVar2 + 1" identifier + number_literal) < identifier) ))) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Removing unreachable block (ram,0x0005b6cc) */\n\nvoid ntileStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}\n\n" comment (function_definition "void ntileStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}" primitive_type (function_declarator "ntileStepFunc(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  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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 "longlong lVar4;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(pCtx,0x18)" (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,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" if (parenthesized_expression "(iVar3 == 0 && uVar2 == 0)" ( (binary_expression "iVar3 == 0 && uVar2 == 0" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "uVar2 == 0" identifier == number_literal)) )) (compound_statement "{\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" { (expression_statement "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg);" (assignment_expression "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)(*apArg)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int64_000f5374" * (cast_expression "(code *)PTR_sqlite3_value_int64_000f5374" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*apArg)" ( (pointer_expression "*apArg" * identifier) )))) ;) (expression_statement "*(longlong *)(piVar1 + 2) = lVar4;" (assignment_expression "*(longlong *)(piVar1 + 2) = lVar4" (pointer_expression "*(longlong *)(piVar1 + 2)" * (cast_expression "(longlong *)(piVar1 + 2)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" if (parenthesized_expression "(lVar4 < 1)" ( (binary_expression "lVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" { (expression_statement "(*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff);" (call_expression "(*(code *)PTR_sqlite3_result_error_000f5524)(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_000f5524)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_000f5524" * (cast_expression "(code *)PTR_sqlite3_result_error_000f5524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCtx,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" ( identifier , (binary_expression "PTR_LAB_000f52cc + 0x7e10" identifier + number_literal) , number_literal ))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" else (compound_statement "{\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "piVar1[1] = uVar2 + 1;" (assignment_expression "piVar1[1] = uVar2 + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;" (assignment_expression "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar2 + 1 < uVar2) + iVar3" (call_expression "(uint)(uVar2 + 1 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 + 1 < uVar2)" ( (binary_expression "uVar2 + 1 < uVar2" (binary_expression "uVar2 + 1" identifier + number_literal) < identifier) ))) + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005b61c(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0005b61c(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0005b61c(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  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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 "longlong lVar4;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" identifier = (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" (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,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" if (parenthesized_expression "(iVar3 == 0 && uVar2 == 0)" ( (binary_expression "iVar3 == 0 && uVar2 == 0" (binary_expression "iVar3 == 0" identifier == number_literal) && (binary_expression "uVar2 == 0" identifier == number_literal)) )) (compound_statement "{\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" { (expression_statement "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);" (assignment_expression "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3)" identifier = (call_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)" ( (pointer_expression "*(code *)PTR_sqlite3_value_int64_000f5374" * (cast_expression "(code *)PTR_sqlite3_value_int64_000f5374" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "*(longlong *)(piVar1 + 2) = lVar4;" (assignment_expression "*(longlong *)(piVar1 + 2) = lVar4" (pointer_expression "*(longlong *)(piVar1 + 2)" * (cast_expression "(longlong *)(piVar1 + 2)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 2)" ( (binary_expression "piVar1 + 2" identifier + number_literal) )))) = identifier) ;) (if_statement "if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" if (parenthesized_expression "(lVar4 < 1)" ( (binary_expression "lVar4 < 1" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" { (expression_statement "(*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);" (call_expression "(*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_000f5524)" ( (pointer_expression "*(code *)PTR_sqlite3_result_error_000f5524" * (cast_expression "(code *)PTR_sqlite3_result_error_000f5524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" ( identifier , (binary_expression "PTR_LAB_000f52cc + 0x7e10" identifier + number_literal) , number_literal ))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" else (compound_statement "{\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" { (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" identifier = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "piVar1[1] = uVar2 + 1;" (assignment_expression "piVar1[1] = uVar2 + 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;" (assignment_expression "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3" (pointer_expression "*piVar1" * identifier) = (binary_expression "(uint)(uVar2 + 1 < uVar2) + iVar3" (call_expression "(uint)(uVar2 + 1 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 + 1 < uVar2)" ( (binary_expression "uVar2 + 1 < uVar2" (binary_expression "uVar2 + 1" identifier + number_literal) < identifier) ))) + 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 IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) < IDENT) ))) + IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0005b61c(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005b61c(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0005b61c") (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  uint uVar2;\n  int iVar3;\n  longlong lVar4;\n  \n  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);\n  if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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 "longlong lVar4;" (type_identifier "longlong") (identifier "lVar4") (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18)" (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,0x18)" (( "(") (identifier "param_1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\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    iVar3 = *piVar1;\n    uVar2 = piVar1[1];\n    if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }\n    piVar1[1] = uVar2 + 1;\n    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;\n  }" ({ "{") (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" (identifier "uVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar3 == 0 && uVar2 == 0) {\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 == 0 && uVar2 == 0)" (( "(") (binary_expression "iVar3 == 0 && uVar2 == 0" (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (&& "&&") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);\n      *(longlong *)(piVar1 + 2) = lVar4;\n      if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n    }" ({ "{") (expression_statement "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);" (assignment_expression "lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3)" (identifier "lVar4") (= "=") (call_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3)" (parenthesized_expression "(*(code *)PTR_sqlite3_value_int64_000f5374)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_value_int64_000f5374" (* "*") (cast_expression "(code *)PTR_sqlite3_value_int64_000f5374" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_value_int64_000f5374"))) () ")")) (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "*(longlong *)(piVar1 + 2) = lVar4;" (assignment_expression "*(longlong *)(piVar1 + 2) = lVar4" (pointer_expression "*(longlong *)(piVar1 + 2)" (* "*") (cast_expression "(longlong *)(piVar1 + 2)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 2)" (( "(") (binary_expression "piVar1 + 2" (identifier "piVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "lVar4")) (; ";")) (if_statement "if (lVar4 < 1) {\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }\n      else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" (if "if") (parenthesized_expression "(lVar4 < 1)" (( "(") (binary_expression "lVar4 < 1" (identifier "lVar4") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" ({ "{") (expression_statement "(*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);" (call_expression "(*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" (parenthesized_expression "(*(code *)PTR_sqlite3_result_error_000f5524)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_result_error_000f5524" (* "*") (cast_expression "(code *)PTR_sqlite3_result_error_000f5524" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_result_error_000f5524"))) () ")")) (argument_list "(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_000f52cc + 0x7e10" (identifier "PTR_LAB_000f52cc") (+ "+") (number_literal "0x7e10")) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" (identifier "uVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" (else "else") (compound_statement "{\n        iVar3 = *piVar1;\n        uVar2 = piVar1[1];\n      }" ({ "{") (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "uVar2 = piVar1[1];" (assignment_expression "uVar2 = piVar1[1]" (identifier "uVar2") (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "piVar1[1] = uVar2 + 1;" (assignment_expression "piVar1[1] = uVar2 + 1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;" (assignment_expression "*piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "(uint)(uVar2 + 1 < uVar2) + iVar3" (call_expression "(uint)(uVar2 + 1 < uVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 + 1 < uVar2)" (( "(") (binary_expression "uVar2 + 1 < uVar2" (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1")) (< "<") (identifier "uVar2")) () ")"))) (+ "+") (identifier "iVar3"))) (; ";")) (} "}"))) (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: (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: (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: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) 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: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) right: (identifier)))))) (return_statement))))

/* WARNING: Removing unreachable block (ram,0x0005b6cc) */

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

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  longlong lVar4;
  
  piVar1 = (int *)(*(code *)PTR_sqlite3_aggregate_context_000f54b0)(param_1,0x18);
  if (piVar1 != (int *)0x0) {
    iVar3 = *piVar1;
    uVar2 = piVar1[1];
    if (iVar3 == 0 && uVar2 == 0) {
      lVar4 = (*(code *)PTR_sqlite3_value_int64_000f5374)(*param_3);
      *(longlong *)(piVar1 + 2) = lVar4;
      if (lVar4 < 1) {
        (*(code *)PTR_sqlite3_result_error_000f5524)(param_1,PTR_LAB_000f52cc + 0x7e10,0xffffffff);
        iVar3 = *piVar1;
        uVar2 = piVar1[1];
      }
      else {
        iVar3 = *piVar1;
        uVar2 = piVar1[1];
      }
    }
    piVar1[1] = uVar2 + 1;
    *piVar1 = (uint)(uVar2 + 1 < uVar2) + iVar3;
  }
  return;
}

