
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Variable defined which should be unmapped: s */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool open(File_read * this, Task * task, string * name) */

int __thiscall gold::File_read::open(File_read *this,char *__file,int __oflag,...)

{
  pointer pcVar1;
  uint __fildes;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  char *format;
  stat s;
  
  if ((this->token_).is_blocker_ != false) {
                    /* WARNING: Subroutine does not return */
    Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);
  }
  if (((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||
      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");
  }
  std::string::_M_assign((string *)this,(string *)__oflag);
  __fildes = Descriptors::open((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,
                               (int)(this->name_)._M_dataplus._M_p,0,0);
  this->descriptor_ = __fildes;
  if ((int)__fildes < 0) {
    return ~__fildes >> 0x1f;
  }
  this->is_descriptor_opened_ = true;
  iVar2 = __fxstat64(3,__fildes,(stat64 *)&s);
  if (iVar2 < 0) {
    piVar3 = __errno_location();
    pcVar4 = strerror(*piVar3);
    pcVar1 = (this->name_)._M_dataplus._M_p;
    format = (char *)gettext("%s: fstat failed: %s");
    gold_error(format,pcVar1,pcVar4);
  }
  *(undefined4 *)&this->size_ = (undefined4)s.st_size;
  *(undefined4 *)((int)&this->size_ + 4) = s.st_size._4_4_;
  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {
    Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)
    ;
  }
  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {
    (this->token_).writer_ = (Task *)__file;
    return (uint)~this->descriptor_ >> 0x1f;
  }
                    /* WARNING: Subroutine does not return */
  Task_token::add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_);
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  uint uVar2;
  int iVar3;
  int *piVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined1 local_7c [44];
  undefined4 local_50;
  undefined4 local_4c;
  undefined4 uStack_14;
  
  uStack_14 = 0x83749;
  if (*(char *)(param_1 + 0xb) == '\0') {
    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||
       (param_1[1] != 0)) {
                    /* WARNING: Subroutine does not return */
      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);
    }
    FUN_001b4080(param_1,param_3);
    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);
    param_1[6] = uVar2;
    if ((int)uVar2 < 0) {
      return ~uVar2 >> 0x1f;
    }
    *(undefined1 *)(param_1 + 7) = 1;
    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);
    if (iVar3 < 0) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar1 = *param_1;
      uVar6 = gettext("%s: fstat failed: %s");
      FUN_000828d0(uVar6,uVar1,pcVar5);
    }
    param_1[9] = local_50;
    param_1[10] = local_4c;
    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {
      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);
    }
    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {
      param_1[0xd] = param_2;
      return (uint)~param_1[6] >> 0x1f;
    }
  }
  else {
    FUN_000834d0();
  }
  uVar2 = FUN_00083500();
  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {
    return uVar2;
  }
  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),
                       *(undefined4 *)local_7c._4_4_,0,0);
  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;
  if (-1 < (int)uVar2) {
    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;
    return uVar2;
  }
  uVar1 = *(undefined4 *)local_7c._4_4_;
  uVar6 = gettext("could not reopen file %s");
                    /* WARNING: Subroutine does not return */
  FUN_00082870(uVar6,uVar1);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x2bb8b7
SUB ESP,0x6c
MOV ESI,dword ptr [ESP + 0x80]
CMP byte ptr [ESI + 0x2c],0x0
JNZ 0x0008389f
MOV EBP,dword ptr [ESI + 0x34]
TEST EBP,EBP
JNZ 0x00083884
MOV EDI,dword ptr [ESI + 0x18]
TEST EDI,EDI
JNS 0x00083884
CMP byte ptr [ESI + 0x1c],0x0
JNZ 0x00083884
MOV ECX,dword ptr [ESI + 0x4]
TEST ECX,ECX
JNZ 0x00083884
SUB ESP,0x8
PUSH dword ptr [ESP + 0x90]
PUSH ESI
CALL 0x001b4080
MOV dword ptr [ESP],0x0
PUSH 0x0
PUSH dword ptr [ESI]
PUSH -0x1
PUSH dword ptr [EBX + 0xfffffec8]
CALL 0x0016a740
ADD ESP,0x20
MOV dword ptr [ESI + 0x18],EAX
TEST EAX,EAX
JNS 0x000837d0
ADD ESP,0x6c
NOT EAX
POP EBX
SHR EAX,0x1f
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
MOV byte ptr [ESI + 0x1c],0x1
LEA EDX,[ESP + 0x4]
PUSH EDX
PUSH EAX
PUSH 0x3
CALL 0x00028910
ADD ESP,0x10
TEST EAX,EAX
JS 0x00083850
MOV EAX,dword ptr [ESP + 0x2c]
MOV EDX,dword ptr [ESP + 0x30]
MOV dword ptr [ESI + 0x24],EAX
LEA EAX,[EBX + 0x2f0]
MOV dword ptr [ESI + 0x28],EDX
MOV EAX,dword ptr [EAX]
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x00083824
TEST byte ptr [EAX + 0x14],0x4
JZ 0x00083824
SUB ESP,0x4
LEA EDX,[EBX + 0xfff136d6]
PUSH dword ptr [ESI]
PUSH EDX
PUSH dword ptr [EAX]
CALL 0x00082810
ADD ESP,0x10
CMP byte ptr [ESI + 0x2c],0x0
JNZ 0x000838a4
MOV EAX,dword ptr [ESI + 0x34]
TEST EAX,EAX
JNZ 0x000838a4
MOV EAX,dword ptr [ESP + 0x84]
MOV dword ptr [ESI + 0x34],EAX
MOV EAX,dword ptr [ESI + 0x18]
ADD ESP,0x6c
POP EBX
POP ESI
NOT EAX
POP EDI
POP EBP
SHR EAX,0x1f
RET
CALL 0x00028090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00028100
MOV EDI,dword ptr [ESI]
MOV EBP,EAX
LEA EAX,[EBX + 0xfff136c1]
MOV dword ptr [ESP],EAX
CALL 0x000283c0
ADD ESP,0xc
PUSH EBP
PUSH EDI
PUSH EAX
CALL 0x000828d0
ADD ESP,0x10
JMP 0x000837eb
SUB ESP,0x4
LEA EAX,[EBX + 0xfff139cc]
PUSH EAX
LEA EAX,[EBX + 0xfff13698]
PUSH 0xc5
PUSH EAX
CALL 0x0008b620
CALL 0x000834d0
CALL 0x00083500
NOP
LEA ESI,[ESI]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_00082870(uVar6,uVar1);\n}\n\n" comment (function_definition "uint FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_00082870(uVar6,uVar1);\n}" type_identifier (function_declarator "FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    /* WARNING: Subroutine does not return */\n  FUN_00082870(uVar6,uVar1);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined1 local_7c [44];" type_identifier (array_declarator "local_7c [44]" identifier [ number_literal ]) ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x83749;" (assignment_expression "uStack_14 = 0x83749" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" * (cast_expression "(char *)(param_1 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }" { (if_statement "if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }" if (parenthesized_expression "((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0))" ( (binary_expression "(((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)" (parenthesized_expression "(((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0'))" ( (binary_expression "((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')" (parenthesized_expression "((param_1[0xd] != 0) || (-1 < (int)param_1[6]))" ( (binary_expression "(param_1[0xd] != 0) || (-1 < (int)param_1[6])" (parenthesized_expression "(param_1[0xd] != 0)" ( (binary_expression "param_1[0xd] != 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(-1 < (int)param_1[6])" ( (binary_expression "-1 < (int)param_1[6]" number_literal < (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ))) )) || (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[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }" { comment (expression_statement "FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);" (call_expression "FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc)" identifier (argument_list "("../../gold/fileread.cc",0xc5,&DAT_002529cc)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_002529cc" & identifier) ))) ;) })) (expression_statement "FUN_001b4080(param_1,param_3);" (call_expression "FUN_001b4080(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);" (assignment_expression "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" identifier = (call_expression "FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" identifier (argument_list "(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" ( identifier , number_literal , (pointer_expression "*param_1" * identifier) , number_literal , number_literal )))) ;) (expression_statement "param_1[6] = uVar2;" (assignment_expression "param_1[6] = uVar2" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }" if (parenthesized_expression "((int)uVar2 < 0)" ( (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return ~uVar2 >> 0x1f;\n    }" { (return_statement "return ~uVar2 >> 0x1f;" return (binary_expression "~uVar2 >> 0x1f" (unary_expression "~uVar2" ~ identifier) >> number_literal) ;) })) (expression_statement "*(undefined1 *)(param_1 + 7) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 1" (pointer_expression "*(undefined1 *)(param_1 + 7)" * (cast_expression "(undefined1 *)(param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);" (assignment_expression "iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c)" identifier = (call_expression "__fxstat64(3,uVar2,(stat64 *)local_7c)" identifier (argument_list "(3,uVar2,(stat64 *)local_7c)" ( number_literal , identifier , (cast_expression "(stat64 *)local_7c" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext("%s: fstat failed: %s");" (assignment_expression "uVar6 = gettext("%s: fstat failed: %s")" identifier = (call_expression "gettext("%s: fstat failed: %s")" identifier (argument_list "("%s: fstat failed: %s")" ( (string_literal ""%s: fstat failed: %s"" " string_content ") )))) ;) (expression_statement "FUN_000828d0(uVar6,uVar1,pcVar5);" (call_expression "FUN_000828d0(uVar6,uVar1,pcVar5)" identifier (argument_list "(uVar6,uVar1,pcVar5)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "param_1[9] = local_50;" (assignment_expression "param_1[9] = local_50" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[10] = local_4c;" (assignment_expression "param_1[10] = local_4c" (subscript_expression "param_1[10]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }" if (parenthesized_expression "((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0))" ( (binary_expression "(DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (parenthesized_expression "(DAT_0033f2f0[2] != 0)" ( (binary_expression "DAT_0033f2f0[2] != 0" (subscript_expression "DAT_0033f2f0[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" ( (binary_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4)" ( (binary_expression "*(byte *)(DAT_0033f2f0 + 5) & 4" (pointer_expression "*(byte *)(DAT_0033f2f0 + 5)" * (cast_expression "(byte *)(DAT_0033f2f0 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 5)" ( (binary_expression "DAT_0033f2f0 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }" { (expression_statement "FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);" (call_expression "FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1)" identifier (argument_list "(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1)" ( (pointer_expression "*DAT_0033f2f0" * identifier) , (string_literal ""Attempt to open %s succeeded"" " string_content ") , (pointer_expression "*param_1" * identifier) ))) ;) })) (if_statement "if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }" if (parenthesized_expression "((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0))" ( (binary_expression "(*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)" (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" * (cast_expression "(char *)(param_1 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[0xd] == 0)" ( (binary_expression "param_1[0xd] == 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }" { (expression_statement "param_1[0xd] = param_2;" (assignment_expression "param_1[0xd] = param_2" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (return_statement "return (uint)~param_1[6] >> 0x1f;" return (binary_expression "(uint)~param_1[6] >> 0x1f" (cast_expression "(uint)~param_1[6]" ( (type_descriptor "uint" type_identifier) ) (unary_expression "~param_1[6]" ~ (subscript_expression "param_1[6]" identifier [ number_literal ]))) >> number_literal) ;) })) }) (else_clause "else {\n    FUN_000834d0();\n  }" else (compound_statement "{\n    FUN_000834d0();\n  }" { (expression_statement "FUN_000834d0();" (call_expression "FUN_000834d0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "uVar2 = FUN_00083500();" (assignment_expression "uVar2 = FUN_00083500()" identifier = (call_expression "FUN_00083500()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }" if (parenthesized_expression "(*(char *)(local_7c._4_4_ + 0x1c) != '\0')" ( (binary_expression "*(char *)(local_7c._4_4_ + 0x1c) != '\0'" (pointer_expression "*(char *)(local_7c._4_4_ + 0x1c)" * (cast_expression "(char *)(local_7c._4_4_ + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x1c)" ( (binary_expression "local_7c._4_4_ + 0x1c" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);" (assignment_expression "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" identifier = (call_expression "FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" identifier (argument_list "(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" ( identifier , (pointer_expression "*(undefined4 *)(local_7c._4_4_ + 0x18)" * (cast_expression "(undefined4 *)(local_7c._4_4_ + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x18)" ( (binary_expression "local_7c._4_4_ + 0x18" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) , (pointer_expression "*(undefined4 *)local_7c._4_4_" * (cast_expression "(undefined4 *)local_7c._4_4_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_7c._4_4_" identifier . field_identifier))) , number_literal , number_literal )))) ;) (expression_statement "*(uint *)(local_7c._4_4_ + 0x18) = uVar2;" (assignment_expression "*(uint *)(local_7c._4_4_ + 0x18) = uVar2" (pointer_expression "*(uint *)(local_7c._4_4_ + 0x18)" * (cast_expression "(uint *)(local_7c._4_4_ + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x18)" ( (binary_expression "local_7c._4_4_ + 0x18" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) = identifier) ;) (if_statement "if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }" { (expression_statement "*(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(local_7c._4_4_ + 0x1c) = 1" (pointer_expression "*(undefined1 *)(local_7c._4_4_ + 0x1c)" * (cast_expression "(undefined1 *)(local_7c._4_4_ + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x1c)" ( (binary_expression "local_7c._4_4_ + 0x1c" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) = number_literal) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)local_7c._4_4_;" (assignment_expression "uVar1 = *(undefined4 *)local_7c._4_4_" identifier = (pointer_expression "*(undefined4 *)local_7c._4_4_" * (cast_expression "(undefined4 *)local_7c._4_4_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_7c._4_4_" identifier . field_identifier)))) ;) (expression_statement "uVar6 = gettext("could not reopen file %s");" (assignment_expression "uVar6 = gettext("could not reopen file %s")" identifier = (call_expression "gettext("could not reopen file %s")" identifier (argument_list "("could not reopen file %s")" ( (string_literal ""could not reopen file %s"" " string_content ") )))) ;) comment (expression_statement "FUN_00082870(uVar6,uVar1);" (call_expression "FUN_00082870(uVar6,uVar1)" identifier (argument_list "(uVar6,uVar1)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Variable defined which should be unmapped: s */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: bool open(File_read * this, Task * task, string * name) */\n\nint __thiscall gold::File_read::open(File_read *this,char *__file,int __oflag,...)\n\n{\n  pointer pcVar1;\n  uint __fildes;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  stat s;\n  \n  if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);\n  }\n  if (((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");\n  }\n  std::string::_M_assign((string *)this,(string *)__oflag);\n  __fildes = Descriptors::open((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,\n                               (int)(this->name_)._M_dataplus._M_p,0,0);\n  this->descriptor_ = __fildes;\n  if ((int)__fildes < 0) {\n    return ~__fildes >> 0x1f;\n  }\n  this->is_descriptor_opened_ = true;\n  iVar2 = __fxstat64(3,__fildes,(stat64 *)&s);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    pcVar1 = (this->name_)._M_dataplus._M_p;\n    format = (char *)gettext("%s: fstat failed: %s");\n    gold_error(format,pcVar1,pcVar4);\n  }\n  *(undefined4 *)&this->size_ = (undefined4)s.st_size;\n  *(undefined4 *)((int)&this->size_ + 4) = s.st_size._4_4_;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = (Task *)__file;\n    return (uint)~this->descriptor_ >> 0x1f;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_);\n}\n\n" comment comment comment comment comment (function_definition "int __thiscall gold::File_read::open(File_read *this,char *__file,int __oflag,...)\n\n{\n  pointer pcVar1;\n  uint __fildes;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  stat s;\n  \n  if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);\n  }\n  if (((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");\n  }\n  std::string::_M_assign((string *)this,(string *)__oflag);\n  __fildes = Descriptors::open((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,\n                               (int)(this->name_)._M_dataplus._M_p,0,0);\n  this->descriptor_ = __fildes;\n  if ((int)__fildes < 0) {\n    return ~__fildes >> 0x1f;\n  }\n  this->is_descriptor_opened_ = true;\n  iVar2 = __fxstat64(3,__fildes,(stat64 *)&s);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    pcVar1 = (this->name_)._M_dataplus._M_p;\n    format = (char *)gettext("%s: fstat failed: %s");\n    gold_error(format,pcVar1,pcVar4);\n  }\n  *(undefined4 *)&this->size_ = (undefined4)s.st_size;\n  *(undefined4 *)((int)&this->size_ + 4) = s.st_size._4_4_;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = (Task *)__file;\n    return (uint)~this->descriptor_ >> 0x1f;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "open(File_read *this,char *__file,int __oflag,...)" identifier (parameter_list "(File_read *this,char *__file,int __oflag,...)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *__file" primitive_type (pointer_declarator "*__file" * identifier)) , (parameter_declaration "int __oflag" primitive_type identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  pointer pcVar1;\n  uint __fildes;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  char *format;\n  stat s;\n  \n  if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);\n  }\n  if (((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");\n  }\n  std::string::_M_assign((string *)this,(string *)__oflag);\n  __fildes = Descriptors::open((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,\n                               (int)(this->name_)._M_dataplus._M_p,0,0);\n  this->descriptor_ = __fildes;\n  if ((int)__fildes < 0) {\n    return ~__fildes >> 0x1f;\n  }\n  this->is_descriptor_opened_ = true;\n  iVar2 = __fxstat64(3,__fildes,(stat64 *)&s);\n  if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    pcVar1 = (this->name_)._M_dataplus._M_p;\n    format = (char *)gettext("%s: fstat failed: %s");\n    gold_error(format,pcVar1,pcVar4);\n  }\n  *(undefined4 *)&this->size_ = (undefined4)s.st_size;\n  *(undefined4 *)((int)&this->size_ + 4) = s.st_size._4_4_;\n  if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;\n  }\n  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = (Task *)__file;\n    return (uint)~this->descriptor_ >> 0x1f;\n  }\n                    /* WARNING: Subroutine does not return */\n  Task_token::add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_);\n}" { (declaration "pointer pcVar1;" type_identifier identifier ;) (declaration "uint __fildes;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "stat s;" type_identifier identifier ;) (if_statement "if ((this->token_).is_blocker_ != false) {\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);\n  }" if (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) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);\n  }" { comment (labeled_statement "Task_token::is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);" statement_identifier : (ERROR ":" :) (expression_statement "is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_);" (call_expression "is_writable((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_)" identifier (argument_list "((Task_token *)s.st_dev,(Task_token *)s.st_dev._4_4_)" ( (cast_expression "(Task_token *)s.st_dev" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s.st_dev" identifier . field_identifier)) , (cast_expression "(Task_token *)s.st_dev._4_4_" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s.st_dev._4_4_" (field_expression "s.st_dev" identifier . field_identifier) . field_identifier)) ))) ;)) })) (if_statement "if (((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");\n  }" if (parenthesized_expression "(((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0))" ( (binary_expression "((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)" (parenthesized_expression "((((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false))" ( (binary_expression "(((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)) ||\n      (this->is_descriptor_opened_ != false)" (parenthesized_expression "(((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_))" ( (binary_expression "((this->token_).writer_ != (Task *)0x0) || (-1 < this->descriptor_)" (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)) )) || (parenthesized_expression "(-1 < this->descriptor_)" ( (binary_expression "-1 < this->descriptor_" number_literal < (field_expression "this->descriptor_" identifier -> field_identifier)) ))) )) || (parenthesized_expression "(this->is_descriptor_opened_ != false)" ( (binary_expression "this->is_descriptor_opened_ != false" (field_expression "this->is_descriptor_opened_" identifier -> field_identifier) != false) ))) )) || (parenthesized_expression "((this->name_)._M_string_length != 0)" ( (binary_expression "(this->name_)._M_string_length != 0" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/fileread.cc",0xc5,"open");" (call_expression "do_gold_unreachable("../../gold/fileread.cc",0xc5,"open")" identifier (argument_list "("../../gold/fileread.cc",0xc5,"open")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""open"" " string_content ") ))) ;) })) (labeled_statement "std::string::_M_assign((string *)this,(string *)__oflag);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_assign((string *)this,(string *)__oflag);" statement_identifier : (ERROR ":" :) (expression_statement "_M_assign((string *)this,(string *)__oflag);" (call_expression "_M_assign((string *)this,(string *)__oflag)" identifier (argument_list "((string *)this,(string *)__oflag)" ( (cast_expression "(string *)this" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(string *)__oflag" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;))) (ERROR "__fildes = Descriptors::" (assignment_expression "__fildes = Descriptors" identifier = identifier) : :) (expression_statement "open((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,\n                               (int)(this->name_)._M_dataplus._M_p,0,0);" (call_expression "open((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,\n                               (int)(this->name_)._M_dataplus._M_p,0,0)" identifier (argument_list "((Descriptors *)PTR_descriptors_0033eec8,(char *)0xffffffff,\n                               (int)(this->name_)._M_dataplus._M_p,0,0)" ( (cast_expression "(Descriptors *)PTR_descriptors_0033eec8" ( (type_descriptor "Descriptors *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)0xffffffff" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int)(this->name_)._M_dataplus._M_p" ( (type_descriptor "int" primitive_type) ) (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)) , number_literal , number_literal ))) ;) (expression_statement "this->descriptor_ = __fildes;" (assignment_expression "this->descriptor_ = __fildes" (field_expression "this->descriptor_" identifier -> field_identifier) = identifier) ;) (if_statement "if ((int)__fildes < 0) {\n    return ~__fildes >> 0x1f;\n  }" if (parenthesized_expression "((int)__fildes < 0)" ( (binary_expression "(int)__fildes < 0" (cast_expression "(int)__fildes" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    return ~__fildes >> 0x1f;\n  }" { (return_statement "return ~__fildes >> 0x1f;" return (binary_expression "~__fildes >> 0x1f" (unary_expression "~__fildes" ~ identifier) >> number_literal) ;) })) (expression_statement "this->is_descriptor_opened_ = true;" (assignment_expression "this->is_descriptor_opened_ = true" (field_expression "this->is_descriptor_opened_" identifier -> field_identifier) = true) ;) (expression_statement "iVar2 = __fxstat64(3,__fildes,(stat64 *)&s);" (assignment_expression "iVar2 = __fxstat64(3,__fildes,(stat64 *)&s)" identifier = (call_expression "__fxstat64(3,__fildes,(stat64 *)&s)" identifier (argument_list "(3,__fildes,(stat64 *)&s)" ( number_literal , identifier , (cast_expression "(stat64 *)&s" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s" & identifier)) )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    pcVar1 = (this->name_)._M_dataplus._M_p;\n    format = (char *)gettext("%s: fstat failed: %s");\n    gold_error(format,pcVar1,pcVar4);\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    pcVar4 = strerror(*piVar3);\n    pcVar1 = (this->name_)._M_dataplus._M_p;\n    format = (char *)gettext("%s: fstat failed: %s");\n    gold_error(format,pcVar1,pcVar4);\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar4 = strerror(*piVar3);" (assignment_expression "pcVar4 = strerror(*piVar3)" identifier = (call_expression "strerror(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "pcVar1 = (this->name_)._M_dataplus._M_p;" (assignment_expression "pcVar1 = (this->name_)._M_dataplus._M_p" identifier = (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 "format = (char *)gettext("%s: fstat failed: %s");" (assignment_expression "format = (char *)gettext("%s: fstat failed: %s")" identifier = (cast_expression "(char *)gettext("%s: fstat failed: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: fstat failed: %s")" identifier (argument_list "("%s: fstat failed: %s")" ( (string_literal ""%s: fstat failed: %s"" " string_content ") ))))) ;) (expression_statement "gold_error(format,pcVar1,pcVar4);" (call_expression "gold_error(format,pcVar1,pcVar4)" identifier (argument_list "(format,pcVar1,pcVar4)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "*(undefined4 *)&this->size_ = (undefined4)s.st_size;" (assignment_expression "*(undefined4 *)&this->size_ = (undefined4)s.st_size" (pointer_expression "*(undefined4 *)&this->size_" * (cast_expression "(undefined4 *)&this->size_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->size_" & (field_expression "this->size_" identifier -> field_identifier)))) = (cast_expression "(undefined4)s.st_size" ( (type_descriptor "undefined4" type_identifier) ) (field_expression "s.st_size" identifier . field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&this->size_ + 4) = s.st_size._4_4_;" (assignment_expression "*(undefined4 *)((int)&this->size_ + 4) = s.st_size._4_4_" (pointer_expression "*(undefined4 *)((int)&this->size_ + 4)" * (cast_expression "(undefined4 *)((int)&this->size_ + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->size_ + 4)" ( (binary_expression "(int)&this->size_ + 4" (cast_expression "(int)&this->size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->size_" & (field_expression "this->size_" identifier -> field_identifier))) + number_literal) )))) = (field_expression "s.st_size._4_4_" (field_expression "s.st_size" identifier . field_identifier) . field_identifier)) ;) (if_statement "if ((parameters->options_ != (General_options *)0x0) && ((parameters->debug_ & 4) != 0)) {\n    Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;\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    Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;\n  }" { (labeled_statement "Errors::debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;" statement_identifier : (ERROR ":" :) (expression_statement "debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)\n    ;" (call_expression "debug(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)" identifier (argument_list "(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)" ( (field_expression "parameters->errors_" identifier -> field_identifier) , (string_literal ""Attempt to open %s succeeded"" " string_content ") , (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) ))) ;)) })) (if_statement "if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (Task *)0x0)) {\n    (this->token_).writer_ = (Task *)__file;\n    return (uint)~this->descriptor_ >> 0x1f;\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 *)__file;\n    return (uint)~this->descriptor_ >> 0x1f;\n  }" { (expression_statement "(this->token_).writer_ = (Task *)__file;" (assignment_expression "(this->token_).writer_ = (Task *)__file" (field_expression "(this->token_).writer_" (parenthesized_expression "(this->token_)" ( (field_expression "this->token_" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Task *)__file" ( (type_descriptor "Task *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return (uint)~this->descriptor_ >> 0x1f;" return (binary_expression "(uint)~this->descriptor_ >> 0x1f" (cast_expression "(uint)~this->descriptor_" ( (type_descriptor "uint" type_identifier) ) (unary_expression "~this->descriptor_" ~ (field_expression "this->descriptor_" identifier -> field_identifier))) >> number_literal) ;) })) comment (labeled_statement "Task_token::add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_);" statement_identifier : (ERROR ":" :) (expression_statement "add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_);" (call_expression "add_writer((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_)" identifier (argument_list "((Task_token *)s.st_dev,s.st_dev._4_4_,(Task_token *)s._8_4_)" ( (cast_expression "(Task_token *)s.st_dev" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s.st_dev" identifier . field_identifier)) , (field_expression "s.st_dev._4_4_" (field_expression "s.st_dev" identifier . field_identifier) . field_identifier) , (cast_expression "(Task_token *)s._8_4_" ( (type_descriptor "Task_token *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "s._8_4_" identifier . field_identifier)) ))) ;)) })))
(translation_unit "uint FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    \n  FUN_00082870(uVar6,uVar1);\n}\n\n" (function_definition "uint FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    \n  FUN_00082870(uVar6,uVar1);\n}" type_identifier (function_declarator "FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    \n  FUN_00082870(uVar6,uVar1);\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "undefined1 local_7c [44];" type_identifier (array_declarator "local_7c [44]" identifier [ number_literal ]) ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x83749;" (assignment_expression "uStack_14 = 0x83749" identifier = number_literal) ;) (if_statement "if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" * (cast_expression "(char *)(param_1 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }" { (if_statement "if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }" if (parenthesized_expression "((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0))" ( (binary_expression "(((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)" (parenthesized_expression "(((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0'))" ( (binary_expression "((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')" (parenthesized_expression "((param_1[0xd] != 0) || (-1 < (int)param_1[6]))" ( (binary_expression "(param_1[0xd] != 0) || (-1 < (int)param_1[6])" (parenthesized_expression "(param_1[0xd] != 0)" ( (binary_expression "param_1[0xd] != 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) != number_literal) )) || (parenthesized_expression "(-1 < (int)param_1[6])" ( (binary_expression "-1 < (int)param_1[6]" number_literal < (cast_expression "(int)param_1[6]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[6]" identifier [ number_literal ]))) ))) )) || (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[1] != 0)" ( (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }" { (expression_statement "FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);" (call_expression "FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc)" identifier (argument_list "("../../gold/fileread.cc",0xc5,&DAT_002529cc)" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (pointer_expression "&DAT_002529cc" & identifier) ))) ;) })) (expression_statement "FUN_001b4080(param_1,param_3);" (call_expression "FUN_001b4080(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);" (assignment_expression "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" identifier = (call_expression "FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" identifier (argument_list "(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" ( identifier , number_literal , (pointer_expression "*param_1" * identifier) , number_literal , number_literal )))) ;) (expression_statement "param_1[6] = uVar2;" (assignment_expression "param_1[6] = uVar2" (subscript_expression "param_1[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }" if (parenthesized_expression "((int)uVar2 < 0)" ( (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      return ~uVar2 >> 0x1f;\n    }" { (return_statement "return ~uVar2 >> 0x1f;" return (binary_expression "~uVar2 >> 0x1f" (unary_expression "~uVar2" ~ identifier) >> number_literal) ;) })) (expression_statement "*(undefined1 *)(param_1 + 7) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 1" (pointer_expression "*(undefined1 *)(param_1 + 7)" * (cast_expression "(undefined1 *)(param_1 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);" (assignment_expression "iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c)" identifier = (call_expression "__fxstat64(3,uVar2,(stat64 *)local_7c)" identifier (argument_list "(3,uVar2,(stat64 *)local_7c)" ( number_literal , identifier , (cast_expression "(stat64 *)local_7c" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" identifier = (call_expression "strerror(*piVar4)" identifier (argument_list "(*piVar4)" ( (pointer_expression "*piVar4" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar6 = gettext("%s: fstat failed: %s");" (assignment_expression "uVar6 = gettext("%s: fstat failed: %s")" identifier = (call_expression "gettext("%s: fstat failed: %s")" identifier (argument_list "("%s: fstat failed: %s")" ( (string_literal ""%s: fstat failed: %s"" " string_content ") )))) ;) (expression_statement "FUN_000828d0(uVar6,uVar1,pcVar5);" (call_expression "FUN_000828d0(uVar6,uVar1,pcVar5)" identifier (argument_list "(uVar6,uVar1,pcVar5)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "param_1[9] = local_50;" (assignment_expression "param_1[9] = local_50" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[10] = local_4c;" (assignment_expression "param_1[10] = local_4c" (subscript_expression "param_1[10]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }" if (parenthesized_expression "((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0))" ( (binary_expression "(DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (parenthesized_expression "(DAT_0033f2f0[2] != 0)" ( (binary_expression "DAT_0033f2f0[2] != 0" (subscript_expression "DAT_0033f2f0[2]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" ( (binary_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4)" ( (binary_expression "*(byte *)(DAT_0033f2f0 + 5) & 4" (pointer_expression "*(byte *)(DAT_0033f2f0 + 5)" * (cast_expression "(byte *)(DAT_0033f2f0 + 5)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 5)" ( (binary_expression "DAT_0033f2f0 + 5" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }" { (expression_statement "FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);" (call_expression "FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1)" identifier (argument_list "(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1)" ( (pointer_expression "*DAT_0033f2f0" * identifier) , (string_literal ""Attempt to open %s succeeded"" " string_content ") , (pointer_expression "*param_1" * identifier) ))) ;) })) (if_statement "if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }" if (parenthesized_expression "((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0))" ( (binary_expression "(*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)" (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" * (cast_expression "(char *)(param_1 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb)" ( (binary_expression "param_1 + 0xb" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(param_1[0xd] == 0)" ( (binary_expression "param_1[0xd] == 0" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }" { (expression_statement "param_1[0xd] = param_2;" (assignment_expression "param_1[0xd] = param_2" (subscript_expression "param_1[0xd]" identifier [ number_literal ]) = identifier) ;) (return_statement "return (uint)~param_1[6] >> 0x1f;" return (binary_expression "(uint)~param_1[6] >> 0x1f" (cast_expression "(uint)~param_1[6]" ( (type_descriptor "uint" type_identifier) ) (unary_expression "~param_1[6]" ~ (subscript_expression "param_1[6]" identifier [ number_literal ]))) >> number_literal) ;) })) }) (else_clause "else {\n    FUN_000834d0();\n  }" else (compound_statement "{\n    FUN_000834d0();\n  }" { (expression_statement "FUN_000834d0();" (call_expression "FUN_000834d0()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "uVar2 = FUN_00083500();" (assignment_expression "uVar2 = FUN_00083500()" identifier = (call_expression "FUN_00083500()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }" if (parenthesized_expression "(*(char *)(local_7c._4_4_ + 0x1c) != '\0')" ( (binary_expression "*(char *)(local_7c._4_4_ + 0x1c) != '\0'" (pointer_expression "*(char *)(local_7c._4_4_ + 0x1c)" * (cast_expression "(char *)(local_7c._4_4_ + 0x1c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x1c)" ( (binary_expression "local_7c._4_4_ + 0x1c" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);" (assignment_expression "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" identifier = (call_expression "FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" identifier (argument_list "(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" ( identifier , (pointer_expression "*(undefined4 *)(local_7c._4_4_ + 0x18)" * (cast_expression "(undefined4 *)(local_7c._4_4_ + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x18)" ( (binary_expression "local_7c._4_4_ + 0x18" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) , (pointer_expression "*(undefined4 *)local_7c._4_4_" * (cast_expression "(undefined4 *)local_7c._4_4_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_7c._4_4_" identifier . field_identifier))) , number_literal , number_literal )))) ;) (expression_statement "*(uint *)(local_7c._4_4_ + 0x18) = uVar2;" (assignment_expression "*(uint *)(local_7c._4_4_ + 0x18) = uVar2" (pointer_expression "*(uint *)(local_7c._4_4_ + 0x18)" * (cast_expression "(uint *)(local_7c._4_4_ + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x18)" ( (binary_expression "local_7c._4_4_ + 0x18" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) = identifier) ;) (if_statement "if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }" if (parenthesized_expression "(-1 < (int)uVar2)" ( (binary_expression "-1 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }" { (expression_statement "*(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(local_7c._4_4_ + 0x1c) = 1" (pointer_expression "*(undefined1 *)(local_7c._4_4_ + 0x1c)" * (cast_expression "(undefined1 *)(local_7c._4_4_ + 0x1c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_7c._4_4_ + 0x1c)" ( (binary_expression "local_7c._4_4_ + 0x1c" (field_expression "local_7c._4_4_" identifier . field_identifier) + number_literal) )))) = number_literal) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar1 = *(undefined4 *)local_7c._4_4_;" (assignment_expression "uVar1 = *(undefined4 *)local_7c._4_4_" identifier = (pointer_expression "*(undefined4 *)local_7c._4_4_" * (cast_expression "(undefined4 *)local_7c._4_4_" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "local_7c._4_4_" identifier . field_identifier)))) ;) (expression_statement "uVar6 = gettext("could not reopen file %s");" (assignment_expression "uVar6 = gettext("could not reopen file %s")" identifier = (call_expression "gettext("could not reopen file %s")" identifier (argument_list "("could not reopen file %s")" ( (string_literal ""could not reopen file %s"" " string_content ") )))) ;) (expression_statement "FUN_00082870(uVar6,uVar1);" (call_expression "FUN_00082870(uVar6,uVar1)" identifier (argument_list "(uVar6,uVar1)" ( identifier , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) || (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) || (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (pointer_expression & IDENT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * IDENT) , LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (return_statement return (binary_expression (unary_expression ~ IDENT) >> LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (string_literal " string_content ") , (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) ;) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression ~ (subscript_expression IDENT [ LIT ]))) >> LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT . field_identifier))) , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (field_expression IDENT . field_identifier)))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "uint FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    \n  FUN_00082870(uVar6,uVar1);\n}" (type_identifier "uint") (function_declarator "FUN_00083740(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00083740") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  uint uVar2;\n  int iVar3;\n  int *piVar4;\n  char *pcVar5;\n  undefined4 uVar6;\n  undefined1 local_7c [44];\n  undefined4 local_50;\n  undefined4 local_4c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x83749;\n  if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }\n  uVar2 = FUN_00083500();\n  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }\n  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);\n  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;\n  if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }\n  uVar1 = *(undefined4 *)local_7c._4_4_;\n  uVar6 = gettext("could not reopen file %s");\n                    \n  FUN_00082870(uVar6,uVar1);\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "undefined1 local_7c [44];" (type_identifier "undefined1") (array_declarator "local_7c [44]" (identifier "local_7c") ([ "[") (number_literal "44") (] "]")) (; ";")) (declaration "undefined4 local_50;" (type_identifier "undefined4") (identifier "local_50") (; ";")) (declaration "undefined4 local_4c;" (type_identifier "undefined4") (identifier "local_4c") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x83749;" (assignment_expression "uStack_14 = 0x83749" (identifier "uStack_14") (= "=") (number_literal "0x83749")) (; ";")) (if_statement "if (*(char *)(param_1 + 0xb) == '\0') {\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }\n  else {\n    FUN_000834d0();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" (* "*") (cast_expression "(char *)(param_1 + 0xb)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }\n    FUN_001b4080(param_1,param_3);\n    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);\n    param_1[6] = uVar2;\n    if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }\n    *(undefined1 *)(param_1 + 7) = 1;\n    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);\n    if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }\n    param_1[9] = local_50;\n    param_1[10] = local_4c;\n    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }\n    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }\n  }" ({ "{") (if_statement "if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)) {\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }" (if "if") (parenthesized_expression "((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0))" (( "(") (binary_expression "(((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||\n       (param_1[1] != 0)" (parenthesized_expression "(((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0'))" (( "(") (binary_expression "((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')" (parenthesized_expression "((param_1[0xd] != 0) || (-1 < (int)param_1[6]))" (( "(") (binary_expression "(param_1[0xd] != 0) || (-1 < (int)param_1[6])" (parenthesized_expression "(param_1[0xd] != 0)" (( "(") (binary_expression "param_1[0xd] != 0" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(-1 < (int)param_1[6])" (( "(") (binary_expression "-1 < (int)param_1[6]" (number_literal "-1") (< "<") (cast_expression "(int)param_1[6]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) () ")"))) () ")")) (|| "||") (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[1] != 0)" (( "(") (binary_expression "param_1[1] != 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                    \n      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);\n    }" ({ "{") (expression_statement "FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);" (call_expression "FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc)" (identifier "FUN_0008b620") (argument_list "("../../gold/fileread.cc",0xc5,&DAT_002529cc)" (( "(") (string_literal ""../../gold/fileread.cc"" (" """) (string_content "../../gold/fileread.cc") (" """)) (, ",") (number_literal "0xc5") (, ",") (pointer_expression "&DAT_002529cc" (& "&") (identifier "DAT_002529cc")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001b4080(param_1,param_3);" (call_expression "FUN_001b4080(param_1,param_3)" (identifier "FUN_001b4080") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);" (assignment_expression "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" (identifier "uVar2") (= "=") (call_expression "FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" (identifier "FUN_0016a740") (argument_list "(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0)" (( "(") (identifier "PTR_DAT_0033eec8") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "param_1[6] = uVar2;" (assignment_expression "param_1[6] = uVar2" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if ((int)uVar2 < 0) {\n      return ~uVar2 >> 0x1f;\n    }" (if "if") (parenthesized_expression "((int)uVar2 < 0)" (( "(") (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      return ~uVar2 >> 0x1f;\n    }" ({ "{") (return_statement "return ~uVar2 >> 0x1f;" (return "return") (binary_expression "~uVar2 >> 0x1f" (unary_expression "~uVar2" (~ "~") (identifier "uVar2")) (>> ">>") (number_literal "0x1f")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 7) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 7) = 1" (pointer_expression "*(undefined1 *)(param_1 + 7)" (* "*") (cast_expression "(undefined1 *)(param_1 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);" (assignment_expression "iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c)" (identifier "iVar3") (= "=") (call_expression "__fxstat64(3,uVar2,(stat64 *)local_7c)" (identifier "__fxstat64") (argument_list "(3,uVar2,(stat64 *)local_7c)" (( "(") (number_literal "3") (, ",") (identifier "uVar2") (, ",") (cast_expression "(stat64 *)local_7c" (( "(") (type_descriptor "stat64 *" (type_identifier "stat64") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_7c")) () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = __errno_location();\n      pcVar5 = strerror(*piVar4);\n      uVar1 = *param_1;\n      uVar6 = gettext("%s: fstat failed: %s");\n      FUN_000828d0(uVar6,uVar1,pcVar5);\n    }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar4);" (assignment_expression "pcVar5 = strerror(*piVar4)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar4)" (identifier "strerror") (argument_list "(*piVar4)" (( "(") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) () ")")))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar6 = gettext("%s: fstat failed: %s");" (assignment_expression "uVar6 = gettext("%s: fstat failed: %s")" (identifier "uVar6") (= "=") (call_expression "gettext("%s: fstat failed: %s")" (identifier "gettext") (argument_list "("%s: fstat failed: %s")" (( "(") (string_literal ""%s: fstat failed: %s"" (" """) (string_content "%s: fstat failed: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000828d0(uVar6,uVar1,pcVar5);" (call_expression "FUN_000828d0(uVar6,uVar1,pcVar5)" (identifier "FUN_000828d0") (argument_list "(uVar6,uVar1,pcVar5)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar1") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[9] = local_50;" (assignment_expression "param_1[9] = local_50" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "local_50")) (; ";")) (expression_statement "param_1[10] = local_4c;" (assignment_expression "param_1[10] = local_4c" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "local_4c")) (; ";")) (if_statement "if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }" (if "if") (parenthesized_expression "((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0))" (( "(") (binary_expression "(DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (parenthesized_expression "(DAT_0033f2f0[2] != 0)" (( "(") (binary_expression "DAT_0033f2f0[2] != 0" (subscript_expression "DAT_0033f2f0[2]" (identifier "DAT_0033f2f0") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4) != 0" (parenthesized_expression "(*(byte *)(DAT_0033f2f0 + 5) & 4)" (( "(") (binary_expression "*(byte *)(DAT_0033f2f0 + 5) & 4" (pointer_expression "*(byte *)(DAT_0033f2f0 + 5)" (* "*") (cast_expression "(byte *)(DAT_0033f2f0 + 5)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0033f2f0 + 5)" (( "(") (binary_expression "DAT_0033f2f0 + 5" (identifier "DAT_0033f2f0") (+ "+") (number_literal "5")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);\n    }" ({ "{") (expression_statement "FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);" (call_expression "FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1)" (identifier "FUN_00082810") (argument_list "(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1)" (( "(") (pointer_expression "*DAT_0033f2f0" (* "*") (identifier "DAT_0033f2f0")) (, ",") (string_literal ""Attempt to open %s succeeded"" (" """) (string_content "Attempt to open %s succeeded") (" """)) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0))" (( "(") (binary_expression "(*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)" (parenthesized_expression "(*(char *)(param_1 + 0xb) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xb) == '\0'" (pointer_expression "*(char *)(param_1 + 0xb)" (* "*") (cast_expression "(char *)(param_1 + 0xb)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb)" (( "(") (binary_expression "param_1 + 0xb" (identifier "param_1") (+ "+") (number_literal "0xb")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[0xd] == 0)" (( "(") (binary_expression "param_1[0xd] == 0" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      param_1[0xd] = param_2;\n      return (uint)~param_1[6] >> 0x1f;\n    }" ({ "{") (expression_statement "param_1[0xd] = param_2;" (assignment_expression "param_1[0xd] = param_2" (subscript_expression "param_1[0xd]" (identifier "param_1") ([ "[") (number_literal "0xd") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return (uint)~param_1[6] >> 0x1f;" (return "return") (binary_expression "(uint)~param_1[6] >> 0x1f" (cast_expression "(uint)~param_1[6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (unary_expression "~param_1[6]" (~ "~") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")))) (>> ">>") (number_literal "0x1f")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_000834d0();\n  }" (else "else") (compound_statement "{\n    FUN_000834d0();\n  }" ({ "{") (expression_statement "FUN_000834d0();" (call_expression "FUN_000834d0()" (identifier "FUN_000834d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "uVar2 = FUN_00083500();" (assignment_expression "uVar2 = FUN_00083500()" (identifier "uVar2") (= "=") (call_expression "FUN_00083500()" (identifier "FUN_00083500") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(*(char *)(local_7c._4_4_ + 0x1c) != '\0')" (( "(") (binary_expression "*(char *)(local_7c._4_4_ + 0x1c) != '\0'" (pointer_expression "*(char *)(local_7c._4_4_ + 0x1c)" (* "*") (cast_expression "(char *)(local_7c._4_4_ + 0x1c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_7c._4_4_ + 0x1c)" (( "(") (binary_expression "local_7c._4_4_ + 0x1c" (field_expression "local_7c._4_4_" (identifier "local_7c") (. ".") (field_identifier "_4_4_")) (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0);" (assignment_expression "uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" (identifier "uVar2") (= "=") (call_expression "FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" (identifier "FUN_0016a740") (argument_list "(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),\n                       *(undefined4 *)local_7c._4_4_,0,0)" (( "(") (identifier "PTR_DAT_0033eec8") (, ",") (pointer_expression "*(undefined4 *)(local_7c._4_4_ + 0x18)" (* "*") (cast_expression "(undefined4 *)(local_7c._4_4_ + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_7c._4_4_ + 0x18)" (( "(") (binary_expression "local_7c._4_4_ + 0x18" (field_expression "local_7c._4_4_" (identifier "local_7c") (. ".") (field_identifier "_4_4_")) (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)local_7c._4_4_" (* "*") (cast_expression "(undefined4 *)local_7c._4_4_" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "local_7c._4_4_" (identifier "local_7c") (. ".") (field_identifier "_4_4_")))) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(uint *)(local_7c._4_4_ + 0x18) = uVar2;" (assignment_expression "*(uint *)(local_7c._4_4_ + 0x18) = uVar2" (pointer_expression "*(uint *)(local_7c._4_4_ + 0x18)" (* "*") (cast_expression "(uint *)(local_7c._4_4_ + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_7c._4_4_ + 0x18)" (( "(") (binary_expression "local_7c._4_4_ + 0x18" (field_expression "local_7c._4_4_" (identifier "local_7c") (. ".") (field_identifier "_4_4_")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (-1 < (int)uVar2) {\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(-1 < (int)uVar2)" (( "(") (binary_expression "-1 < (int)uVar2" (number_literal "-1") (< "<") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) () ")")) (compound_statement "{\n    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;\n    return uVar2;\n  }" ({ "{") (expression_statement "*(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;" (assignment_expression "*(undefined1 *)(local_7c._4_4_ + 0x1c) = 1" (pointer_expression "*(undefined1 *)(local_7c._4_4_ + 0x1c)" (* "*") (cast_expression "(undefined1 *)(local_7c._4_4_ + 0x1c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_7c._4_4_ + 0x1c)" (( "(") (binary_expression "local_7c._4_4_ + 0x1c" (field_expression "local_7c._4_4_" (identifier "local_7c") (. ".") (field_identifier "_4_4_")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined4 *)local_7c._4_4_;" (assignment_expression "uVar1 = *(undefined4 *)local_7c._4_4_" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)local_7c._4_4_" (* "*") (cast_expression "(undefined4 *)local_7c._4_4_" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (field_expression "local_7c._4_4_" (identifier "local_7c") (. ".") (field_identifier "_4_4_"))))) (; ";")) (expression_statement "uVar6 = gettext("could not reopen file %s");" (assignment_expression "uVar6 = gettext("could not reopen file %s")" (identifier "uVar6") (= "=") (call_expression "gettext("could not reopen file %s")" (identifier "gettext") (argument_list "("could not reopen file %s")" (( "(") (string_literal ""could not reopen file %s"" (" """) (string_content "could not reopen file %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00082870(uVar6,uVar1);" (call_expression "FUN_00082870(uVar6,uVar1)" (identifier "FUN_00082870") (argument_list "(uVar6,uVar1)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Variable defined which should be unmapped: s */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool open(File_read * this, Task * task, string * name) */

int __thiscall gold::type_1::function_1(type_1 *this,char *__file,int __oflag,...)

{
  type_2 pcVar1;
  type_3 __fildes;
  int var_5;
  int *piVar3;
  char *pcVar4;
  char *format;
  type_4 s;
  
  if ((this->token_).is_blocker_ != false) {
                    /* WARNING: Subroutine does not return */
    Task_token::var_1((type_5 *)s.st_dev,(type_5 *)s.st_dev._4_4_);
  }
  if (((((this->token_).writer_ != (type_6 *)0x0) || (-1 < this->descriptor_)) ||
      (this->is_descriptor_opened_ != false)) || ((this->name_)._M_string_length != 0)) {
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/fileread.cc",0xc5,"open");
  }
  std::string::var_3((type_7 *)this,(type_7 *)__oflag);
  __fildes = type_8::function_1((type_8 *)PTR_descriptors_0033eec8,(char *)0xffffffff,
                               (int)(this->name_)._M_dataplus._M_p,0,0);
  this->descriptor_ = __fildes;
  if ((int)__fildes < 0) {
    return ~__fildes >> 0x1f;
  }
  this->is_descriptor_opened_ = true;
  var_5 = var_4(3,__fildes,(type_9 *)&s);
  if (var_5 < 0) {
    piVar3 = var_6();
    pcVar4 = var_7(*piVar3);
    pcVar1 = (this->name_)._M_dataplus._M_p;
    format = (char *)var_8("%s: fstat failed: %s");
    var_9(format,pcVar1,pcVar4);
  }
  *(type_10 *)&this->size_ = (type_10)s.st_size;
  *(type_10 *)((int)&this->size_ + 4) = s.st_size._4_4_;
  if ((parameters->options_ != (type_11 *)0x0) && ((parameters->debug_ & 4) != 0)) {
    Errors::var_10(parameters->errors_,"Attempt to open %s succeeded",(this->name_)._M_dataplus._M_p)
    ;
  }
  if (((this->token_).is_blocker_ == false) && ((this->token_).writer_ == (type_6 *)0x0)) {
    (this->token_).writer_ = (type_6 *)__file;
    return (type_3)~this->descriptor_ >> 0x1f;
  }
                    /* WARNING: Subroutine does not return */
  Task_token::var_11((type_5 *)s.st_dev,s.st_dev._4_4_,(type_5 *)s._8_4_);
}


(translation_unit (function_definition type: (type_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: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (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: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) right: (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 (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal))))) (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (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))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (string_literal (string_content)) (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))) (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (unary_expression argument: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (field_expression argument: (identifier) field: (field_identifier)))) (number_literal) (number_literal))))) (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: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) 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: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  uint uVar2;
  int iVar3;
  int *piVar4;
  char *pcVar5;
  undefined4 uVar6;
  undefined1 local_7c [44];
  undefined4 local_50;
  undefined4 local_4c;
  undefined4 uStack_14;
  
  uStack_14 = 0x83749;
  if (*(char *)(param_1 + 0xb) == '\0') {
    if ((((param_1[0xd] != 0) || (-1 < (int)param_1[6])) || (*(char *)(param_1 + 7) != '\0')) ||
       (param_1[1] != 0)) {
                    /* WARNING: Subroutine does not return */
      FUN_0008b620("../../gold/fileread.cc",0xc5,&DAT_002529cc);
    }
    FUN_001b4080(param_1,param_3);
    uVar2 = FUN_0016a740(PTR_DAT_0033eec8,0xffffffff,*param_1,0,0);
    param_1[6] = uVar2;
    if ((int)uVar2 < 0) {
      return ~uVar2 >> 0x1f;
    }
    *(undefined1 *)(param_1 + 7) = 1;
    iVar3 = __fxstat64(3,uVar2,(stat64 *)local_7c);
    if (iVar3 < 0) {
      piVar4 = __errno_location();
      pcVar5 = strerror(*piVar4);
      uVar1 = *param_1;
      uVar6 = gettext("%s: fstat failed: %s");
      FUN_000828d0(uVar6,uVar1,pcVar5);
    }
    param_1[9] = local_50;
    param_1[10] = local_4c;
    if ((DAT_0033f2f0[2] != 0) && ((*(byte *)(DAT_0033f2f0 + 5) & 4) != 0)) {
      FUN_00082810(*DAT_0033f2f0,"Attempt to open %s succeeded",*param_1);
    }
    if ((*(char *)(param_1 + 0xb) == '\0') && (param_1[0xd] == 0)) {
      param_1[0xd] = param_2;
      return (uint)~param_1[6] >> 0x1f;
    }
  }
  else {
    FUN_000834d0();
  }
  uVar2 = FUN_00083500();
  if (*(char *)(local_7c._4_4_ + 0x1c) != '\0') {
    return uVar2;
  }
  uVar2 = FUN_0016a740(PTR_DAT_0033eec8,*(undefined4 *)(local_7c._4_4_ + 0x18),
                       *(undefined4 *)local_7c._4_4_,0,0);
  *(uint *)(local_7c._4_4_ + 0x18) = uVar2;
  if (-1 < (int)uVar2) {
    *(undefined1 *)(local_7c._4_4_ + 0x1c) = 1;
    return uVar2;
  }
  uVar1 = *(undefined4 *)local_7c._4_4_;
  uVar6 = gettext("could not reopen file %s");
                    /* WARNING: Subroutine does not return */
  FUN_00082870(uVar6,uVar1);
}

