
void rankValueFunc(sqlite3_context *pCtx)

{
  i64 *piVar1;
  
  piVar1 = (i64 *)sqlite3_aggregate_context(pCtx,0x18);
  if (piVar1 != (i64 *)0x0) {
    sqlite3_result_int64(pCtx,*piVar1);
    *piVar1 = 0;
  }
  return;
}



void FUN_0012414b(undefined8 param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);
  if (puVar1 != (undefined8 *)0x0) {
    sqlite3_result_int64(param_1,*puVar1);
    *puVar1 = 0;
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
MOV ESI,0x18
CALL 0x0010c2f0
TEST RAX,RAX
JZ 0x00124178
MOV RBX,RAX
MOV RSI,qword ptr [RAX]
MOV RDI,RBP
CALL 0x0010c820
MOV qword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_0012414b(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0012414b(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0012414b(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);" (assignment_expression "puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18)" identifier = (cast_expression "(undefined8 *)sqlite3_aggregate_context(param_1,0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }" { (expression_statement "sqlite3_result_int64(param_1,*puVar1);" (call_expression "sqlite3_result_int64(param_1,*puVar1)" identifier (argument_list "(param_1,*puVar1)" ( identifier , (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void rankValueFunc(sqlite3_context *pCtx)\n\n{\n  i64 *piVar1;\n  \n  piVar1 = (i64 *)sqlite3_aggregate_context(pCtx,0x18);\n  if (piVar1 != (i64 *)0x0) {\n    sqlite3_result_int64(pCtx,*piVar1);\n    *piVar1 = 0;\n  }\n  return;\n}\n\n" (function_definition "void rankValueFunc(sqlite3_context *pCtx)\n\n{\n  i64 *piVar1;\n  \n  piVar1 = (i64 *)sqlite3_aggregate_context(pCtx,0x18);\n  if (piVar1 != (i64 *)0x0) {\n    sqlite3_result_int64(pCtx,*piVar1);\n    *piVar1 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "rankValueFunc(sqlite3_context *pCtx)" identifier (parameter_list "(sqlite3_context *pCtx)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  i64 *piVar1;\n  \n  piVar1 = (i64 *)sqlite3_aggregate_context(pCtx,0x18);\n  if (piVar1 != (i64 *)0x0) {\n    sqlite3_result_int64(pCtx,*piVar1);\n    *piVar1 = 0;\n  }\n  return;\n}" { (declaration "i64 *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = (i64 *)sqlite3_aggregate_context(pCtx,0x18);" (assignment_expression "piVar1 = (i64 *)sqlite3_aggregate_context(pCtx,0x18)" identifier = (cast_expression "(i64 *)sqlite3_aggregate_context(pCtx,0x18)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(pCtx,0x18)" identifier (argument_list "(pCtx,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar1 != (i64 *)0x0) {\n    sqlite3_result_int64(pCtx,*piVar1);\n    *piVar1 = 0;\n  }" if (parenthesized_expression "(piVar1 != (i64 *)0x0)" ( (binary_expression "piVar1 != (i64 *)0x0" identifier != (cast_expression "(i64 *)0x0" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3_result_int64(pCtx,*piVar1);\n    *piVar1 = 0;\n  }" { (expression_statement "sqlite3_result_int64(pCtx,*piVar1);" (call_expression "sqlite3_result_int64(pCtx,*piVar1)" identifier (argument_list "(pCtx,*piVar1)" ( identifier , (pointer_expression "*piVar1" * identifier) ))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0012414b(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0012414b(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0012414b(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);" (assignment_expression "puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18)" identifier = (cast_expression "(undefined8 *)sqlite3_aggregate_context(param_1,0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }" if (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" ( (binary_expression "puVar1 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }" { (expression_statement "sqlite3_result_int64(param_1,*puVar1);" (call_expression "sqlite3_result_int64(param_1,*puVar1)" identifier (argument_list "(param_1,*puVar1)" ( identifier , (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })) (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) ;) (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 { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0012414b(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012414b(undefined8 param_1)" (identifier "FUN_0012414b") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);\n  if (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);" (assignment_expression "puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)sqlite3_aggregate_context(param_1,0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (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 (puVar1 != (undefined8 *)0x0) {\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 != (undefined8 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    sqlite3_result_int64(param_1,*puVar1);\n    *puVar1 = 0;\n  }" ({ "{") (expression_statement "sqlite3_result_int64(param_1,*puVar1);" (call_expression "sqlite3_result_int64(param_1,*puVar1)" (identifier "sqlite3_result_int64") (argument_list "(param_1,*puVar1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pCtx)

{
  type_2 *var_2;
  
  var_2 = (type_2 *)var_1(pCtx,0x18);
  if (var_2 != (type_2 *)0x0) {
    var_3(pCtx,*var_2);
    *var_2 = 0;
  }
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (return_statement))))

void MASKED(undefined8 param_1)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)sqlite3_aggregate_context(param_1,0x18);
  if (puVar1 != (undefined8 *)0x0) {
    sqlite3_result_int64(param_1,*puVar1);
    *puVar1 = 0;
  }
  return;
}

