
void sqlite3OsCloseFree(sqlite3_file *pFile)

{
  if (pFile->pMethods != (sqlite3_io_methods *)0x0) {
    (*pFile->pMethods->xClose)(pFile);
    pFile->pMethods = (sqlite3_io_methods *)0x0;
  }
  sqlite3_free(pFile);
  return;
}



void FUN_00119e70(long *param_1)

{
  if (*param_1 != 0) {
    (**(code **)(*param_1 + 8))();
    *param_1 = 0;
  }
  FUN_00119e00(param_1);
  return;
}


PUSH RBX
MOV RAX,qword ptr [RDI]
MOV RBX,RDI
TEST RAX,RAX
JZ 0x00119e86
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX],0x0
MOV RDI,RBX
POP RBX
JMP 0x00119e00
(translation_unit "void FUN_00119e70(long *param_1)\n\n{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00119e70(long *param_1)\n\n{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00119e70(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}" { (if_statement "if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }" { (expression_statement "(**(code **)(*param_1 + 8))();" (call_expression "(**(code **)(*param_1 + 8))()" (parenthesized_expression "(**(code **)(*param_1 + 8))" ( (pointer_expression "**(code **)(*param_1 + 8)" * (pointer_expression "*(code **)(*param_1 + 8)" * (cast_expression "(code **)(*param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (expression_statement "FUN_00119e00(param_1);" (call_expression "FUN_00119e00(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3OsCloseFree(sqlite3_file *pFile)\n\n{\n  if (pFile->pMethods != (sqlite3_io_methods *)0x0) {\n    (*pFile->pMethods->xClose)(pFile);\n    pFile->pMethods = (sqlite3_io_methods *)0x0;\n  }\n  sqlite3_free(pFile);\n  return;\n}\n\n" (function_definition "void sqlite3OsCloseFree(sqlite3_file *pFile)\n\n{\n  if (pFile->pMethods != (sqlite3_io_methods *)0x0) {\n    (*pFile->pMethods->xClose)(pFile);\n    pFile->pMethods = (sqlite3_io_methods *)0x0;\n  }\n  sqlite3_free(pFile);\n  return;\n}" primitive_type (function_declarator "sqlite3OsCloseFree(sqlite3_file *pFile)" identifier (parameter_list "(sqlite3_file *pFile)" ( (parameter_declaration "sqlite3_file *pFile" type_identifier (pointer_declarator "*pFile" * identifier)) ))) (compound_statement "{\n  if (pFile->pMethods != (sqlite3_io_methods *)0x0) {\n    (*pFile->pMethods->xClose)(pFile);\n    pFile->pMethods = (sqlite3_io_methods *)0x0;\n  }\n  sqlite3_free(pFile);\n  return;\n}" { (if_statement "if (pFile->pMethods != (sqlite3_io_methods *)0x0) {\n    (*pFile->pMethods->xClose)(pFile);\n    pFile->pMethods = (sqlite3_io_methods *)0x0;\n  }" if (parenthesized_expression "(pFile->pMethods != (sqlite3_io_methods *)0x0)" ( (binary_expression "pFile->pMethods != (sqlite3_io_methods *)0x0" (field_expression "pFile->pMethods" identifier -> field_identifier) != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*pFile->pMethods->xClose)(pFile);\n    pFile->pMethods = (sqlite3_io_methods *)0x0;\n  }" { (expression_statement "(*pFile->pMethods->xClose)(pFile);" (call_expression "(*pFile->pMethods->xClose)(pFile)" (parenthesized_expression "(*pFile->pMethods->xClose)" ( (pointer_expression "*pFile->pMethods->xClose" * (field_expression "pFile->pMethods->xClose" (field_expression "pFile->pMethods" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pFile)" ( identifier ))) ;) (expression_statement "pFile->pMethods = (sqlite3_io_methods *)0x0;" (assignment_expression "pFile->pMethods = (sqlite3_io_methods *)0x0" (field_expression "pFile->pMethods" identifier -> field_identifier) = (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "sqlite3_free(pFile);" (call_expression "sqlite3_free(pFile)" identifier (argument_list "(pFile)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00119e70(long *param_1)\n\n{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00119e70(long *param_1)\n\n{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00119e70(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}" { (if_statement "if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }" { (expression_statement "(**(code **)(*param_1 + 8))();" (call_expression "(**(code **)(*param_1 + 8))()" (parenthesized_expression "(**(code **)(*param_1 + 8))" ( (pointer_expression "**(code **)(*param_1 + 8)" * (pointer_expression "*(code **)(*param_1 + 8)" * (cast_expression "(code **)(*param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (expression_statement "FUN_00119e00(param_1);" (call_expression "FUN_00119e00(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00119e70(long *param_1)\n\n{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00119e70(long *param_1)" (identifier "FUN_00119e70") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }\n  FUN_00119e00(param_1);\n  return;\n}" ({ "{") (if_statement "if (*param_1 != 0) {\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(*param_1 + 8))();\n    *param_1 = 0;\n  }" ({ "{") (expression_statement "(**(code **)(*param_1 + 8))();" (call_expression "(**(code **)(*param_1 + 8))()" (parenthesized_expression "(**(code **)(*param_1 + 8))" (( "(") (pointer_expression "**(code **)(*param_1 + 8)" (* "*") (pointer_expression "*(code **)(*param_1 + 8)" (* "*") (cast_expression "(code **)(*param_1 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_00119e00(param_1);" (call_expression "FUN_00119e00(param_1)" (identifier "FUN_00119e00") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pFile)

{
  if (pFile->pMethods != (type_2 *)0x0) {
    (*pFile->pMethods->xClose)(pFile);
    pFile->pMethods = (type_2 *)0x0;
  }
  var_1(pFile);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(long *param_1)

{
  if (*param_1 != 0) {
    (**(code **)(*param_1 + 8))();
    *param_1 = 0;
  }
  FUN_00119e00(param_1);
  return;
}

