
void countFinalize(sqlite3_context *context)

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



void FUN_001389f0(undefined8 param_1)

{
  undefined8 *puVar1;
  undefined8 uVar2;
  
  puVar1 = (undefined8 *)FUN_00138650(param_1,0);
  uVar2 = 0;
  if (puVar1 != (undefined8 *)0x0) {
    uVar2 = *puVar1;
  }
  FUN_0011a0c0(param_1,uVar2);
  return;
}


PUSH RBX
XOR ESI,ESI
MOV RBX,RDI
CALL 0x00138650
XOR ESI,ESI
TEST RAX,RAX
JZ 0x00138a05
MOV RSI,qword ptr [RAX]
MOV RDI,RBX
POP RBX
JMP 0x0011a0c0
(translation_unit "void FUN_001389f0(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}\n\n" (function_definition "void FUN_001389f0(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_001389f0(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined8 *)FUN_00138650(param_1,0);" (assignment_expression "puVar1 = (undefined8 *)FUN_00138650(param_1,0)" identifier = (cast_expression "(undefined8 *)FUN_00138650(param_1,0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00138650(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\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    uVar2 = *puVar1;\n  }" { (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) })) (expression_statement "FUN_0011a0c0(param_1,uVar2);" (call_expression "FUN_0011a0c0(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void countFinalize(sqlite3_context *context)\n\n{\n  i64 *piVar1;\n  i64 iVal;\n  \n  piVar1 = (i64 *)sqlite3_aggregate_context(context,0);\n  iVal = 0;\n  if (piVar1 != (i64 *)0x0) {\n    iVal = *piVar1;\n  }\n  sqlite3_result_int64(context,iVal);\n  return;\n}\n\n" (function_definition "void countFinalize(sqlite3_context *context)\n\n{\n  i64 *piVar1;\n  i64 iVal;\n  \n  piVar1 = (i64 *)sqlite3_aggregate_context(context,0);\n  iVal = 0;\n  if (piVar1 != (i64 *)0x0) {\n    iVal = *piVar1;\n  }\n  sqlite3_result_int64(context,iVal);\n  return;\n}" primitive_type (function_declarator "countFinalize(sqlite3_context *context)" identifier (parameter_list "(sqlite3_context *context)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) ))) (compound_statement "{\n  i64 *piVar1;\n  i64 iVal;\n  \n  piVar1 = (i64 *)sqlite3_aggregate_context(context,0);\n  iVal = 0;\n  if (piVar1 != (i64 *)0x0) {\n    iVal = *piVar1;\n  }\n  sqlite3_result_int64(context,iVal);\n  return;\n}" { (declaration "i64 *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "i64 iVal;" type_identifier identifier ;) (expression_statement "piVar1 = (i64 *)sqlite3_aggregate_context(context,0);" (assignment_expression "piVar1 = (i64 *)sqlite3_aggregate_context(context,0)" identifier = (cast_expression "(i64 *)sqlite3_aggregate_context(context,0)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(context,0)" identifier (argument_list "(context,0)" ( identifier , number_literal ))))) ;) (expression_statement "iVal = 0;" (assignment_expression "iVal = 0" identifier = number_literal) ;) (if_statement "if (piVar1 != (i64 *)0x0) {\n    iVal = *piVar1;\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    iVal = *piVar1;\n  }" { (expression_statement "iVal = *piVar1;" (assignment_expression "iVal = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) })) (expression_statement "sqlite3_result_int64(context,iVal);" (call_expression "sqlite3_result_int64(context,iVal)" identifier (argument_list "(context,iVal)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001389f0(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}\n\n" (function_definition "void FUN_001389f0(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_001389f0(undefined8 param_1)" identifier (parameter_list "(undefined8 param_1)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined8 *)FUN_00138650(param_1,0);" (assignment_expression "puVar1 = (undefined8 *)FUN_00138650(param_1,0)" identifier = (cast_expression "(undefined8 *)FUN_00138650(param_1,0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00138650(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\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    uVar2 = *puVar1;\n  }" { (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) })) (expression_statement "FUN_0011a0c0(param_1,uVar2);" (call_expression "FUN_0011a0c0(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , 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 ))))) ;) (expression_statement (assignment_expression 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 (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001389f0(undefined8 param_1)\n\n{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001389f0(undefined8 param_1)" (identifier "FUN_001389f0") (parameter_list "(undefined8 param_1)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 uVar2;\n  \n  puVar1 = (undefined8 *)FUN_00138650(param_1,0);\n  uVar2 = 0;\n  if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\n  }\n  FUN_0011a0c0(param_1,uVar2);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined8 *)FUN_00138650(param_1,0);" (assignment_expression "puVar1 = (undefined8 *)FUN_00138650(param_1,0)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)FUN_00138650(param_1,0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00138650(param_1,0)" (identifier "FUN_00138650") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar1 != (undefined8 *)0x0) {\n    uVar2 = *puVar1;\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    uVar2 = *puVar1;\n  }" ({ "{") (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (} "}"))) (expression_statement "FUN_0011a0c0(param_1,uVar2);" (call_expression "FUN_0011a0c0(param_1,uVar2)" (identifier "FUN_0011a0c0") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *context)

{
  type_2 *var_2;
  type_2 iVal;
  
  var_2 = (type_2 *)var_1(context,0);
  iVal = 0;
  if (var_2 != (type_2 *)0x0) {
    iVal = *var_2;
  }
  var_3(context,iVal);
  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))) (declaration type: (type_identifier) 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)))))) (expression_statement (assignment_expression left: (identifier) right: (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 (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

void MASKED(undefined8 param_1)

{
  undefined8 *puVar1;
  undefined8 uVar2;
  
  puVar1 = (undefined8 *)FUN_00138650(param_1,0);
  uVar2 = 0;
  if (puVar1 != (undefined8 *)0x0) {
    uVar2 = *puVar1;
  }
  FUN_0011a0c0(param_1,uVar2);
  return;
}

