
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void enterMutex(void)

{
  sqlite3_mutex *p;
  
  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {
    p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);
                    /* WARNING: Subroutine does not return */
    sqlite3_mutex_enter(p);
  }
                    /* WARNING: Subroutine does not return */
  sqlite3_mutex_enter((sqlite3_mutex *)0x0);
}



void FUN_00020cf0(void)

{
  undefined4 uVar1;
  
  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {
    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);
    sqlite3_mutex_enter(uVar1);
    return;
  }
  sqlite3_mutex_enter(0);
  return;
}


lui gp,0x14
addiu gp,gp,0x28c0
addu gp,gp,t9
lw v0,-0x7fd8(gp)
addiu sp,sp,-0x20
addiu v0,v0,-0x5dd8
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw v1,0x4(v0)
beq v1,zero,0x00020d40
_lw ra,0x1c(sp)
lw t9,0x54(v0)
jalr t9
_li a0,0x2
lw gp,0x10(sp)
or a0,v0,zero
lw ra,0x1c(sp)
lw t9,-0x7f00(gp)
b 0x0001c608
_addiu sp,sp,0x20
or a0,zero,zero
lw t9,-0x7f00(gp)
b 0x0001c608
_addiu sp,sp,0x20
(translation_unit "void FUN_00020cf0(void)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}\n\n" (function_definition "void FUN_00020cf0(void)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}" primitive_type (function_declarator "FUN_00020cf0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0)" ( (binary_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0" (pointer_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" * (cast_expression "(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5dd4)" ( (binary_expression "PTR_DAT_0015b5d8 + -0x5dd4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }" { (expression_statement "uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" identifier = (call_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))" ( (pointer_expression "**(code **)(PTR_DAT_0015b5d8 + -0x5d84)" * (pointer_expression "*(code **)(PTR_DAT_0015b5d8 + -0x5d84)" * (cast_expression "(code **)(PTR_DAT_0015b5d8 + -0x5d84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5d84)" ( (binary_expression "PTR_DAT_0015b5d8 + -0x5d84" identifier + number_literal) ))))) )) (argument_list "(2)" ( number_literal )))) ;) (expression_statement "sqlite3_mutex_enter(uVar1);" (call_expression "sqlite3_mutex_enter(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_mutex_enter(0);" (call_expression "sqlite3_mutex_enter(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid enterMutex(void)\n\n{\n  sqlite3_mutex *p;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_mutex_enter(p);\n  }\n                    /* WARNING: Subroutine does not return */\n  sqlite3_mutex_enter((sqlite3_mutex *)0x0);\n}\n\n" comment (function_definition "void enterMutex(void)\n\n{\n  sqlite3_mutex *p;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_mutex_enter(p);\n  }\n                    /* WARNING: Subroutine does not return */\n  sqlite3_mutex_enter((sqlite3_mutex *)0x0);\n}" primitive_type (function_declarator "enterMutex(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  sqlite3_mutex *p;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_mutex_enter(p);\n  }\n                    /* WARNING: Subroutine does not return */\n  sqlite3_mutex_enter((sqlite3_mutex *)0x0);\n}" { (declaration "sqlite3_mutex *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (if_statement "if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_mutex_enter(p);\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0)" ( (binary_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0" (pointer_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" * (cast_expression "(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5dd4)" ( (binary_expression "PTR_DAT_0015b5d8 + -0x5dd4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n                    /* WARNING: Subroutine does not return */\n    sqlite3_mutex_enter(p);\n  }" { (expression_statement "p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);" (assignment_expression "p = (sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" identifier = (cast_expression "(sqlite3_mutex *)(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))" ( (pointer_expression "**(code **)(PTR_DAT_0015b5d8 + -0x5d84)" * (pointer_expression "*(code **)(PTR_DAT_0015b5d8 + -0x5d84)" * (cast_expression "(code **)(PTR_DAT_0015b5d8 + -0x5d84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5d84)" ( (binary_expression "PTR_DAT_0015b5d8 + -0x5d84" identifier + number_literal) ))))) )) (argument_list "(2)" ( number_literal ))))) ;) comment (expression_statement "sqlite3_mutex_enter(p);" (call_expression "sqlite3_mutex_enter(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) comment (expression_statement "sqlite3_mutex_enter((sqlite3_mutex *)0x0);" (call_expression "sqlite3_mutex_enter((sqlite3_mutex *)0x0)" identifier (argument_list "((sqlite3_mutex *)0x0)" ( (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })))
(translation_unit "void FUN_00020cf0(void)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}\n\n" (function_definition "void FUN_00020cf0(void)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}" primitive_type (function_declarator "FUN_00020cf0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0)" ( (binary_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0" (pointer_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" * (cast_expression "(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5dd4)" ( (binary_expression "PTR_DAT_0015b5d8 + -0x5dd4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }" { (expression_statement "uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" identifier = (call_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))" ( (pointer_expression "**(code **)(PTR_DAT_0015b5d8 + -0x5d84)" * (pointer_expression "*(code **)(PTR_DAT_0015b5d8 + -0x5d84)" * (cast_expression "(code **)(PTR_DAT_0015b5d8 + -0x5d84)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5d84)" ( (binary_expression "PTR_DAT_0015b5d8 + -0x5d84" identifier + number_literal) ))))) )) (argument_list "(2)" ( number_literal )))) ;) (expression_statement "sqlite3_mutex_enter(uVar1);" (call_expression "sqlite3_mutex_enter(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_mutex_enter(0);" (call_expression "sqlite3_mutex_enter(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00020cf0(void)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00020cf0(void)" (identifier "FUN_00020cf0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }\n  sqlite3_mutex_enter(0);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0" (pointer_expression "*(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" (* "*") (cast_expression "(int *)(PTR_DAT_0015b5d8 + -0x5dd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5dd4)" (( "(") (binary_expression "PTR_DAT_0015b5d8 + -0x5dd4" (identifier "PTR_DAT_0015b5d8") (+ "+") (number_literal "-0x5dd4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);\n    sqlite3_mutex_enter(uVar1);\n    return;\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2)" (parenthesized_expression "(**(code **)(PTR_DAT_0015b5d8 + -0x5d84))" (( "(") (pointer_expression "**(code **)(PTR_DAT_0015b5d8 + -0x5d84)" (* "*") (pointer_expression "*(code **)(PTR_DAT_0015b5d8 + -0x5d84)" (* "*") (cast_expression "(code **)(PTR_DAT_0015b5d8 + -0x5d84)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0015b5d8 + -0x5d84)" (( "(") (binary_expression "PTR_DAT_0015b5d8 + -0x5d84" (identifier "PTR_DAT_0015b5d8") (+ "+") (number_literal "-0x5d84")) () ")"))))) () ")")) (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (expression_statement "sqlite3_mutex_enter(uVar1);" (call_expression "sqlite3_mutex_enter(uVar1)" (identifier "sqlite3_mutex_enter") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "sqlite3_mutex_enter(0);" (call_expression "sqlite3_mutex_enter(0)" (identifier "sqlite3_mutex_enter") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(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: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (return_statement))))

void MASKED(void)

{
  undefined4 uVar1;
  
  if (*(int *)(PTR_DAT_0015b5d8 + -0x5dd4) != 0) {
    uVar1 = (**(code **)(PTR_DAT_0015b5d8 + -0x5d84))(2);
    sqlite3_mutex_enter(uVar1);
    return;
  }
  sqlite3_mutex_enter(0);
  return;
}

