
void sqlite3VtabUnlock(VTable *pVTab)

{
  sqlite3 *db;
  sqlite3_vtab *psVar1;
  int iVar2;
  
  db = pVTab->db;
  iVar2 = pVTab->nRef + -1;
  pVTab->nRef = iVar2;
  if (iVar2 == 0) {
    psVar1 = pVTab->pVtab;
    if (psVar1 != (sqlite3_vtab *)0x0) {
      (*psVar1->pModule->xDisconnect)(psVar1);
    }
    sqlite3DbFree(db,pVTab);
  }
  return;
}



void FUN_00141ea9(undefined8 *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  uVar2 = *param_1;
  iVar1 = *(int *)(param_1 + 3);
  *(int *)(param_1 + 3) = iVar1 + -1;
  if (iVar1 + -1 == 0) {
    if ((long *)param_1[2] != (long *)0x0) {
      (**(code **)(*(long *)param_1[2] + 0x20))();
    }
    FUN_00141394(uVar2,param_1);
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,qword ptr [RDI]
MOV EAX,dword ptr [RDI + 0x18]
SUB EAX,0x1
MOV dword ptr [RDI + 0x18],EAX
JNZ 0x00141eda
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x10]
TEST RDI,RDI
JZ 0x00141ecf
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x20]
MOV RSI,RBX
MOV RDI,RBP
CALL 0x00141394
ADD RSP,0x8
POP RBX
POP RBP
RET
(translation_unit "void FUN_00141ea9(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00141ea9(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00141ea9(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 3);" (assignment_expression "iVar1 = *(int *)(param_1 + 3)" identifier = (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 3) = iVar1 + -1;" (assignment_expression "*(int *)(param_1 + 3) = iVar1 + -1" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }" if (parenthesized_expression "(iVar1 + -1 == 0)" ( (binary_expression "iVar1 + -1 == 0" (binary_expression "iVar1 + -1" identifier + number_literal) == number_literal) )) (compound_statement "{\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }" { (if_statement "if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }" if (parenthesized_expression "((long *)param_1[2] != (long *)0x0)" ( (binary_expression "(long *)param_1[2] != (long *)0x0" (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }" { (expression_statement "(**(code **)(*(long *)param_1[2] + 0x20))();" (call_expression "(**(code **)(*(long *)param_1[2] + 0x20))()" (parenthesized_expression "(**(code **)(*(long *)param_1[2] + 0x20))" ( (pointer_expression "**(code **)(*(long *)param_1[2] + 0x20)" * (pointer_expression "*(code **)(*(long *)param_1[2] + 0x20)" * (cast_expression "(code **)(*(long *)param_1[2] + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[2] + 0x20)" ( (binary_expression "*(long *)param_1[2] + 0x20" (pointer_expression "*(long *)param_1[2]" * (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00141394(uVar2,param_1);" (call_expression "FUN_00141394(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3VtabUnlock(VTable *pVTab)\n\n{\n  sqlite3 *db;\n  sqlite3_vtab *psVar1;\n  int iVar2;\n  \n  db = pVTab->db;\n  iVar2 = pVTab->nRef + -1;\n  pVTab->nRef = iVar2;\n  if (iVar2 == 0) {\n    psVar1 = pVTab->pVtab;\n    if (psVar1 != (sqlite3_vtab *)0x0) {\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }\n    sqlite3DbFree(db,pVTab);\n  }\n  return;\n}\n\n" (function_definition "void sqlite3VtabUnlock(VTable *pVTab)\n\n{\n  sqlite3 *db;\n  sqlite3_vtab *psVar1;\n  int iVar2;\n  \n  db = pVTab->db;\n  iVar2 = pVTab->nRef + -1;\n  pVTab->nRef = iVar2;\n  if (iVar2 == 0) {\n    psVar1 = pVTab->pVtab;\n    if (psVar1 != (sqlite3_vtab *)0x0) {\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }\n    sqlite3DbFree(db,pVTab);\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3VtabUnlock(VTable *pVTab)" identifier (parameter_list "(VTable *pVTab)" ( (parameter_declaration "VTable *pVTab" type_identifier (pointer_declarator "*pVTab" * identifier)) ))) (compound_statement "{\n  sqlite3 *db;\n  sqlite3_vtab *psVar1;\n  int iVar2;\n  \n  db = pVTab->db;\n  iVar2 = pVTab->nRef + -1;\n  pVTab->nRef = iVar2;\n  if (iVar2 == 0) {\n    psVar1 = pVTab->pVtab;\n    if (psVar1 != (sqlite3_vtab *)0x0) {\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }\n    sqlite3DbFree(db,pVTab);\n  }\n  return;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "sqlite3_vtab *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "db = pVTab->db;" (assignment_expression "db = pVTab->db" identifier = (field_expression "pVTab->db" identifier -> field_identifier)) ;) (expression_statement "iVar2 = pVTab->nRef + -1;" (assignment_expression "iVar2 = pVTab->nRef + -1" identifier = (binary_expression "pVTab->nRef + -1" (field_expression "pVTab->nRef" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pVTab->nRef = iVar2;" (assignment_expression "pVTab->nRef = iVar2" (field_expression "pVTab->nRef" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 == 0) {\n    psVar1 = pVTab->pVtab;\n    if (psVar1 != (sqlite3_vtab *)0x0) {\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }\n    sqlite3DbFree(db,pVTab);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    psVar1 = pVTab->pVtab;\n    if (psVar1 != (sqlite3_vtab *)0x0) {\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }\n    sqlite3DbFree(db,pVTab);\n  }" { (expression_statement "psVar1 = pVTab->pVtab;" (assignment_expression "psVar1 = pVTab->pVtab" identifier = (field_expression "pVTab->pVtab" identifier -> field_identifier)) ;) (if_statement "if (psVar1 != (sqlite3_vtab *)0x0) {\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }" if (parenthesized_expression "(psVar1 != (sqlite3_vtab *)0x0)" ( (binary_expression "psVar1 != (sqlite3_vtab *)0x0" identifier != (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*psVar1->pModule->xDisconnect)(psVar1);\n    }" { (expression_statement "(*psVar1->pModule->xDisconnect)(psVar1);" (call_expression "(*psVar1->pModule->xDisconnect)(psVar1)" (parenthesized_expression "(*psVar1->pModule->xDisconnect)" ( (pointer_expression "*psVar1->pModule->xDisconnect" * (field_expression "psVar1->pModule->xDisconnect" (field_expression "psVar1->pModule" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(psVar1)" ( identifier ))) ;) })) (expression_statement "sqlite3DbFree(db,pVTab);" (call_expression "sqlite3DbFree(db,pVTab)" identifier (argument_list "(db,pVTab)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00141ea9(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00141ea9(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00141ea9(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 3);" (assignment_expression "iVar1 = *(int *)(param_1 + 3)" identifier = (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 3) = iVar1 + -1;" (assignment_expression "*(int *)(param_1 + 3) = iVar1 + -1" (pointer_expression "*(int *)(param_1 + 3)" * (cast_expression "(int *)(param_1 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) )))) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (if_statement "if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }" if (parenthesized_expression "(iVar1 + -1 == 0)" ( (binary_expression "iVar1 + -1 == 0" (binary_expression "iVar1 + -1" identifier + number_literal) == number_literal) )) (compound_statement "{\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }" { (if_statement "if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }" if (parenthesized_expression "((long *)param_1[2] != (long *)0x0)" ( (binary_expression "(long *)param_1[2] != (long *)0x0" (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }" { (expression_statement "(**(code **)(*(long *)param_1[2] + 0x20))();" (call_expression "(**(code **)(*(long *)param_1[2] + 0x20))()" (parenthesized_expression "(**(code **)(*(long *)param_1[2] + 0x20))" ( (pointer_expression "**(code **)(*(long *)param_1[2] + 0x20)" * (pointer_expression "*(code **)(*(long *)param_1[2] + 0x20)" * (cast_expression "(code **)(*(long *)param_1[2] + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[2] + 0x20)" ( (binary_expression "*(long *)param_1[2] + 0x20" (pointer_expression "*(long *)param_1[2]" * (cast_expression "(long *)param_1[2]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00141394(uVar2,param_1);" (call_expression "FUN_00141394(uVar2,param_1)" identifier (argument_list "(uVar2,param_1)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) 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 * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00141ea9(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00141ea9(undefined8 *param_1)" (identifier "FUN_00141ea9") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = *(int *)(param_1 + 3);\n  *(int *)(param_1 + 3) = iVar1 + -1;\n  if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 3);" (assignment_expression "iVar1 = *(int *)(param_1 + 3)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 3) = iVar1 + -1;" (assignment_expression "*(int *)(param_1 + 3) = iVar1 + -1" (pointer_expression "*(int *)(param_1 + 3)" (* "*") (cast_expression "(int *)(param_1 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")")))) (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar1 + -1 == 0) {\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }" (if "if") (parenthesized_expression "(iVar1 + -1 == 0)" (( "(") (binary_expression "iVar1 + -1 == 0" (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }\n    FUN_00141394(uVar2,param_1);\n  }" ({ "{") (if_statement "if ((long *)param_1[2] != (long *)0x0) {\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }" (if "if") (parenthesized_expression "((long *)param_1[2] != (long *)0x0)" (( "(") (binary_expression "(long *)param_1[2] != (long *)0x0" (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (**(code **)(*(long *)param_1[2] + 0x20))();\n    }" ({ "{") (expression_statement "(**(code **)(*(long *)param_1[2] + 0x20))();" (call_expression "(**(code **)(*(long *)param_1[2] + 0x20))()" (parenthesized_expression "(**(code **)(*(long *)param_1[2] + 0x20))" (( "(") (pointer_expression "**(code **)(*(long *)param_1[2] + 0x20)" (* "*") (pointer_expression "*(code **)(*(long *)param_1[2] + 0x20)" (* "*") (cast_expression "(code **)(*(long *)param_1[2] + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)param_1[2] + 0x20)" (( "(") (binary_expression "*(long *)param_1[2] + 0x20" (pointer_expression "*(long *)param_1[2]" (* "*") (cast_expression "(long *)param_1[2]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00141394(uVar2,param_1);" (call_expression "FUN_00141394(uVar2,param_1)" (identifier "FUN_00141394") (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pVTab)

{
  type_2 *db;
  type_3 *var_2;
  int var_1;
  
  db = pVTab->db;
  var_1 = pVTab->nRef + -1;
  pVTab->nRef = var_1;
  if (var_1 == 0) {
    var_2 = pVTab->pVtab;
    if (var_2 != (type_3 *)0x0) {
      (*var_2->pModule->xDisconnect)(var_2);
    }
    var_3(db,pVTab);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  uVar2 = *param_1;
  iVar1 = *(int *)(param_1 + 3);
  *(int *)(param_1 + 3) = iVar1 + -1;
  if (iVar1 + -1 == 0) {
    if ((long *)param_1[2] != (long *)0x0) {
      (**(code **)(*(long *)param_1[2] + 0x20))();
    }
    FUN_00141394(uVar2,param_1);
  }
  return;
}

