
void __regparm3 sqlite3DeleteTable(sqlite3 *db,Table *pTable)

{
  u32 *puVar1;
  
  if (pTable == (Table *)0x0) {
    return;
  }
  if ((db == (sqlite3 *)0x0) || (db->pnBytesFreed == (int *)0x0)) {
    puVar1 = &pTable->nTabRef;
    *puVar1 = *puVar1 - 1;
    if (*puVar1 != 0) {
      return;
    }
  }
  deleteTable(db,pTable);
  return;
}



void __regparm3 FUN_000397b0(int param_1,int param_2)

{
  int *piVar1;
  
  if (param_2 == 0) {
    return;
  }
  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {
    piVar1 = (int *)(param_2 + 0x20);
    *piVar1 = *piVar1 + -1;
    if (*piVar1 != 0) {
      return;
    }
  }
  FUN_000395b0();
  return;
}


TEST EDX,EDX
JZ 0x000397d6
TEST EAX,EAX
JZ 0x000397d0
MOV ECX,dword ptr [EAX + 0x1e0]
TEST ECX,ECX
JZ 0x000397d0
JMP 0x000395b0
SUB dword ptr [EDX + 0x20],0x1
JZ 0x000397c2
RET
(translation_unit "void __regparm3 FUN_000397b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000397b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000397b0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x1e0) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1e0) == 0" (pointer_expression "*(int *)(param_1 + 0x1e0)" * (cast_expression "(int *)(param_1 + 0x1e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e0)" ( (binary_expression "param_1 + 0x1e0" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }" { (expression_statement "piVar1 = (int *)(param_2 + 0x20);" (assignment_expression "piVar1 = (int *)(param_2 + 0x20)" identifier = (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n      return;\n    }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "FUN_000395b0();" (call_expression "FUN_000395b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3DeleteTable(sqlite3 *db,Table *pTable)\n\n{\n  u32 *puVar1;\n  \n  if (pTable == (Table *)0x0) {\n    return;\n  }\n  if ((db == (sqlite3 *)0x0) || (db->pnBytesFreed == (int *)0x0)) {\n    puVar1 = &pTable->nTabRef;\n    *puVar1 = *puVar1 - 1;\n    if (*puVar1 != 0) {\n      return;\n    }\n  }\n  deleteTable(db,pTable);\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3DeleteTable(sqlite3 *db,Table *pTable)\n\n{\n  u32 *puVar1;\n  \n  if (pTable == (Table *)0x0) {\n    return;\n  }\n  if ((db == (sqlite3 *)0x0) || (db->pnBytesFreed == (int *)0x0)) {\n    puVar1 = &pTable->nTabRef;\n    *puVar1 = *puVar1 - 1;\n    if (*puVar1 != 0) {\n      return;\n    }\n  }\n  deleteTable(db,pTable);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3DeleteTable(sqlite3 *db,Table *pTable)" identifier (parameter_list "(sqlite3 *db,Table *pTable)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "Table *pTable" type_identifier (pointer_declarator "*pTable" * identifier)) ))) (compound_statement "{\n  u32 *puVar1;\n  \n  if (pTable == (Table *)0x0) {\n    return;\n  }\n  if ((db == (sqlite3 *)0x0) || (db->pnBytesFreed == (int *)0x0)) {\n    puVar1 = &pTable->nTabRef;\n    *puVar1 = *puVar1 - 1;\n    if (*puVar1 != 0) {\n      return;\n    }\n  }\n  deleteTable(db,pTable);\n  return;\n}" { (declaration "u32 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (pTable == (Table *)0x0) {\n    return;\n  }" if (parenthesized_expression "(pTable == (Table *)0x0)" ( (binary_expression "pTable == (Table *)0x0" identifier == (cast_expression "(Table *)0x0" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((db == (sqlite3 *)0x0) || (db->pnBytesFreed == (int *)0x0)) {\n    puVar1 = &pTable->nTabRef;\n    *puVar1 = *puVar1 - 1;\n    if (*puVar1 != 0) {\n      return;\n    }\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    puVar1 = &pTable->nTabRef;\n    *puVar1 = *puVar1 - 1;\n    if (*puVar1 != 0) {\n      return;\n    }\n  }" { (expression_statement "puVar1 = &pTable->nTabRef;" (assignment_expression "puVar1 = &pTable->nTabRef" identifier = (pointer_expression "&pTable->nTabRef" & (field_expression "pTable->nTabRef" identifier -> field_identifier))) ;) (expression_statement "*puVar1 = *puVar1 - 1;" (assignment_expression "*puVar1 = *puVar1 - 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 - 1" (pointer_expression "*puVar1" * identifier) - number_literal)) ;) (if_statement "if (*puVar1 != 0) {\n      return;\n    }" if (parenthesized_expression "(*puVar1 != 0)" ( (binary_expression "*puVar1 != 0" (pointer_expression "*puVar1" * identifier) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "deleteTable(db,pTable);" (call_expression "deleteTable(db,pTable)" identifier (argument_list "(db,pTable)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000397b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000397b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000397b0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }" if (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x1e0) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1e0) == 0" (pointer_expression "*(int *)(param_1 + 0x1e0)" * (cast_expression "(int *)(param_1 + 0x1e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e0)" ( (binary_expression "param_1 + 0x1e0" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }" { (expression_statement "piVar1 = (int *)(param_2 + 0x20);" (assignment_expression "piVar1 = (int *)(param_2 + 0x20)" identifier = (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) {\n      return;\n    }" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) })) (expression_statement "FUN_000395b0();" (call_expression "FUN_000395b0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000397b0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000397b0(int param_1,int param_2)" (identifier "FUN_000397b0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }\n  FUN_000395b0();\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if (param_2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }" (if "if") (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0))" (( "(") (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x1e0) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1e0) == 0" (pointer_expression "*(int *)(param_1 + 0x1e0)" (* "*") (cast_expression "(int *)(param_1 + 0x1e0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1e0)" (( "(") (binary_expression "param_1 + 0x1e0" (identifier "param_1") (+ "+") (number_literal "0x1e0")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    piVar1 = (int *)(param_2 + 0x20);\n    *piVar1 = *piVar1 + -1;\n    if (*piVar1 != 0) {\n      return;\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)(param_2 + 0x20);" (assignment_expression "piVar1 = (int *)(param_2 + 0x20)" (identifier "piVar1") (= "=") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*piVar1 != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_000395b0();" (call_expression "FUN_000395b0()" (identifier "FUN_000395b0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *var_2,type_2 *var_1)

{
  type_3 *puVar1;
  
  if (var_1 == (type_2 *)0x0) {
    return;
  }
  if ((var_2 == (type_1 *)0x0) || (var_2->pnBytesFreed == (int *)0x0)) {
    puVar1 = &var_1->nTabRef;
    *puVar1 = *puVar1 - 1;
    if (*puVar1 != 0) {
      return;
    }
  }
  var_3(var_2,var_1);
  return;
}


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

void __regparm3 MASKED(int param_1,int param_2)

{
  int *piVar1;
  
  if (param_2 == 0) {
    return;
  }
  if ((param_1 == 0) || (*(int *)(param_1 + 0x1e0) == 0)) {
    piVar1 = (int *)(param_2 + 0x20);
    *piVar1 = *piVar1 + -1;
    if (*piVar1 != 0) {
      return;
    }
  }
  FUN_000395b0();
  return;
}

