
int sqlite3_extended_result_codes(sqlite3 *db,int onoff)

{
  int iVar1;
  
  sqlite3_mutex_enter(db->mutex);
  iVar1 = 0xff;
  if (onoff != 0) {
    iVar1 = -1;
  }
  db->errMask = iVar1;
  sqlite3_mutex_leave(db->mutex);
  return 0;
}



undefined4 FUN_0004db3c(int param_1,int param_2)

{
  undefined4 uVar1;
  
  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));
  uVar1 = 0xff;
  if (param_2 != 0) {
    uVar1 = 0xffffffff;
  }
  *(undefined4 *)(param_1 + 0x44) = uVar1;
  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));
  return 0;
}


lui gp,0x15
addiu gp,gp,-0x621c
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s1,a1,zero
lw a0,0xc(a0)
lw t9,-0x7d74(gp)
bal 0x00040e8c
_nop
lw gp,0x10(sp)
li v1,-0x1
li v0,0xff
movn v0,v1,s1
sw v0,0x44(s0)
lw a0,0xc(s0)
lw t9,-0x7d78(gp)
bal 0x00040f18
_nop
lw gp,0x10(sp)
or v0,zero,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 FUN_0004db3c(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004db3c(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" type_identifier (function_declarator "FUN_0004db3c(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0xff;" (assignment_expression "uVar1 = 0xff" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x44) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (expression_statement "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3_extended_result_codes(sqlite3 *db,int onoff)\n\n{\n  int iVar1;\n  \n  sqlite3_mutex_enter(db->mutex);\n  iVar1 = 0xff;\n  if (onoff != 0) {\n    iVar1 = -1;\n  }\n  db->errMask = iVar1;\n  sqlite3_mutex_leave(db->mutex);\n  return 0;\n}\n\n" (function_definition "int sqlite3_extended_result_codes(sqlite3 *db,int onoff)\n\n{\n  int iVar1;\n  \n  sqlite3_mutex_enter(db->mutex);\n  iVar1 = 0xff;\n  if (onoff != 0) {\n    iVar1 = -1;\n  }\n  db->errMask = iVar1;\n  sqlite3_mutex_leave(db->mutex);\n  return 0;\n}" primitive_type (function_declarator "sqlite3_extended_result_codes(sqlite3 *db,int onoff)" identifier (parameter_list "(sqlite3 *db,int onoff)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int onoff" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  sqlite3_mutex_enter(db->mutex);\n  iVar1 = 0xff;\n  if (onoff != 0) {\n    iVar1 = -1;\n  }\n  db->errMask = iVar1;\n  sqlite3_mutex_leave(db->mutex);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "sqlite3_mutex_enter(db->mutex);" (call_expression "sqlite3_mutex_enter(db->mutex)" identifier (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (expression_statement "iVar1 = 0xff;" (assignment_expression "iVar1 = 0xff" identifier = number_literal) ;) (if_statement "if (onoff != 0) {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(onoff != 0)" ( (binary_expression "onoff != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (expression_statement "db->errMask = iVar1;" (assignment_expression "db->errMask = iVar1" (field_expression "db->errMask" identifier -> field_identifier) = identifier) ;) (expression_statement "sqlite3_mutex_leave(db->mutex);" (call_expression "sqlite3_mutex_leave(db->mutex)" identifier (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0004db3c(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004db3c(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" type_identifier (function_declarator "FUN_0004db3c(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0xff;" (assignment_expression "uVar1 = 0xff" identifier = number_literal) ;) (if_statement "if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x44) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = identifier) ;) (expression_statement "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0004db3c(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004db3c(int param_1,int param_2)" (identifier "FUN_0004db3c") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));\n  uVar1 = 0xff;\n  if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }\n  *(undefined4 *)(param_1 + 0x44) = uVar1;\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc))" (identifier "sqlite3_mutex_enter") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar1 = 0xff;" (assignment_expression "uVar1 = 0xff" (identifier "uVar1") (= "=") (number_literal "0xff")) (; ";")) (if_statement "if (param_2 != 0) {\n    uVar1 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x44) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));" (call_expression "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc))" (identifier "sqlite3_mutex_leave") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))))) (expression_statement (assignment_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: (identifier) 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: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))))))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  
  sqlite3_mutex_enter(*(undefined4 *)(param_1 + 0xc));
  uVar1 = 0xff;
  if (param_2 != 0) {
    uVar1 = 0xffffffff;
  }
  *(undefined4 *)(param_1 + 0x44) = uVar1;
  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0xc));
  return 0;
}

