
void __regparm3 sqlite3DbFreeNN(sqlite3 *db,void *p)

{
  if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {
    measureAllocationSize(db,p);
    return;
  }
  sqlite3_free(p);
  return;
}



void __regparm3 FUN_000428d0(int param_1,undefined4 param_2)

{
  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {
    FUN_00036c50();
    return;
  }
  FUN_00042800(param_2);
  return;
}


TEST EAX,EAX
JZ 0x000428de
MOV ECX,dword ptr [EAX + 0x1e0]
TEST ECX,ECX
JNZ 0x000428f0
SUB ESP,0x18
PUSH EDX
CALL 0x00042800
ADD ESP,0x1c
RET
JMP 0x00036c50
(translation_unit "void __regparm3 FUN_000428d0(int param_1,undefined4 param_2)\n\n{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000428d0(int param_1,undefined4 param_2)\n\n{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000428d0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}" { (if_statement "if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\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    FUN_00036c50();\n    return;\n  }" { (expression_statement "FUN_00036c50();" (call_expression "FUN_00036c50()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00042800(param_2);" (call_expression "FUN_00042800(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3DbFreeNN(sqlite3 *db,void *p)\n\n{\n  if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n    measureAllocationSize(db,p);\n    return;\n  }\n  sqlite3_free(p);\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3DbFreeNN(sqlite3 *db,void *p)\n\n{\n  if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n    measureAllocationSize(db,p);\n    return;\n  }\n  sqlite3_free(p);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3DbFreeNN(sqlite3 *db,void *p)" identifier (parameter_list "(sqlite3 *db,void *p)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n    measureAllocationSize(db,p);\n    return;\n  }\n  sqlite3_free(p);\n  return;\n}" { (if_statement "if ((db != (sqlite3 *)0x0) && (db->pnBytesFreed != (int *)0x0)) {\n    measureAllocationSize(db,p);\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,p);\n    return;\n  }" { (expression_statement "measureAllocationSize(db,p);" (call_expression "measureAllocationSize(db,p)" identifier (argument_list "(db,p)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_free(p);" (call_expression "sqlite3_free(p)" identifier (argument_list "(p)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000428d0(int param_1,undefined4 param_2)\n\n{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000428d0(int param_1,undefined4 param_2)\n\n{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000428d0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}" { (if_statement "if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\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    FUN_00036c50();\n    return;\n  }" { (expression_statement "FUN_00036c50();" (call_expression "FUN_00036c50()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00042800(param_2);" (call_expression "FUN_00042800(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (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 { (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_000428d0(int param_1,undefined4 param_2)\n\n{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000428d0(int param_1,undefined4 param_2)" (identifier "FUN_000428d0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\n  }\n  FUN_00042800(param_2);\n  return;\n}" ({ "{") (if_statement "if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {\n    FUN_00036c50();\n    return;\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    FUN_00036c50();\n    return;\n  }" ({ "{") (expression_statement "FUN_00036c50();" (call_expression "FUN_00036c50()" (identifier "FUN_00036c50") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00042800(param_2);" (call_expression "FUN_00042800(param_2)" (identifier "FUN_00042800") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *var_1,void *p)

{
  if ((var_1 != (type_1 *)0x0) && (var_1->pnBytesFreed != (int *)0x0)) {
    var_2(var_1,p);
    return;
  }
  var_3(p);
  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: (type_identifier) declarator: (identifier)))) body: (compound_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 (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,undefined4 param_2)

{
  if ((param_1 != 0) && (*(int *)(param_1 + 0x1e0) != 0)) {
    FUN_00036c50();
    return;
  }
  FUN_00042800(param_2);
  return;
}

