
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void lock(File_read * this, Task * task) */

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

{
  Task_token *in_RDX;
  Task_token *extraout_RDX;
  char *t;
  File_read *this_00;
  
  if (this->released_ == false) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");
  }
  t = (char *)task;
  this_00 = this;
  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {
    this_00 = (File_read *)parameters->errors_;
    t = "Locking file \"%s\"";
    Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);
    in_RDX = extraout_RDX;
  }
  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {
    (this->token_).writer_ = task;
    this->released_ = false;
    return;
  }
                    /* WARNING: Subroutine does not return */
  Task_token::add_writer((Task_token *)this_00,(Task *)t,in_RDX);
}



void FUN_00179ad0(undefined8 *param_1,undefined8 param_2)

{
  if (*(char *)(param_1 + 0x15) != '\0') {
    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {
      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);
    }
    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {
      param_1[8] = param_2;
      *(undefined1 *)(param_1 + 0x15) = 0;
      return;
    }
    FUN_00179730();
  }
                    /* WARNING: Subroutine does not return */
  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
CMP byte ptr [RDI + 0xa8],0x0
JZ 0x00179b3b
MOV RAX,qword ptr [0x0043e6b0]
MOV RBX,RDI
MOV RBP,RSI
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00179af9
TEST byte ptr [RAX + 0x24],0x4
JNZ 0x00179b20
CMP byte ptr [RBX + 0x38],0x0
JNZ 0x00179b36
CMP qword ptr [RBX + 0x40],0x0
JNZ 0x00179b36
MOV qword ptr [RBX + 0x40],RBP
MOV byte ptr [RBX + 0xa8],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RDX,qword ptr [RDI]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x37289c]
XOR EAX,EAX
CALL 0x00178100
JMP 0x00179af9
CALL 0x00179730
LEA RDX,[0x372b56]
MOV ESI,0x127
LEA RDI,[0x372828]
CALL 0x0017c650
(translation_unit "void FUN_00179ad0(undefined8 *param_1,undefined8 param_2)\n\n{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}\n\n" (function_definition "void FUN_00179ad0(undefined8 *param_1,undefined8 param_2)\n\n{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}" primitive_type (function_declarator "FUN_00179ad0(undefined8 *param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}" { (if_statement "if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x15) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x15) != '\0'" (pointer_expression "*(char *)(param_1 + 0x15)" * (cast_expression "(char *)(param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }" { (if_statement "if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }" if (parenthesized_expression "((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0))" ( (binary_expression "(*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)" (parenthesized_expression "(*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0)" ( (binary_expression "*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0" (pointer_expression "*(long *)(PTR_DAT_0043e6b0 + 0x10)" * (cast_expression "(long *)(PTR_DAT_0043e6b0 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0043e6b0 + 0x10)" ( (binary_expression "PTR_DAT_0043e6b0 + 0x10" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((PTR_DAT_0043e6b0[0x24] & 4) != 0)" ( (binary_expression "(PTR_DAT_0043e6b0[0x24] & 4) != 0" (parenthesized_expression "(PTR_DAT_0043e6b0[0x24] & 4)" ( (binary_expression "PTR_DAT_0043e6b0[0x24] & 4" (subscript_expression "PTR_DAT_0043e6b0[0x24]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }" { (expression_statement "FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);" (call_expression "FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1)" identifier (argument_list "(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1)" ( (pointer_expression "*(undefined8 *)PTR_DAT_0043e6b0" * (cast_expression "(undefined8 *)PTR_DAT_0043e6b0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*param_1" * identifier) ))) ;) })) (if_statement "if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }" if (parenthesized_expression "((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0))" ( (binary_expression "(*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)" (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" ( (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[8] == 0)" ( (binary_expression "param_1[8] == 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }" { (expression_statement "param_1[8] = param_2;" (assignment_expression "param_1[8] = param_2" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x15) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x15) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x15)" * (cast_expression "(undefined1 *)(param_1 + 0x15)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00179730();" (call_expression "FUN_00179730()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);" (call_expression "FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56)" identifier (argument_list "("../../gold/fileread.cc",0x127,&DAT_00372b56)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_00372b56" & identifier) ))) ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void lock(File_read * this, Task * task) */\n\nvoid __thiscall gold::File_read::lock(File_read *this,Task *task)\n\n{\n  Task_token *in_RDX;\n  Task_token *extraout_RDX;\n  char *t;\n  File_read *this_00;\n  \n  if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }\n  t = (char *)task;\n  this_00 = this;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    this_00 = (File_read *)parameters->errors_;\n    t = "Locking file \"%s\"";\n    Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n    in_RDX = extraout_RDX;\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = task;\n    this->released_ = false;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer((Task_token *)this_00,(Task *)t,in_RDX);\n}\n\n" comment comment (function_definition "void __thiscall gold::File_read::lock(File_read *this,Task *task)\n\n{\n  Task_token *in_RDX;\n  Task_token *extraout_RDX;\n  char *t;\n  File_read *this_00;\n  \n  if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }\n  t = (char *)task;\n  this_00 = this;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    this_00 = (File_read *)parameters->errors_;\n    t = "Locking file \"%s\"";\n    Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n    in_RDX = extraout_RDX;\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = task;\n    this->released_ = false;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer((Task_token *)this_00,(Task *)t,in_RDX);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "lock(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  Task_token *in_RDX;\n  Task_token *extraout_RDX;\n  char *t;\n  File_read *this_00;\n  \n  if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }\n  t = (char *)task;\n  this_00 = this;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    this_00 = (File_read *)parameters->errors_;\n    t = "Locking file \"%s\"";\n    Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n    in_RDX = extraout_RDX;\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = task;\n    this->released_ = false;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer((Task_token *)this_00,(Task *)t,in_RDX);\n}" { (declaration "Task_token *in_RDX;" type_identifier (pointer_declarator "*in_RDX" * identifier) ;) (declaration "Task_token *extraout_RDX;" type_identifier (pointer_declarator "*extraout_RDX" * identifier) ;) (declaration "char *t;" primitive_type (pointer_declarator "*t" * identifier) ;) (declaration "File_read *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (if_statement "if (this->released_ == false) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }" if (parenthesized_expression "(this->released_ == false)" ( (binary_expression "this->released_ == false" (field_expression "this->released_" identifier -> field_identifier) == false) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/fileread.cc",0x127,"lock");" (call_expression "do_gold_unreachable("../../gold/fileread.cc",0x127,"lock")" identifier (argument_list "("../../gold/fileread.cc",0x127,"lock")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""lock"" " string_content ") ))) ;) })) (expression_statement "t = (char *)task;" (assignment_expression "t = (char *)task" identifier = (cast_expression "(char *)task" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "this_00 = this;" (assignment_expression "this_00 = this" identifier = identifier) ;) (if_statement "if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    this_00 = (File_read *)parameters->errors_;\n    t = "Locking file \"%s\"";\n    Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n    in_RDX = extraout_RDX;\n  }" if (parenthesized_expression "((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0))" ( (binary_expression "(parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)" (parenthesized_expression "(parameters->options_ != (General_options *)0x0)" ( (binary_expression "parameters->options_ != (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) != (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((parameters->debug_ & 4) != 0)" ( (binary_expression "(parameters->debug_ & 4) != 0" (parenthesized_expression "(parameters->debug_ & 4)" ( (binary_expression "parameters->debug_ & 4" (field_expression "parameters->debug_" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    this_00 = (File_read *)parameters->errors_;\n    t = "Locking file \"%s\"";\n    Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);\n    in_RDX = extraout_RDX;\n  }" { (expression_statement "this_00 = (File_read *)parameters->errors_;" (assignment_expression "this_00 = (File_read *)parameters->errors_" identifier = (cast_expression "(File_read *)parameters->errors_" ( (type_descriptor "File_read *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "parameters->errors_" identifier -> field_identifier))) ;) (expression_statement "t = "Locking file \"%s\"";" (assignment_expression "t = "Locking file \"%s\""" identifier = (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ")) ;) (labeled_statement "Errors::debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);" statement_identifier : (ERROR ":" :) (expression_statement "debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);" (call_expression "debug((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p)" identifier (argument_list "((Errors *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p)" ( (cast_expression "(Errors *)this_00" ( (type_descriptor "Errors *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (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 "in_RDX = extraout_RDX;" (assignment_expression "in_RDX = extraout_RDX" identifier = identifier) ;) })) (if_statement "if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = task;\n    this->released_ = false;\n    return;\n  }" if (parenthesized_expression "(((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0))" ( (binary_expression "((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)" (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 "((this->token_).writer_ == (Task *)0x0)" ( (binary_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)) ))) )) (compound_statement "{\n    (this->token_).writer_ = task;\n    this->released_ = false;\n    return;\n  }" { (expression_statement "(this->token_).writer_ = task;" (assignment_expression "(this->token_).writer_ = task" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "this->released_ = false;" (assignment_expression "this->released_ = false" (field_expression "this->released_" identifier -> field_identifier) = false) ;) (return_statement "return;" return ;) })) comment (labeled_statement "Task_token::add_writer((Task_token *)this_00,(Task *)t,in_RDX);" statement_identifier : (ERROR ":" :) (expression_statement "add_writer((Task_token *)this_00,(Task *)t,in_RDX);" (call_expression "add_writer((Task_token *)this_00,(Task *)t,in_RDX)" identifier (argument_list "((Task_token *)this_00,(Task *)t,in_RDX)" ( (cast_expression "(Task_token *)this_00" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(Task *)t" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;)) })))
(translation_unit "void FUN_00179ad0(undefined8 *param_1,undefined8 param_2)\n\n{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    \n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}\n\n" (function_definition "void FUN_00179ad0(undefined8 *param_1,undefined8 param_2)\n\n{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    \n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}" primitive_type (function_declarator "FUN_00179ad0(undefined8 *param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 *param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    \n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}" { (if_statement "if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x15) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x15) != '\0'" (pointer_expression "*(char *)(param_1 + 0x15)" * (cast_expression "(char *)(param_1 + 0x15)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }" { (if_statement "if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }" if (parenthesized_expression "((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0))" ( (binary_expression "(*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)" (parenthesized_expression "(*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0)" ( (binary_expression "*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0" (pointer_expression "*(long *)(PTR_DAT_0043e6b0 + 0x10)" * (cast_expression "(long *)(PTR_DAT_0043e6b0 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0043e6b0 + 0x10)" ( (binary_expression "PTR_DAT_0043e6b0 + 0x10" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((PTR_DAT_0043e6b0[0x24] & 4) != 0)" ( (binary_expression "(PTR_DAT_0043e6b0[0x24] & 4) != 0" (parenthesized_expression "(PTR_DAT_0043e6b0[0x24] & 4)" ( (binary_expression "PTR_DAT_0043e6b0[0x24] & 4" (subscript_expression "PTR_DAT_0043e6b0[0x24]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }" { (expression_statement "FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);" (call_expression "FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1)" identifier (argument_list "(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1)" ( (pointer_expression "*(undefined8 *)PTR_DAT_0043e6b0" * (cast_expression "(undefined8 *)PTR_DAT_0043e6b0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (string_literal ""Locking file \"%s\""" " string_content escape_sequence string_content escape_sequence ") , (pointer_expression "*param_1" * identifier) ))) ;) })) (if_statement "if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }" if (parenthesized_expression "((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0))" ( (binary_expression "(*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)" (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" ( (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" * (cast_expression "(char *)(param_1 + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[8] == 0)" ( (binary_expression "param_1[8] == 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }" { (expression_statement "param_1[8] = param_2;" (assignment_expression "param_1[8] = param_2" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 0x15) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x15) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x15)" * (cast_expression "(undefined1 *)(param_1 + 0x15)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00179730();" (call_expression "FUN_00179730()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);" (call_expression "FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56)" identifier (argument_list "("../../gold/fileread.cc",0x127,&DAT_00372b56)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_00372b56" & identifier) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (string_literal " string_content escape_sequence string_content escape_sequence ") , (pointer_expression * IDENT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (pointer_expression & IDENT) ))) ;) })))
(function_definition "void FUN_00179ad0(undefined8 *param_1,undefined8 param_2)\n\n{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    \n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}" (primitive_type "void") (function_declarator "FUN_00179ad0(undefined8 *param_1,undefined8 param_2)" (identifier "FUN_00179ad0") (parameter_list "(undefined8 *param_1,undefined8 param_2)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }\n                    \n  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);\n}" ({ "{") (if_statement "if (*(char *)(param_1 + 0x15) != '\0') {\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x15) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x15) != '\0'" (pointer_expression "*(char *)(param_1 + 0x15)" (* "*") (cast_expression "(char *)(param_1 + 0x15)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x15)" (( "(") (binary_expression "param_1 + 0x15" (identifier "param_1") (+ "+") (number_literal "0x15")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }\n    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }\n    FUN_00179730();\n  }" ({ "{") (if_statement "if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }" (if "if") (parenthesized_expression "((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0))" (( "(") (binary_expression "(*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)" (parenthesized_expression "(*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0)" (( "(") (binary_expression "*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0" (pointer_expression "*(long *)(PTR_DAT_0043e6b0 + 0x10)" (* "*") (cast_expression "(long *)(PTR_DAT_0043e6b0 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0043e6b0 + 0x10)" (( "(") (binary_expression "PTR_DAT_0043e6b0 + 0x10" (identifier "PTR_DAT_0043e6b0") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((PTR_DAT_0043e6b0[0x24] & 4) != 0)" (( "(") (binary_expression "(PTR_DAT_0043e6b0[0x24] & 4) != 0" (parenthesized_expression "(PTR_DAT_0043e6b0[0x24] & 4)" (( "(") (binary_expression "PTR_DAT_0043e6b0[0x24] & 4" (subscript_expression "PTR_DAT_0043e6b0[0x24]" (identifier "PTR_DAT_0043e6b0") ([ "[") (number_literal "0x24") (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);\n    }" ({ "{") (expression_statement "FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);" (call_expression "FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1)" (identifier "FUN_00178100") (argument_list "(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1)" (( "(") (pointer_expression "*(undefined8 *)PTR_DAT_0043e6b0" (* "*") (cast_expression "(undefined8 *)PTR_DAT_0043e6b0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0043e6b0"))) (, ",") (string_literal ""Locking file \"%s\""" (" """) (string_content "Locking file ") (escape_sequence "\"") (string_content "%s") (escape_sequence "\"") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0))" (( "(") (binary_expression "(*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)" (parenthesized_expression "(*(char *)(param_1 + 7) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 7) == '\0'" (pointer_expression "*(char *)(param_1 + 7)" (* "*") (cast_expression "(char *)(param_1 + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[8] == 0)" (( "(") (binary_expression "param_1[8] == 0" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      param_1[8] = param_2;\n      *(undefined1 *)(param_1 + 0x15) = 0;\n      return;\n    }" ({ "{") (expression_statement "param_1[8] = param_2;" (assignment_expression "param_1[8] = param_2" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x15) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x15) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x15)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x15)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x15)" (( "(") (binary_expression "param_1 + 0x15" (identifier "param_1") (+ "+") (number_literal "0x15")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00179730();" (call_expression "FUN_00179730()" (identifier "FUN_00179730") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);" (call_expression "FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56)" (identifier "FUN_0017c650") (argument_list "("../../gold/fileread.cc",0x127,&DAT_00372b56)" (( "(") (string_literal ""../../gold/fileread.cc"" (" """) (string_content "../../gold/fileread.cc") (" """)) (, ",") (number_literal "0x127") (, ",") (pointer_expression "&DAT_00372b56" (& "&") (identifier "DAT_00372b56")) () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void lock(File_read * this, Task * task) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *task)

{
  type_3 *in_RDX;
  type_3 *extraout_RDX;
  char *t;
  type_1 *this_00;
  
  if (this->released_ == false) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/fileread.cc",0x127,"lock");
  }
  t = (char *)task;
  this_00 = this;
  if ((parameters->options_ != (type_4 *)0x0) && ((parameters->debug_ & 4) != 0)) {
    this_00 = (type_1 *)parameters->errors_;
    t = "Locking file \"%s\"";
    Errors::var_2((type_5 *)this_00,"Locking file \"%s\"",(this->name_)._M_dataplus._M_p);
    in_RDX = extraout_RDX;
  }
  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (type_2 *)0x0)) {
    (this->token_).writer_ = task;
    this->released_ = false;
    return;
  }
                    /* WARNING: Subroutine does not return */
  Task_token::var_3((type_3 *)this_00,(type_2 *)t,in_RDX);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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 (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: (identifier))) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)) (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier))))))))

void MASKED(undefined8 *param_1,undefined8 param_2)

{
  if (*(char *)(param_1 + 0x15) != '\0') {
    if ((*(long *)(PTR_DAT_0043e6b0 + 0x10) != 0) && ((PTR_DAT_0043e6b0[0x24] & 4) != 0)) {
      FUN_00178100(*(undefined8 *)PTR_DAT_0043e6b0,"Locking file \"%s\"",*param_1);
    }
    if ((*(char *)(param_1 + 7) == '\0') && (param_1[8] == 0)) {
      param_1[8] = param_2;
      *(undefined1 *)(param_1 + 0x15) = 0;
      return;
    }
    FUN_00179730();
  }
                    /* WARNING: Subroutine does not return */
  FUN_0017c650("../../gold/fileread.cc",0x127,&DAT_00372b56);
}

