
/* DWARF original prototype: void unlockBtreeMutex(Btree * p, Btree * p) */

void unlockBtreeMutex(Btree *p,Btree *p_1)

{
  sqlite3_mutex_leave(*(sqlite3_mutex **)&p[1].inTrans);
  *(undefined1 *)&p_1->db = 0;
  return;
}



void FUN_00034574(int param_1,undefined1 *param_2)

{
  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));
  *param_2 = 0;
  return;
}


lui gp,0x13
addiu gp,gp,0x3c
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7ef8(gp)
sw s0,0x18(sp)
or s0,a1,zero
sw ra,0x1c(sp)
sw gp,0x10(sp)
bal 0x0001cf60
_lw a0,0x38(a0)
sb zero,0x0(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_00034574(int param_1,undefined1 *param_2)\n\n{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00034574(int param_1,undefined1 *param_2)\n\n{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00034574(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}" { (expression_statement "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));" (call_expression "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x38))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void unlockBtreeMutex(Btree * p, Btree * p) */\n\nvoid unlockBtreeMutex(Btree *p,Btree *p_1)\n\n{\n  sqlite3_mutex_leave(*(sqlite3_mutex **)&p[1].inTrans);\n  *(undefined1 *)&p_1->db = 0;\n  return;\n}\n\n" comment (function_definition "void unlockBtreeMutex(Btree *p,Btree *p_1)\n\n{\n  sqlite3_mutex_leave(*(sqlite3_mutex **)&p[1].inTrans);\n  *(undefined1 *)&p_1->db = 0;\n  return;\n}" primitive_type (function_declarator "unlockBtreeMutex(Btree *p,Btree *p_1)" identifier (parameter_list "(Btree *p,Btree *p_1)" ( (parameter_declaration "Btree *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Btree *p_1" type_identifier (pointer_declarator "*p_1" * identifier)) ))) (compound_statement "{\n  sqlite3_mutex_leave(*(sqlite3_mutex **)&p[1].inTrans);\n  *(undefined1 *)&p_1->db = 0;\n  return;\n}" { (expression_statement "sqlite3_mutex_leave(*(sqlite3_mutex **)&p[1].inTrans);" (call_expression "sqlite3_mutex_leave(*(sqlite3_mutex **)&p[1].inTrans)" identifier (argument_list "(*(sqlite3_mutex **)&p[1].inTrans)" ( (pointer_expression "*(sqlite3_mutex **)&p[1].inTrans" * (cast_expression "(sqlite3_mutex **)&p[1].inTrans" ( (type_descriptor "sqlite3_mutex **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&p[1].inTrans" & (field_expression "p[1].inTrans" (subscript_expression "p[1]" identifier [ number_literal ]) . field_identifier)))) ))) ;) (expression_statement "*(undefined1 *)&p_1->db = 0;" (assignment_expression "*(undefined1 *)&p_1->db = 0" (pointer_expression "*(undefined1 *)&p_1->db" * (cast_expression "(undefined1 *)&p_1->db" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_1->db" & (field_expression "p_1->db" identifier -> field_identifier)))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00034574(int param_1,undefined1 *param_2)\n\n{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00034574(int param_1,undefined1 *param_2)\n\n{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00034574(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}" { (expression_statement "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));" (call_expression "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x38))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (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 (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00034574(int param_1,undefined1 *param_2)\n\n{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00034574(int param_1,undefined1 *param_2)" (identifier "FUN_00034574") (parameter_list "(int param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));\n  *param_2 = 0;\n  return;\n}" ({ "{") (expression_statement "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));" (call_expression "sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38))" (identifier "sqlite3_mutex_leave") (argument_list "(*(undefined4 *)(param_1 + 0x38))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) () ")"))) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void unlockBtreeMutex(Btree * p, Btree * p) */

void function_1(type_1 *p,type_1 *p_1)

{
  var_1(*(type_2 **)&p[1].inTrans);
  *(type_3 *)&p_1->db = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

void MASKED(int param_1,undefined1 *param_2)

{
  sqlite3_mutex_leave(*(undefined4 *)(param_1 + 0x38));
  *param_2 = 0;
  return;
}

