
Mem * out2PrereleaseWithClear(Mem *pOut)

{
  if ((pOut->flags & 0x2400) == 0) {
    pOut->flags = 4;
    return pOut;
  }
  vdbeMemClearExternAndSetNull(pOut);
  pOut->flags = 4;
  return pOut;
}



int FUN_0002b798(int param_1)

{
  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {
    *(undefined2 *)(param_1 + 8) = 4;
    return param_1;
  }
  FUN_0002b44c();
  *(undefined2 *)(param_1 + 8) = 4;
  return param_1;
}


lui gp,0x14
addiu gp,gp,-0x71e8
addu gp,gp,t9
addiu sp,sp,-0x20
lhu v0,0x8(a0)
andi v0,v0,0x2400
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
bne v0,zero,0x0002b7e0
_sw ra,0x1c(sp)
li v1,0x4
or v0,s0,zero
sh v1,0x8(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7ed4(gp)
addiu t9,t9,-0x4bb4
bal 0x0002b44c
_nop
li v1,0x4
or v0,s0,zero
sh v1,0x8(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int FUN_0002b798(int param_1)\n\n{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}\n\n" (function_definition "int FUN_0002b798(int param_1)\n\n{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}" primitive_type (function_declarator "FUN_0002b798(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}" { (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\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    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }" { (expression_statement "*(undefined2 *)(param_1 + 8) = 4;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 4" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_0002b44c();" (call_expression "FUN_0002b44c()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined2 *)(param_1 + 8) = 4;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 4" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "Mem * out2PrereleaseWithClear(Mem *pOut)\n\n{\n  if ((pOut->flags & 0x2400) == 0) {\n    pOut->flags = 4;\n    return pOut;\n  }\n  vdbeMemClearExternAndSetNull(pOut);\n  pOut->flags = 4;\n  return pOut;\n}\n\n" (function_definition "Mem * out2PrereleaseWithClear(Mem *pOut)\n\n{\n  if ((pOut->flags & 0x2400) == 0) {\n    pOut->flags = 4;\n    return pOut;\n  }\n  vdbeMemClearExternAndSetNull(pOut);\n  pOut->flags = 4;\n  return pOut;\n}" type_identifier (pointer_declarator "* out2PrereleaseWithClear(Mem *pOut)" * (function_declarator "out2PrereleaseWithClear(Mem *pOut)" identifier (parameter_list "(Mem *pOut)" ( (parameter_declaration "Mem *pOut" type_identifier (pointer_declarator "*pOut" * identifier)) )))) (compound_statement "{\n  if ((pOut->flags & 0x2400) == 0) {\n    pOut->flags = 4;\n    return pOut;\n  }\n  vdbeMemClearExternAndSetNull(pOut);\n  pOut->flags = 4;\n  return pOut;\n}" { (if_statement "if ((pOut->flags & 0x2400) == 0) {\n    pOut->flags = 4;\n    return pOut;\n  }" if (parenthesized_expression "((pOut->flags & 0x2400) == 0)" ( (binary_expression "(pOut->flags & 0x2400) == 0" (parenthesized_expression "(pOut->flags & 0x2400)" ( (binary_expression "pOut->flags & 0x2400" (field_expression "pOut->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pOut->flags = 4;\n    return pOut;\n  }" { (expression_statement "pOut->flags = 4;" (assignment_expression "pOut->flags = 4" (field_expression "pOut->flags" identifier -> field_identifier) = number_literal) ;) (return_statement "return pOut;" return identifier ;) })) (expression_statement "vdbeMemClearExternAndSetNull(pOut);" (call_expression "vdbeMemClearExternAndSetNull(pOut)" identifier (argument_list "(pOut)" ( identifier ))) ;) (expression_statement "pOut->flags = 4;" (assignment_expression "pOut->flags = 4" (field_expression "pOut->flags" identifier -> field_identifier) = number_literal) ;) (return_statement "return pOut;" return identifier ;) })))
(translation_unit "int FUN_0002b798(int param_1)\n\n{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}\n\n" (function_definition "int FUN_0002b798(int param_1)\n\n{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}" primitive_type (function_declarator "FUN_0002b798(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}" { (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\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    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }" { (expression_statement "*(undefined2 *)(param_1 + 8) = 4;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 4" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "FUN_0002b44c();" (call_expression "FUN_0002b44c()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined2 *)(param_1 + 8) = 4;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 4" (pointer_expression "*(undefined2 *)(param_1 + 8)" * (cast_expression "(undefined2 *)(param_1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (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) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0002b798(int param_1)\n\n{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_0002b798(int param_1)" (identifier "FUN_0002b798") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }\n  FUN_0002b44c();\n  *(undefined2 *)(param_1 + 8) = 4;\n  return param_1;\n}" ({ "{") (if_statement "if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {\n    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\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    *(undefined2 *)(param_1 + 8) = 4;\n    return param_1;\n  }" ({ "{") (expression_statement "*(undefined2 *)(param_1 + 8) = 4;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 4" (pointer_expression "*(undefined2 *)(param_1 + 8)" (* "*") (cast_expression "(undefined2 *)(param_1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "4")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "FUN_0002b44c();" (call_expression "FUN_0002b44c()" (identifier "FUN_0002b44c") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 8) = 4;" (assignment_expression "*(undefined2 *)(param_1 + 8) = 4" (pointer_expression "*(undefined2 *)(param_1 + 8)" (* "*") (cast_expression "(undefined2 *)(param_1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "4")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (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 (identifier)))) (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))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  if ((*(ushort *)(param_1 + 8) & 0x2400) == 0) {
    *(undefined2 *)(param_1 + 8) = 4;
    return param_1;
  }
  FUN_0002b44c();
  *(undefined2 *)(param_1 + 8) = 4;
  return param_1;
}

