
void __regparm3 vdbeMemClear(Mem *p)

{
  int iVar1;
  
  if ((p->flags & 0x2400) == 0) {
    iVar1 = p->szMalloc;
  }
  else {
    vdbeMemClearExternAndSetNull(p);
    iVar1 = p->szMalloc;
  }
  if (iVar1 == 0) {
    p->z = (char *)0x0;
    return;
  }
  sqlite3DbFreeNN(p->db,p->zMalloc);
  p->szMalloc = 0;
  p->z = (char *)0x0;
  return;
}



void __regparm3 FUN_00025180(int param_1)

{
  int iVar1;
  
  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {
    iVar1 = *(int *)(param_1 + 0x18);
  }
  else {
    FUN_00024f00();
    iVar1 = *(int *)(param_1 + 0x18);
  }
  if (iVar1 == 0) {
    *(undefined4 *)(param_1 + 0x10) = 0;
    return;
  }
  FUN_00024d80();
  *(undefined4 *)(param_1 + 0x18) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  return;
}


PUSH EBX
MOV EBX,EAX
SUB ESP,0x8
TEST word ptr [EAX + 0x8],0x2400
JNZ 0x000251a8
MOV EAX,dword ptr [EBX + 0x18]
TEST EAX,EAX
JNZ 0x000251b4
MOV dword ptr [EBX + 0x10],0x0
ADD ESP,0x8
POP EBX
RET
CALL 0x00024f00
MOV EAX,dword ptr [EBX + 0x18]
TEST EAX,EAX
JZ 0x00025195
MOV EDX,dword ptr [EBX + 0x14]
MOV EAX,dword ptr [EBX + 0x20]
CALL 0x00024d80
MOV dword ptr [EBX + 0x18],0x0
MOV dword ptr [EBX + 0x10],0x0
ADD ESP,0x8
POP EBX
RET
(translation_unit "void __regparm3 FUN_00025180(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00025180(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025180(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" if (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" else (compound_statement "{\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" { (expression_statement "FUN_00024f00();" (call_expression "FUN_00024f00()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 vdbeMemClear(Mem *p)\n\n{\n  int iVar1;\n  \n  if ((p->flags & 0x2400) == 0) {\n    iVar1 = p->szMalloc;\n  }\n  else {\n    vdbeMemClearExternAndSetNull(p);\n    iVar1 = p->szMalloc;\n  }\n  if (iVar1 == 0) {\n    p->z = (char *)0x0;\n    return;\n  }\n  sqlite3DbFreeNN(p->db,p->zMalloc);\n  p->szMalloc = 0;\n  p->z = (char *)0x0;\n  return;\n}\n\n" (function_definition "void __regparm3 vdbeMemClear(Mem *p)\n\n{\n  int iVar1;\n  \n  if ((p->flags & 0x2400) == 0) {\n    iVar1 = p->szMalloc;\n  }\n  else {\n    vdbeMemClearExternAndSetNull(p);\n    iVar1 = p->szMalloc;\n  }\n  if (iVar1 == 0) {\n    p->z = (char *)0x0;\n    return;\n  }\n  sqlite3DbFreeNN(p->db,p->zMalloc);\n  p->szMalloc = 0;\n  p->z = (char *)0x0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "vdbeMemClear(Mem *p)" identifier (parameter_list "(Mem *p)" ( (parameter_declaration "Mem *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((p->flags & 0x2400) == 0) {\n    iVar1 = p->szMalloc;\n  }\n  else {\n    vdbeMemClearExternAndSetNull(p);\n    iVar1 = p->szMalloc;\n  }\n  if (iVar1 == 0) {\n    p->z = (char *)0x0;\n    return;\n  }\n  sqlite3DbFreeNN(p->db,p->zMalloc);\n  p->szMalloc = 0;\n  p->z = (char *)0x0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((p->flags & 0x2400) == 0) {\n    iVar1 = p->szMalloc;\n  }\n  else {\n    vdbeMemClearExternAndSetNull(p);\n    iVar1 = p->szMalloc;\n  }" if (parenthesized_expression "((p->flags & 0x2400) == 0)" ( (binary_expression "(p->flags & 0x2400) == 0" (parenthesized_expression "(p->flags & 0x2400)" ( (binary_expression "p->flags & 0x2400" (field_expression "p->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = p->szMalloc;\n  }" { (expression_statement "iVar1 = p->szMalloc;" (assignment_expression "iVar1 = p->szMalloc" identifier = (field_expression "p->szMalloc" identifier -> field_identifier)) ;) }) (else_clause "else {\n    vdbeMemClearExternAndSetNull(p);\n    iVar1 = p->szMalloc;\n  }" else (compound_statement "{\n    vdbeMemClearExternAndSetNull(p);\n    iVar1 = p->szMalloc;\n  }" { (expression_statement "vdbeMemClearExternAndSetNull(p);" (call_expression "vdbeMemClearExternAndSetNull(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "iVar1 = p->szMalloc;" (assignment_expression "iVar1 = p->szMalloc" identifier = (field_expression "p->szMalloc" identifier -> field_identifier)) ;) }))) (if_statement "if (iVar1 == 0) {\n    p->z = (char *)0x0;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    p->z = (char *)0x0;\n    return;\n  }" { (expression_statement "p->z = (char *)0x0;" (assignment_expression "p->z = (char *)0x0" (field_expression "p->z" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3DbFreeNN(p->db,p->zMalloc);" (call_expression "sqlite3DbFreeNN(p->db,p->zMalloc)" identifier (argument_list "(p->db,p->zMalloc)" ( (field_expression "p->db" identifier -> field_identifier) , (field_expression "p->zMalloc" identifier -> field_identifier) ))) ;) (expression_statement "p->szMalloc = 0;" (assignment_expression "p->szMalloc = 0" (field_expression "p->szMalloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->z = (char *)0x0;" (assignment_expression "p->z = (char *)0x0" (field_expression "p->z" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00025180(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00025180(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00025180(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" if (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" * (cast_expression "(ushort *)(param_1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" else (compound_statement "{\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" { (expression_statement "FUN_00024f00();" (call_expression "FUN_00024f00()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00025180(int param_1)\n\n{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00025180(int param_1)" (identifier "FUN_00025180") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }\n  FUN_00024d80();\n  *(undefined4 *)(param_1 + 0x18) = 0;\n  *(undefined4 *)(param_1 + 0x10) = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    iVar1 = *(int *)(param_1 + 0x18);\n  }\n  else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" (if "if") (parenthesized_expression "((*(ushort *)(param_1 + 8) & 0x2400) == 0)" (( "(") (binary_expression "(*(ushort *)(param_1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(param_1 + 8) & 0x2400)" (( "(") (binary_expression "*(ushort *)(param_1 + 8) & 0x2400" (pointer_expression "*(ushort *)(param_1 + 8)" (* "*") (cast_expression "(ushort *)(param_1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" (else "else") (compound_statement "{\n    FUN_00024f00();\n    iVar1 = *(int *)(param_1 + 0x18);\n  }" ({ "{") (expression_statement "FUN_00024f00();" (call_expression "FUN_00024f00()" (identifier "FUN_00024f00") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x18)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 == 0) {\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x10) = 0;\n    return;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00024d80();" (call_expression "FUN_00024d80()" (identifier "FUN_00024d80") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *p)

{
  int var_2;
  
  if ((p->flags & 0x2400) == 0) {
    var_2 = p->szMalloc;
  }
  else {
    var_1(p);
    var_2 = p->szMalloc;
  }
  if (var_2 == 0) {
    p->z = (char *)0x0;
    return;
  }
  var_3(p->db,p->zMalloc);
  p->szMalloc = 0;
  p->z = (char *)0x0;
  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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  
  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {
    iVar1 = *(int *)(param_1 + 0x18);
  }
  else {
    FUN_00024f00();
    iVar1 = *(int *)(param_1 + 0x18);
  }
  if (iVar1 == 0) {
    *(undefined4 *)(param_1 + 0x10) = 0;
    return;
  }
  FUN_00024d80();
  *(undefined4 *)(param_1 + 0x18) = 0;
  *(undefined4 *)(param_1 + 0x10) = 0;
  return;
}

