
/* WARNING: Unknown calling convention */

int dbpageClose(sqlite3_vtab_cursor *pCursor)

{
  if ((DbPage *)pCursor[4].pVtab != (DbPage *)0x0) {
    sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);
  }
  sqlite3_free(pCursor);
  return 0;
}



undefined4 FUN_0009b3f0(int param_1)

{
  if (*(int *)(param_1 + 0x10) != 0) {
    FUN_0009afc0();
  }
  FUN_00042800(param_1);
  return 0;
}


PUSH EBX
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX + 0x10]
TEST EAX,EAX
JZ 0x0009b404
CALL 0x0009afc0
SUB ESP,0xc
PUSH EBX
CALL 0x00042800
ADD ESP,0x18
XOR EAX,EAX
POP EBX
RET
(translation_unit "undefined4 FUN_0009b3f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0009b3f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}" type_identifier (function_declarator "FUN_0009b3f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}" { (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0009afc0();\n  }" { (expression_statement "FUN_0009afc0();" (call_expression "FUN_0009afc0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00042800(param_1);" (call_expression "FUN_00042800(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint dbpageClose(sqlite3_vtab_cursor *pCursor)\n\n{\n  if ((DbPage *)pCursor[4].pVtab != (DbPage *)0x0) {\n    sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);\n  }\n  sqlite3_free(pCursor);\n  return 0;\n}\n\n" comment (function_definition "int dbpageClose(sqlite3_vtab_cursor *pCursor)\n\n{\n  if ((DbPage *)pCursor[4].pVtab != (DbPage *)0x0) {\n    sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);\n  }\n  sqlite3_free(pCursor);\n  return 0;\n}" primitive_type (function_declarator "dbpageClose(sqlite3_vtab_cursor *pCursor)" identifier (parameter_list "(sqlite3_vtab_cursor *pCursor)" ( (parameter_declaration "sqlite3_vtab_cursor *pCursor" type_identifier (pointer_declarator "*pCursor" * identifier)) ))) (compound_statement "{\n  if ((DbPage *)pCursor[4].pVtab != (DbPage *)0x0) {\n    sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);\n  }\n  sqlite3_free(pCursor);\n  return 0;\n}" { (if_statement "if ((DbPage *)pCursor[4].pVtab != (DbPage *)0x0) {\n    sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);\n  }" if (parenthesized_expression "((DbPage *)pCursor[4].pVtab != (DbPage *)0x0)" ( (binary_expression "(DbPage *)pCursor[4].pVtab != (DbPage *)0x0" (cast_expression "(DbPage *)pCursor[4].pVtab" ( (type_descriptor "DbPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[4].pVtab" (subscript_expression "pCursor[4]" identifier [ number_literal ]) . field_identifier)) != (cast_expression "(DbPage *)0x0" ( (type_descriptor "DbPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);\n  }" { (expression_statement "sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab);" (call_expression "sqlite3PagerUnrefPageOne((DbPage *)pCursor[4].pVtab)" identifier (argument_list "((DbPage *)pCursor[4].pVtab)" ( (cast_expression "(DbPage *)pCursor[4].pVtab" ( (type_descriptor "DbPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pCursor[4].pVtab" (subscript_expression "pCursor[4]" identifier [ number_literal ]) . field_identifier)) ))) ;) })) (expression_statement "sqlite3_free(pCursor);" (call_expression "sqlite3_free(pCursor)" identifier (argument_list "(pCursor)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0009b3f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0009b3f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}" type_identifier (function_declarator "FUN_0009b3f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}" { (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0009afc0();\n  }" { (expression_statement "FUN_0009afc0();" (call_expression "FUN_0009afc0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00042800(param_1);" (call_expression "FUN_00042800(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0009b3f0(int param_1)\n\n{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0009b3f0(int param_1)" (identifier "FUN_0009b3f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }\n  FUN_00042800(param_1);\n  return 0;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    FUN_0009afc0();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0009afc0();\n  }" ({ "{") (expression_statement "FUN_0009afc0();" (call_expression "FUN_0009afc0()" (identifier "FUN_0009afc0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00042800(param_1);" (call_expression "FUN_00042800(param_1)" (identifier "FUN_00042800") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *pCursor)

{
  if ((type_2 *)pCursor[4].pVtab != (type_2 *)0x0) {
    var_1((type_2 *)pCursor[4].pVtab);
  }
  var_2(pCursor);
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  if (*(int *)(param_1 + 0x10) != 0) {
    FUN_0009afc0();
  }
  FUN_00042800(param_1);
  return 0;
}

