
/* DWARF original prototype: void unlock(File_read * this, Task * task) */

void __thiscall gold::File_read::unlock(File_read *this,Task *task)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;
  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {
    Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);
  }
  release(this);
  if (((this->token_).is_blocker_ == false) && (task == (this->token_).writer_)) {
    (this->token_).writer_ = (Task *)0x0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,
                      PTR_s__s_004c1a50 + 0xc4);
}



/* gold::File_read::unlock(gold::Task const*) */

void __thiscall gold::File_read::unlock(File_read *this,Task *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;
  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {
    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);
  }
  release(this);
  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {
    *(undefined4 *)(this + 0x38) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,
                      PTR_s__s_004c1a50 + 0xc4);
}


lui gp,0x35
addiu gp,gp,0x37a0
addu gp,gp,t9
lw v0,-0x788c(gp)
addiu sp,sp,-0x28
sw gp,0x10(sp)
lw v1,0x0(v0)
sw s1,0x20(sp)
or s1,a1,zero
sw s0,0x1c(sp)
sw ra,0x24(sp)
lw v0,0x8(v1)
beq v0,zero,0x00175ae8
_or s0,a0,zero
lw v0,0x14(v1)
andi v0,v0,0x4
bne v0,zero,0x00175b20
_lw a1,-0x77f0(gp)
lw t9,-0x71f0(gp)
bal 0x0017585c
_or a0,s0,zero
lbu v0,0x30(s0)
bne v0,zero,0x00175b3c
_lw gp,0x10(sp)
lw v0,0x38(s0)
bne s1,v0,0x00175b3c
_lw ra,0x24(sp)
lw s1,0x20(sp)
sw zero,0x38(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7228(gp)
lw a2,0x0(a0)
lw a0,0x0(v1)
bal 0x001727ac
_addiu a1,a1,-0x110
b 0x00175ae8
_lw gp,0x10(sp)
lw a2,-0x77f0(gp)
li a1,0x84
lw a0,-0x7fc4(gp)
lw t9,-0x7810(gp)
addiu a2,a2,0xc4
bal 0x0017db90
_addiu a0,a0,-0x7f8
(translation_unit "/* gold::File_read::unlock(gold::Task const*) */\n\nvoid __thiscall gold::File_read::unlock(File_read *this,Task *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}\n\n" comment (function_definition "void __thiscall gold::File_read::unlock(File_read *this,Task *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "unlock(File_read *this,Task *param_1)" identifier (parameter_list "(File_read *this,Task *param_1)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Task *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)PTR_parameters_004c19b4;" (assignment_expression "puVar1 = *(undefined4 **)PTR_parameters_004c19b4" identifier = (pointer_expression "*(undefined4 **)PTR_parameters_004c19b4" * (cast_expression "(undefined4 **)PTR_parameters_004c19b4" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }" if (parenthesized_expression "((puVar1[2] != 0) && ((puVar1[5] & 4) != 0))" ( (binary_expression "(puVar1[2] != 0) && ((puVar1[5] & 4) != 0)" (parenthesized_expression "(puVar1[2] != 0)" ( (binary_expression "puVar1[2] != 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((puVar1[5] & 4) != 0)" ( (binary_expression "(puVar1[5] & 4) != 0" (parenthesized_expression "(puVar1[5] & 4)" ( (binary_expression "puVar1[5] & 4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }" { (labeled_statement "Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);" statement_identifier : (ERROR ":" :) (expression_statement "debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);" (call_expression "debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this)" identifier (argument_list "((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this)" ( (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (binary_expression "PTR_s__s_004c1a50 + -0x110" identifier + number_literal) , (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;)) })) (expression_statement "release(this);" (call_expression "release(this)" identifier (argument_list "(this)" ( identifier ))) ;) (if_statement "if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }" if (parenthesized_expression "((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38)))" ( (binary_expression "(this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))" (parenthesized_expression "(this[0x30] == (File_read)0x0)" ( (binary_expression "this[0x30] == (File_read)0x0" (subscript_expression "this[0x30]" identifier [ number_literal ]) == (cast_expression "(File_read)0x0" ( (type_descriptor "File_read" type_identifier) ) number_literal)) )) && (parenthesized_expression "(param_1 == *(Task **)(this + 0x38))" ( (binary_expression "param_1 == *(Task **)(this + 0x38)" identifier == (pointer_expression "*(Task **)(this + 0x38)" * (cast_expression "(Task **)(this + 0x38)" ( (type_descriptor "Task **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }" { (expression_statement "*(undefined4 *)(this + 0x38) = 0;" (assignment_expression "*(undefined4 *)(this + 0x38) = 0" (pointer_expression "*(undefined4 *)(this + 0x38)" * (cast_expression "(undefined4 *)(this + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);" (call_expression "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" identifier (argument_list "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8" identifier + number_literal) , number_literal , (binary_expression "PTR_s__s_004c1a50 + 0xc4" identifier + number_literal) ))) ;) })))
(translation_unit "/* DWARF original prototype: void unlock(File_read * this, Task * task) */\n\nvoid __thiscall gold::File_read::unlock(File_read *this,Task *task)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);\n  }\n  release(this);\n  if (((this->token_).is_blocker_ == false) && (task == (this->token_).writer_)) {\n    (this->token_).writer_ = (Task *)0x0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}\n\n" comment (function_definition "void __thiscall gold::File_read::unlock(File_read *this,Task *task)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);\n  }\n  release(this);\n  if (((this->token_).is_blocker_ == false) && (task == (this->token_).writer_)) {\n    (this->token_).writer_ = (Task *)0x0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "unlock(File_read *this,Task *task)" identifier (parameter_list "(File_read *this,Task *task)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Task *task" type_identifier (pointer_declarator "*task" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);\n  }\n  release(this);\n  if (((this->token_).is_blocker_ == false) && (task == (this->token_).writer_)) {\n    (this->token_).writer_ = (Task *)0x0;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)PTR_parameters_004c19b4;" (assignment_expression "puVar1 = *(undefined4 **)PTR_parameters_004c19b4" identifier = (pointer_expression "*(undefined4 **)PTR_parameters_004c19b4" * (cast_expression "(undefined4 **)PTR_parameters_004c19b4" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);\n  }" if (parenthesized_expression "((puVar1[2] != 0) && ((puVar1[5] & 4) != 0))" ( (binary_expression "(puVar1[2] != 0) && ((puVar1[5] & 4) != 0)" (parenthesized_expression "(puVar1[2] != 0)" ( (binary_expression "puVar1[2] != 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((puVar1[5] & 4) != 0)" ( (binary_expression "(puVar1[5] & 4) != 0" (parenthesized_expression "(puVar1[5] & 4)" ( (binary_expression "puVar1[5] & 4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);\n  }" { (labeled_statement "Errors::debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);" statement_identifier : (ERROR ":" :) (expression_statement "debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p);" (call_expression "debug((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p)" identifier (argument_list "((Errors *)*puVar1,PTR_s__s_004c1a50 + -0x110,(this->name_)._M_dataplus._M_p)" ( (cast_expression "(Errors *)*puVar1" ( (type_descriptor "Errors *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (binary_expression "PTR_s__s_004c1a50 + -0x110" identifier + number_literal) , (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;)) })) (expression_statement "release(this);" (call_expression "release(this)" identifier (argument_list "(this)" ( identifier ))) ;) (if_statement "if (((this->token_).is_blocker_ == false) && (task == (this->token_).writer_)) {\n    (this->token_).writer_ = (Task *)0x0;\n    return;\n  }" if (parenthesized_expression "(((this->token_).is_blocker_ == false) && (task == (this->token_).writer_))" ( (binary_expression "((this->token_).is_blocker_ == false) && (task == (this->token_).writer_)" (parenthesized_expression "((this->token_).is_blocker_ == false)" ( (binary_expression "(this->token_).is_blocker_ == false" (field_expression "(this->token_).is_blocker_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) == false) )) && (parenthesized_expression "(task == (this->token_).writer_)" ( (binary_expression "task == (this->token_).writer_" identifier == (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier)) ))) )) (compound_statement "{\n    (this->token_).writer_ = (Task *)0x0;\n    return;\n  }" { (expression_statement "(this->token_).writer_ = (Task *)0x0;" (assignment_expression "(this->token_).writer_ = (Task *)0x0" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)0x0" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return;" return ;) })) comment (expression_statement "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);" (call_expression "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" identifier (argument_list "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8" identifier + number_literal) , number_literal , (binary_expression "PTR_s__s_004c1a50 + 0xc4" identifier + number_literal) ))) ;) })))
(translation_unit "void __thiscall gold::File_read::unlock(File_read *this,Task *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    \n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}\n\n" (function_definition "void __thiscall gold::File_read::unlock(File_read *this,Task *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    \n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "unlock(File_read *this,Task *param_1)" identifier (parameter_list "(File_read *this,Task *param_1)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Task *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    \n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = *(undefined4 **)PTR_parameters_004c19b4;" (assignment_expression "puVar1 = *(undefined4 **)PTR_parameters_004c19b4" identifier = (pointer_expression "*(undefined4 **)PTR_parameters_004c19b4" * (cast_expression "(undefined4 **)PTR_parameters_004c19b4" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }" if (parenthesized_expression "((puVar1[2] != 0) && ((puVar1[5] & 4) != 0))" ( (binary_expression "(puVar1[2] != 0) && ((puVar1[5] & 4) != 0)" (parenthesized_expression "(puVar1[2] != 0)" ( (binary_expression "puVar1[2] != 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((puVar1[5] & 4) != 0)" ( (binary_expression "(puVar1[5] & 4) != 0" (parenthesized_expression "(puVar1[5] & 4)" ( (binary_expression "puVar1[5] & 4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }" { (labeled_statement "Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);" statement_identifier : (ERROR ":" :) (expression_statement "debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);" (call_expression "debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this)" identifier (argument_list "((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this)" ( (cast_expression "(char *)*puVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (binary_expression "PTR_s__s_004c1a50 + -0x110" identifier + number_literal) , (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;)) })) (expression_statement "release(this);" (call_expression "release(this)" identifier (argument_list "(this)" ( identifier ))) ;) (if_statement "if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }" if (parenthesized_expression "((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38)))" ( (binary_expression "(this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))" (parenthesized_expression "(this[0x30] == (File_read)0x0)" ( (binary_expression "this[0x30] == (File_read)0x0" (subscript_expression "this[0x30]" identifier [ number_literal ]) == (cast_expression "(File_read)0x0" ( (type_descriptor "File_read" type_identifier) ) number_literal)) )) && (parenthesized_expression "(param_1 == *(Task **)(this + 0x38))" ( (binary_expression "param_1 == *(Task **)(this + 0x38)" identifier == (pointer_expression "*(Task **)(this + 0x38)" * (cast_expression "(Task **)(this + 0x38)" ( (type_descriptor "Task **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }" { (expression_statement "*(undefined4 *)(this + 0x38) = 0;" (assignment_expression "*(undefined4 *)(this + 0x38) = 0" (pointer_expression "*(undefined4 *)(this + 0x38)" * (cast_expression "(undefined4 *)(this + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);" (call_expression "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" identifier (argument_list "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8" identifier + number_literal) , number_literal , (binary_expression "PTR_s__s_004c1a50 + 0xc4" identifier + number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (cast_expression ( (type_descriptor TYPE) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) })))
(function_definition "void __thiscall gold::File_read::unlock(File_read *this,Task *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    \n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "gold::File_read::" (identifier "gold") (: ":") (: ":") (identifier "File_read") (: ":") (: ":")) (function_declarator "unlock(File_read *this,Task *param_1)" (identifier "unlock") (parameter_list "(File_read *this,Task *param_1)" (( "(") (parameter_declaration "File_read *this" (type_identifier "File_read") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "Task *param_1" (type_identifier "Task") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;\n  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }\n  release(this);\n  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }\n                    \n  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)PTR_parameters_004c19b4;" (assignment_expression "puVar1 = *(undefined4 **)PTR_parameters_004c19b4" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)PTR_parameters_004c19b4" (* "*") (cast_expression "(undefined4 **)PTR_parameters_004c19b4" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_parameters_004c19b4")))) (; ";")) (if_statement "if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }" (if "if") (parenthesized_expression "((puVar1[2] != 0) && ((puVar1[5] & 4) != 0))" (( "(") (binary_expression "(puVar1[2] != 0) && ((puVar1[5] & 4) != 0)" (parenthesized_expression "(puVar1[2] != 0)" (( "(") (binary_expression "puVar1[2] != 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((puVar1[5] & 4) != 0)" (( "(") (binary_expression "(puVar1[5] & 4) != 0" (parenthesized_expression "(puVar1[5] & 4)" (( "(") (binary_expression "puVar1[5] & 4" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);\n  }" ({ "{") (labeled_statement "Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);" (statement_identifier "Errors") (: ":") (ERROR ":" (: ":")) (expression_statement "debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);" (call_expression "debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this)" (identifier "debug") (argument_list "((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this)" (( "(") (cast_expression "(char *)*puVar1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (, ",") (binary_expression "PTR_s__s_004c1a50 + -0x110" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "-0x110")) (, ",") (pointer_expression "*(undefined4 *)this" (* "*") (cast_expression "(undefined4 *)this" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) () ")"))) (; ";"))) (} "}"))) (expression_statement "release(this);" (call_expression "release(this)" (identifier "release") (argument_list "(this)" (( "(") (identifier "this") () ")"))) (; ";")) (if_statement "if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38)))" (( "(") (binary_expression "(this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))" (parenthesized_expression "(this[0x30] == (File_read)0x0)" (( "(") (binary_expression "this[0x30] == (File_read)0x0" (subscript_expression "this[0x30]" (identifier "this") ([ "[") (number_literal "0x30") (] "]")) (== "==") (cast_expression "(File_read)0x0" (( "(") (type_descriptor "File_read" (type_identifier "File_read")) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 == *(Task **)(this + 0x38))" (( "(") (binary_expression "param_1 == *(Task **)(this + 0x38)" (identifier "param_1") (== "==") (pointer_expression "*(Task **)(this + 0x38)" (* "*") (cast_expression "(Task **)(this + 0x38)" (( "(") (type_descriptor "Task **" (type_identifier "Task") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x38)" (( "(") (binary_expression "this + 0x38" (identifier "this") (+ "+") (number_literal "0x38")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(this + 0x38) = 0;\n    return;\n  }" ({ "{") (expression_statement "*(undefined4 *)(this + 0x38) = 0;" (assignment_expression "*(undefined4 *)(this + 0x38) = 0" (pointer_expression "*(undefined4 *)(this + 0x38)" (* "*") (cast_expression "(undefined4 *)(this + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x38)" (( "(") (binary_expression "this + 0x38" (identifier "this") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4);" (call_expression "do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" (identifier "do_gold_unreachable") (argument_list "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,\n                      PTR_s__s_004c1a50 + 0xc4)" (( "(") (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8" (identifier "PTR_s_ral_options14Struct_no_crefE_004c127c") (+ "+") (number_literal "-0x7f8")) (, ",") (number_literal "0x84") (, ",") (binary_expression "PTR_s__s_004c1a50 + 0xc4" (identifier "PTR_s__s_004c1a50") (+ "+") (number_literal "0xc4")) () ")"))) (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))))) 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: (number_literal))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))))))

/* gold::File_read::MASKED(gold::Task const*) */

void __thiscall gold::File_read::MASKED(File_read *this,Task *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = *(undefined4 **)PTR_parameters_004c19b4;
  if ((puVar1[2] != 0) && ((puVar1[5] & 4) != 0)) {
    Errors::debug((char *)*puVar1,PTR_s__s_004c1a50 + -0x110,*(undefined4 *)this);
  }
  release(this);
  if ((this[0x30] == (File_read)0x0) && (param_1 == *(Task **)(this + 0x38))) {
    *(undefined4 *)(this + 0x38) = 0;
    return;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable(PTR_s_ral_options14Struct_no_crefE_004c127c + -0x7f8,0x84,
                      PTR_s__s_004c1a50 + 0xc4);
}

