
/* WARNING: Unknown calling convention */

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 FUN_00039de0(void)

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


PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,EBX
CALL 0x0002df20
MOV ESI,EAX
MOVZX EAX,word ptr [EAX + 0x8]
TEST AH,0x8
JZ 0x00039e09
AND AH,0xf7
OR AH,0x10
MOV word ptr [ESI + 0x8],AX
MOV EAX,EBX
CALL 0x00039c10
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "int FUN_00039de0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}\n\n" (function_definition "int FUN_00039de0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00039de0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0002df20();" (assignment_expression "iVar1 = FUN_0002df20()" identifier = (call_expression "FUN_0002df20()" 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_00039c10();" (call_expression "FUN_00039c10()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nsqlite3_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" comment (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 FUN_00039de0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}\n\n" (function_definition "int FUN_00039de0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00039de0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0002df20();" (assignment_expression "iVar1 = FUN_0002df20()" identifier = (call_expression "FUN_0002df20()" 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_00039c10();" (call_expression "FUN_00039c10()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (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 ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00039de0(void)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00039de0(void)" (identifier "FUN_00039de0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0002df20();\n  if ((*(ushort *)(iVar1 + 8) & 0x800) != 0) {\n    *(ushort *)(iVar1 + 8) = *(ushort *)(iVar1 + 8) & 0xf7ff | 0x1000;\n  }\n  FUN_00039c10();\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_0002df20();" (assignment_expression "iVar1 = FUN_0002df20()" (identifier "iVar1") (= "=") (call_expression "FUN_0002df20()" (identifier "FUN_0002df20") (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_00039c10();" (call_expression "FUN_00039c10()" (identifier "FUN_00039c10") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *pStmt,int i)

{
  type_3 *pMVar1;
  
  pMVar1 = var_1(pStmt,i);
  if ((pMVar1->flags & 0x800) != 0) {
    pMVar1->flags = pMVar1->flags & 0xf7ff | 0x1000;
  }
  var_2(pStmt);
  return pMVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) 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))) (return_statement (identifier)))))

int MASKED(void)

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

