
sqlite3_value * sqlite3_column_value(sqlite3_stmt *pStmt,int i)

{
  Mem *pMVar1;
  
  pMVar1 = columnMem(pStmt,i);
  if ((pMVar1->flags & 0x800) != 0) {
    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;
  }
  columnMallocFailure(pStmt);
  return pMVar1;
}



int sqlite3_column_value(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = FUN_00036b18();
  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {
    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;
  }
  FUN_00047f24(param_1);
  return iVar1;
}


lui gp,0x12
addiu gp,gp,-0x3c18
addu gp,gp,t9
lw t9,-0x7ed4(gp)
addiu sp,sp,-0x28
addiu t9,t9,0x6b18
sw gp,0x10(sp)
sw s0,0x20(sp)
sw ra,0x24(sp)
bal 0x00036b18
_or s0,a0,zero
lhu v1,0x8(v0)
andi a0,v1,0x800
beq a0,zero,0x00048210
_lw gp,0x10(sp)
andi v1,v1,0xf7ff
ori v1,v1,0x1000
sh v1,0x8(v0)
lw t9,-0x7eec(gp)
or a0,s0,zero
addiu t9,t9,0x7f24
bal 0x00047f24
_sw v0,0x1c(sp)
lw ra,0x24(sp)
lw v0,0x1c(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int sqlite3_column_value(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}\n\n" (function_definition "int sqlite3_column_value(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_column_value(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00036b18();" (assignment_expression "iVar1 = FUN_00036b18()" identifier = (call_expression "FUN_00036b18()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }" if (parenthesized_expression "((*(ushort *)(iVar1 + 8) & 0x800) != 0)" ( (binary_expression "(*(ushort *)(iVar1 + 8) & 0x800) != 0" (parenthesized_expression "(*(ushort *)(iVar1 + 8) & 0x800)" ( (binary_expression "*(ushort *)(iVar1 + 8) & 0x800" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }" { (expression_statement "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;" (assignment_expression "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000" (binary_expression "*(ushort *)(iVar1 + 8) & 0xf7ff" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "FUN_00047f24(param_1);" (call_expression "FUN_00047f24(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "sqlite3_value * sqlite3_column_value(sqlite3_stmt *pStmt,int i)\n\n{\n  Mem *pMVar1;\n  \n  pMVar1 = columnMem(pStmt,i);\n  if ((pMVar1->flags & 0x800) != 0) {\n    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;\n  }\n  columnMallocFailure(pStmt);\n  return pMVar1;\n}\n\n" (function_definition "sqlite3_value * sqlite3_column_value(sqlite3_stmt *pStmt,int i)\n\n{\n  Mem *pMVar1;\n  \n  pMVar1 = columnMem(pStmt,i);\n  if ((pMVar1->flags & 0x800) != 0) {\n    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;\n  }\n  columnMallocFailure(pStmt);\n  return pMVar1;\n}" type_identifier (pointer_declarator "* sqlite3_column_value(sqlite3_stmt *pStmt,int i)" * (function_declarator "sqlite3_column_value(sqlite3_stmt *pStmt,int i)" identifier (parameter_list "(sqlite3_stmt *pStmt,int i)" ( (parameter_declaration "sqlite3_stmt *pStmt" type_identifier (pointer_declarator "*pStmt" * identifier)) , (parameter_declaration "int i" primitive_type identifier) )))) (compound_statement "{\n  Mem *pMVar1;\n  \n  pMVar1 = columnMem(pStmt,i);\n  if ((pMVar1->flags & 0x800) != 0) {\n    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;\n  }\n  columnMallocFailure(pStmt);\n  return pMVar1;\n}" { (declaration "Mem *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (expression_statement "pMVar1 = columnMem(pStmt,i);" (assignment_expression "pMVar1 = columnMem(pStmt,i)" identifier = (call_expression "columnMem(pStmt,i)" identifier (argument_list "(pStmt,i)" ( identifier , identifier )))) ;) (if_statement "if ((pMVar1->flags & 0x800) != 0) {\n    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;\n  }" if (parenthesized_expression "((pMVar1->flags & 0x800) != 0)" ( (binary_expression "(pMVar1->flags & 0x800) != 0" (parenthesized_expression "(pMVar1->flags & 0x800)" ( (binary_expression "pMVar1->flags & 0x800" (field_expression "pMVar1->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;\n  }" { (expression_statement "pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;" (assignment_expression "pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000" (field_expression "pMVar1->flags" identifier -> field_identifier) = (binary_expression "pMVar1->flags & 0xf7ff | 0x1000" (binary_expression "pMVar1->flags & 0xf7ff" (field_expression "pMVar1->flags" identifier -> field_identifier) & number_literal) | number_literal)) ;) })) (expression_statement "columnMallocFailure(pStmt);" (call_expression "columnMallocFailure(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;) (return_statement "return pMVar1;" return identifier ;) })))
(translation_unit "int sqlite3_column_value(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}\n\n" (function_definition "int sqlite3_column_value(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_column_value(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00036b18();" (assignment_expression "iVar1 = FUN_00036b18()" identifier = (call_expression "FUN_00036b18()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }" if (parenthesized_expression "((*(ushort *)(iVar1 + 8) & 0x800) != 0)" ( (binary_expression "(*(ushort *)(iVar1 + 8) & 0x800) != 0" (parenthesized_expression "(*(ushort *)(iVar1 + 8) & 0x800)" ( (binary_expression "*(ushort *)(iVar1 + 8) & 0x800" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }" { (expression_statement "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;" (assignment_expression "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = (binary_expression "*(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000" (binary_expression "*(ushort *)(iVar1 + 8) & 0xf7ff" (pointer_expression "*(ushort *)(iVar1 + 8)" * (cast_expression "(ushort *)(iVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "FUN_00047f24(param_1);" (call_expression "FUN_00047f24(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int sqlite3_column_value(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "sqlite3_column_value(undefined4 param_1)" (identifier "sqlite3_column_value") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00036b18();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00047f24(param_1);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00036b18();" (assignment_expression "iVar1 = FUN_00036b18()" (identifier "iVar1") (= "=") (call_expression "FUN_00036b18()" (identifier "FUN_00036b18") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }" (if "if") (parenthesized_expression "((*(ushort *)(iVar1 + 8) & 0x800) != 0)" (( "(") (binary_expression "(*(ushort *)(iVar1 + 8) & 0x800) != 0" (parenthesized_expression "(*(ushort *)(iVar1 + 8) & 0x800)" (( "(") (binary_expression "*(ushort *)(iVar1 + 8) & 0x800" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x800")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }" ({ "{") (expression_statement "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;" (assignment_expression "*(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000" (binary_expression "*(ushort *)(iVar1 + 8) & 0xf7ff" (pointer_expression "*(ushort *)(iVar1 + 8)" (* "*") (cast_expression "(ushort *)(iVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0xf7ff")) (| "|") (number_literal "0x1000"))) (; ";")) (} "}"))) (expression_statement "FUN_00047f24(param_1);" (call_expression "FUN_00047f24(param_1)" (identifier "FUN_00047f24") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (binary_expression left: (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)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

int MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = FUN_00036b18();
  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {
    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;
  }
  FUN_00047f24(param_1);
  return iVar1;
}

