
void __regparm3 sqlite3VtabUnlock(VTable *pVTab)

{
  int *piVar1;
  sqlite3 *db;
  sqlite3_vtab *psVar2;
  
  piVar1 = &pVTab->nRef;
  *piVar1 = *piVar1 + -1;
  db = pVTab->db;
  if (*piVar1 == 0) {
    psVar2 = pVTab->pVtab;
    if (psVar2 != (sqlite3_vtab *)0x0) {
      (*psVar2->pModule->xDisconnect)(psVar2);
    }
    if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {
      measureAllocationSize(db,pVTab);
      return;
    }
    sqlite3_free(pVTab);
  }
  return;
}



void __regparm3 FUN_0005a530(int *param_1)

{
  int iVar1;
  int *piVar2;
  
  piVar2 = param_1 + 3;
  *piVar2 = *piVar2 + -1;
  iVar1 = *param_1;
  if (*piVar2 == 0) {
    piVar2 = (int *)param_1[2];
    if (piVar2 != (int *)0x0) {
      (**(code **)(*piVar2 + 0x10))(piVar2);
    }
    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {
      FUN_0003a540();
      return;
    }
    FUN_00044000(param_1);
  }
  return;
}


PUSH ESI
PUSH EBX
SUB ESP,0x4
SUB dword ptr [EAX + 0xc],0x1
MOV ESI,dword ptr [EAX]
JNZ 0x0005a56c
MOV EBX,EAX
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0005a552
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x10]
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0005a560
MOV EAX,dword ptr [ESI + 0x1e0]
TEST EAX,EAX
JNZ 0x0005a578
SUB ESP,0xc
PUSH EBX
CALL 0x00044000
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
ADD ESP,0x4
MOV EDX,EBX
MOV EAX,ESI
POP EBX
POP ESI
JMP 0x0003a540
(translation_unit "void __regparm3 FUN_0005a530(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005a530(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005a530(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = param_1 + 3;" (assignment_expression "piVar2 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*piVar2 = *piVar2 + -1;" (assignment_expression "*piVar2 = *piVar2 + -1" (pointer_expression "*piVar2" * identifier) = (binary_expression "*piVar2 + -1" (pointer_expression "*piVar2" * identifier) + number_literal)) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }" { (expression_statement "piVar2 = (int *)param_1[2];" (assignment_expression "piVar2 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }" { (expression_statement "(**(code **)(*piVar2 + 0x10))(piVar2);" (call_expression "(**(code **)(*piVar2 + 0x10))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 0x10))" ( (pointer_expression "**(code **)(*piVar2 + 0x10)" * (pointer_expression "*(code **)(*piVar2 + 0x10)" * (cast_expression "(code **)(*piVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x10)" ( (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (if_statement "if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }" if (parenthesized_expression "((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0))" ( (binary_expression "(iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x1e0) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x1e0) != 0" (pointer_expression "*(int *)(iVar1 + 0x1e0)" * (cast_expression "(int *)(iVar1 + 0x1e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1e0)" ( (binary_expression "iVar1 + 0x1e0" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      FUN_0003a540();\n      return;\n    }" { (expression_statement "FUN_0003a540();" (call_expression "FUN_0003a540()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00044000(param_1);" (call_expression "FUN_00044000(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3VtabUnlock(VTable *pVTab)\n\n{\n  int *piVar1;\n  sqlite3 *db;\n  sqlite3_vtab *psVar2;\n  \n  piVar1 = &pVTab->nRef;\n  *piVar1 = *piVar1 + -1;\n  db = pVTab->db;\n  if (*piVar1 == 0) {\n    psVar2 = pVTab->pVtab;\n    if (psVar2 != (sqlite3_vtab *)0x0) {\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }\n    if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n      measureAllocationSize(db,pVTab);\n      return;\n    }\n    sqlite3_free(pVTab);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3VtabUnlock(VTable *pVTab)\n\n{\n  int *piVar1;\n  sqlite3 *db;\n  sqlite3_vtab *psVar2;\n  \n  piVar1 = &pVTab->nRef;\n  *piVar1 = *piVar1 + -1;\n  db = pVTab->db;\n  if (*piVar1 == 0) {\n    psVar2 = pVTab->pVtab;\n    if (psVar2 != (sqlite3_vtab *)0x0) {\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }\n    if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n      measureAllocationSize(db,pVTab);\n      return;\n    }\n    sqlite3_free(pVTab);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3VtabUnlock(VTable *pVTab)" identifier (parameter_list "(VTable *pVTab)" ( (parameter_declaration "VTable *pVTab" type_identifier (pointer_declarator "*pVTab" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  sqlite3 *db;\n  sqlite3_vtab *psVar2;\n  \n  piVar1 = &pVTab->nRef;\n  *piVar1 = *piVar1 + -1;\n  db = pVTab->db;\n  if (*piVar1 == 0) {\n    psVar2 = pVTab->pVtab;\n    if (psVar2 != (sqlite3_vtab *)0x0) {\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }\n    if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n      measureAllocationSize(db,pVTab);\n      return;\n    }\n    sqlite3_free(pVTab);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "sqlite3_vtab *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (expression_statement "piVar1 = &pVTab->nRef;" (assignment_expression "piVar1 = &pVTab->nRef" identifier = (pointer_expression "&pVTab->nRef" & (field_expression "pVTab->nRef" identifier -> field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "db = pVTab->db;" (assignment_expression "db = pVTab->db" identifier = (field_expression "pVTab->db" identifier -> field_identifier)) ;) (if_statement "if (*piVar1 == 0) {\n    psVar2 = pVTab->pVtab;\n    if (psVar2 != (sqlite3_vtab *)0x0) {\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }\n    if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n      measureAllocationSize(db,pVTab);\n      return;\n    }\n    sqlite3_free(pVTab);\n  }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n    psVar2 = pVTab->pVtab;\n    if (psVar2 != (sqlite3_vtab *)0x0) {\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }\n    if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n      measureAllocationSize(db,pVTab);\n      return;\n    }\n    sqlite3_free(pVTab);\n  }" { (expression_statement "psVar2 = pVTab->pVtab;" (assignment_expression "psVar2 = pVTab->pVtab" identifier = (field_expression "pVTab->pVtab" identifier -> field_identifier)) ;) (if_statement "if (psVar2 != (sqlite3_vtab *)0x0) {\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }" if (parenthesized_expression "(psVar2 != (sqlite3_vtab *)0x0)" ( (binary_expression "psVar2 != (sqlite3_vtab *)0x0" identifier != (cast_expression "(sqlite3_vtab *)0x0" ( (type_descriptor "sqlite3_vtab *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*psVar2->pModule->xDisconnect)(psVar2);\n    }" { (expression_statement "(*psVar2->pModule->xDisconnect)(psVar2);" (call_expression "(*psVar2->pModule->xDisconnect)(psVar2)" (parenthesized_expression "(*psVar2->pModule->xDisconnect)" ( (pointer_expression "*psVar2->pModule->xDisconnect" * (field_expression "psVar2->pModule->xDisconnect" (field_expression "psVar2->pModule" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(psVar2)" ( identifier ))) ;) })) (if_statement "if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n      measureAllocationSize(db,pVTab);\n      return;\n    }" if (parenthesized_expression "((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0))" ( (binary_expression "(db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)" (parenthesized_expression "(db != (sqlite3 *)0x0)" ( (binary_expression "db != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(db->pnBytesFreed != (int *)0x0)" ( (binary_expression "db->pnBytesFreed != (int *)0x0" (field_expression "db->pnBytesFreed" identifier -> field_identifier) != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      measureAllocationSize(db,pVTab);\n      return;\n    }" { (expression_statement "measureAllocationSize(db,pVTab);" (call_expression "measureAllocationSize(db,pVTab)" identifier (argument_list "(db,pVTab)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_free(pVTab);" (call_expression "sqlite3_free(pVTab)" identifier (argument_list "(pVTab)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0005a530(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0005a530(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0005a530(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "piVar2 = param_1 + 3;" (assignment_expression "piVar2 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "*piVar2 = *piVar2 + -1;" (assignment_expression "*piVar2 = *piVar2 + -1" (pointer_expression "*piVar2" * identifier) = (binary_expression "*piVar2 + -1" (pointer_expression "*piVar2" * identifier) + number_literal)) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }" { (expression_statement "piVar2 = (int *)param_1[2];" (assignment_expression "piVar2 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }" { (expression_statement "(**(code **)(*piVar2 + 0x10))(piVar2);" (call_expression "(**(code **)(*piVar2 + 0x10))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 0x10))" ( (pointer_expression "**(code **)(*piVar2 + 0x10)" * (pointer_expression "*(code **)(*piVar2 + 0x10)" * (cast_expression "(code **)(*piVar2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x10)" ( (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (if_statement "if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }" if (parenthesized_expression "((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0))" ( (binary_expression "(iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x1e0) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x1e0) != 0" (pointer_expression "*(int *)(iVar1 + 0x1e0)" * (cast_expression "(int *)(iVar1 + 0x1e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1e0)" ( (binary_expression "iVar1 + 0x1e0" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      FUN_0003a540();\n      return;\n    }" { (expression_statement "FUN_0003a540();" (call_expression "FUN_0003a540()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00044000(param_1);" (call_expression "FUN_00044000(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression 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 (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 ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0005a530(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0005a530(int *param_1)" (identifier "FUN_0005a530") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  piVar2 = param_1 + 3;\n  *piVar2 = *piVar2 + -1;\n  iVar1 = *param_1;\n  if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = param_1 + 3;" (assignment_expression "piVar2 = param_1 + 3" (identifier "piVar2") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*piVar2 = *piVar2 + -1;" (assignment_expression "*piVar2 = *piVar2 + -1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (binary_expression "*piVar2 + -1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*piVar2 == 0) {\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }" (if "if") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = (int *)param_1[2];\n    if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }\n    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }\n    FUN_00044000(param_1);\n  }" ({ "{") (expression_statement "piVar2 = (int *)param_1[2];" (assignment_expression "piVar2 = (int *)param_1[2]" (identifier "piVar2") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (**(code **)(*piVar2 + 0x10))(piVar2);\n    }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 0x10))(piVar2);" (call_expression "(**(code **)(*piVar2 + 0x10))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 0x10))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x10)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x10)" (* "*") (cast_expression "(code **)(*piVar2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x10)" (( "(") (binary_expression "*piVar2 + 0x10" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {\n      FUN_0003a540();\n      return;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0))" (( "(") (binary_expression "(iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0x1e0) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1e0) != 0" (pointer_expression "*(int *)(iVar1 + 0x1e0)" (* "*") (cast_expression "(int *)(iVar1 + 0x1e0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1e0)" (( "(") (binary_expression "iVar1 + 0x1e0" (identifier "iVar1") (+ "+") (number_literal "0x1e0")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_0003a540();\n      return;\n    }" ({ "{") (expression_statement "FUN_0003a540();" (call_expression "FUN_0003a540()" (identifier "FUN_0003a540") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00044000(param_1);" (call_expression "FUN_00044000(param_1)" (identifier "FUN_00044000") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pVTab)

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


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

void __regparm3 MASKED(int *param_1)

{
  int iVar1;
  int *piVar2;
  
  piVar2 = param_1 + 3;
  *piVar2 = *piVar2 + -1;
  iVar1 = *param_1;
  if (*piVar2 == 0) {
    piVar2 = (int *)param_1[2];
    if (piVar2 != (int *)0x0) {
      (**(code **)(*piVar2 + 0x10))(piVar2);
    }
    if ((iVar1 != 0) && (*(int *)(iVar1 + 0x1e0) != 0)) {
      FUN_0003a540();
      return;
    }
    FUN_00044000(param_1);
  }
  return;
}

