
sqlite3_mutex * sqlite3_mutex_alloc(int id)

{
  int iVar1;
  sqlite3_mutex *psVar2;
  
  if (id < 2) {
    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();
  }
  else {
    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();
  }
  if (iVar1 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);
    return psVar2;
  }
  return (sqlite3_mutex *)0x0;
}



undefined4 sqlite3_mutex_alloc(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 < 2) {
    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();
  }
  else {
    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();
  }
  if (iVar1 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);
    return uVar2;
  }
  return 0;
}


lui gp,0x9
addiu gp,gp,0x14c
addu gp,gp,t9
addiu sp,sp,-0x20
slti v0,a0,0x2
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
bne v0,zero,0x0006d1b0
_sw ra,0x1c(sp)
lw t9,-0x7fd8(gp)
addiu t9,t9,0x6068
jalr t9
_nop
bne v0,zero,0x0006d1c4
_lw gp,0x10(sp)
lw v0,-0x7fe4(gp)
or a0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,0x40e8(v0)
jr t9
_addiu sp,sp,0x20
lw t9,-0x7cd8(gp)
jalr t9
_nop
beq v0,zero,0x0006d194
_lw gp,0x10(sp)
lw ra,0x1c(sp)
or v0,zero,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 sqlite3_mutex_alloc(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_mutex_alloc(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "sqlite3_mutex_alloc(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" if (parenthesized_expression "(param_1 < 2)" ( (binary_expression "param_1 < 2" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)()" identifier = (call_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)" ( (pointer_expression "*(code *)PTR_sqlite3_initialize_000f55c8" * (cast_expression "(code *)PTR_sqlite3_initialize_000f55c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" else (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))()" identifier = (call_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))()" (parenthesized_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))" ( (pointer_expression "*(code *)(PTR_LAB_000f52c8 + 0x6068)" * (cast_expression "(code *)(PTR_LAB_000f52c8 + 0x6068)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52c8 + 0x6068)" ( (binary_expression "PTR_LAB_000f52c8 + 0x6068" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }" { comment comment (expression_statement "uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);" (assignment_expression "uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40e8)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40e8)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40e8)" ( (binary_expression "PTR_DAT_000f52bc + 0x40e8" identifier + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "sqlite3_mutex * sqlite3_mutex_alloc(int id)\n\n{\n  int iVar1;\n  sqlite3_mutex *psVar2;\n  \n  if (id < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);\n    return psVar2;\n  }\n  return (sqlite3_mutex *)0x0;\n}\n\n" (function_definition "sqlite3_mutex * sqlite3_mutex_alloc(int id)\n\n{\n  int iVar1;\n  sqlite3_mutex *psVar2;\n  \n  if (id < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);\n    return psVar2;\n  }\n  return (sqlite3_mutex *)0x0;\n}" type_identifier (pointer_declarator "* sqlite3_mutex_alloc(int id)" * (function_declarator "sqlite3_mutex_alloc(int id)" identifier (parameter_list "(int id)" ( (parameter_declaration "int id" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  sqlite3_mutex *psVar2;\n  \n  if (id < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);\n    return psVar2;\n  }\n  return (sqlite3_mutex *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_mutex *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (if_statement "if (id < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" if (parenthesized_expression "(id < 2)" ( (binary_expression "id < 2" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)()" identifier = (call_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)" ( (pointer_expression "*(code *)PTR_sqlite3_initialize_000f55c8" * (cast_expression "(code *)PTR_sqlite3_initialize_000f55c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" else (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))()" identifier = (call_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))()" (parenthesized_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))" ( (pointer_expression "*(code *)(PTR_LAB_000f52c8 + 0x6068)" * (cast_expression "(code *)(PTR_LAB_000f52c8 + 0x6068)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52c8 + 0x6068)" ( (binary_expression "PTR_LAB_000f52c8 + 0x6068" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);\n    return psVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);\n    return psVar2;\n  }" { comment comment (expression_statement "psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id);" (assignment_expression "psVar2 = (sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id)" identifier = (cast_expression "(sqlite3_mutex *)(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id)" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))(id)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40e8)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40e8)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40e8)" ( (binary_expression "PTR_DAT_000f52bc + 0x40e8" identifier + number_literal) ))))) )) (argument_list "(id)" ( identifier ))))) ;) (return_statement "return psVar2;" return identifier ;) })) (return_statement "return (sqlite3_mutex *)0x0;" return (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 sqlite3_mutex_alloc(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 sqlite3_mutex_alloc(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (function_declarator "sqlite3_mutex_alloc(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" if (parenthesized_expression "(param_1 < 2)" ( (binary_expression "param_1 < 2" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }" { (expression_statement "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)()" identifier = (call_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)" ( (pointer_expression "*(code *)PTR_sqlite3_initialize_000f55c8" * (cast_expression "(code *)PTR_sqlite3_initialize_000f55c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" else (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))()" identifier = (call_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))()" (parenthesized_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))" ( (pointer_expression "*(code *)(PTR_LAB_000f52c8 + 0x6068)" * (cast_expression "(code *)(PTR_LAB_000f52c8 + 0x6068)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000f52c8 + 0x6068)" ( (binary_expression "PTR_LAB_000f52c8 + 0x6068" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);" (assignment_expression "uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40e8)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40e8)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40e8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40e8)" ( (binary_expression "PTR_DAT_000f52bc + 0x40e8" identifier + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 ( IDENT )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 sqlite3_mutex_alloc(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "sqlite3_mutex_alloc(int param_1)" (identifier "sqlite3_mutex_alloc") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }\n  if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (param_1 < 2) {\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }\n  else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" (if "if") (parenthesized_expression "(param_1 < 2)" (( "(") (binary_expression "param_1 < 2" (identifier "param_1") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();" (assignment_expression "iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)()" (parenthesized_expression "(*(code *)PTR_sqlite3_initialize_000f55c8)" (( "(") (pointer_expression "*(code *)PTR_sqlite3_initialize_000f55c8" (* "*") (cast_expression "(code *)PTR_sqlite3_initialize_000f55c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sqlite3_initialize_000f55c8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))()" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))()" (parenthesized_expression "(*(code *)(PTR_LAB_000f52c8 + 0x6068))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000f52c8 + 0x6068)" (* "*") (cast_expression "(code *)(PTR_LAB_000f52c8 + 0x6068)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000f52c8 + 0x6068)" (( "(") (binary_expression "PTR_LAB_000f52c8 + 0x6068" (identifier "PTR_LAB_000f52c8") (+ "+") (number_literal "0x6068")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar1 == 0) {\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);" (assignment_expression "uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40e8))" (( "(") (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40e8)" (* "*") (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40e8)" (* "*") (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40e8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x40e8)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x40e8" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x40e8")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 * function_1(int var_1)

{
  int var_3;
  type_1 *psVar2;
  
  if (var_1 < 2) {
    var_3 = (*(type_2 *)PTR_sqlite3_initialize_000f55c8)();
  }
  else {
    var_3 = (*(type_2 *)(var_2 + 0x6068))();
  }
  if (var_3 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    psVar2 = (type_1 *)(**(type_2 **)(var_4 + 0x40e8))(var_1);
    return psVar2;
  }
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (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)))))) arguments: (argument_list))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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 (identifier))))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  if (param_1 < 2) {
    iVar1 = (*(code *)PTR_sqlite3_initialize_000f55c8)();
  }
  else {
    iVar1 = (*(code *)(PTR_LAB_000f52c8 + 0x6068))();
  }
  if (iVar1 == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006d1a8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar2 = (**(code **)(PTR_DAT_000f52bc + 0x40e8))(param_1);
    return uVar2;
  }
  return 0;
}

