
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void open(Output_file * this, off_t file_size) */

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

{
  char *pcVar1;
  __mode_t __mask;
  int *piVar2;
  char *pcVar3;
  char *format;
  int iVar4;
  byte *pbVar5;
  byte *pbVar6;
  bool bVar7;
  bool bVar8;
  stat s;
  
  bVar7 = false;
  bVar8 = this->is_temporary_ == false;
  *(char **)&this->file_size_ = __file;
  *(int *)((int)&this->file_size_ + 4) = __oflag;
  if (!bVar8) goto LAB_000f1a06;
  __file = this->name_;
  iVar4 = 2;
  pbVar5 = (byte *)__file;
  pbVar6 = &DAT_0028d758;
  do {
    if (iVar4 == 0) break;
    iVar4 = iVar4 + -1;
    bVar7 = *pbVar5 < *pbVar6;
    bVar8 = *pbVar5 == *pbVar6;
    pbVar5 = pbVar5 + 1;
    pbVar6 = pbVar6 + 1;
  } while (bVar8);
  if ((!bVar7 && !bVar8) == bVar7) {
    this->o_ = 1;
    goto LAB_000f1a06;
  }
  iVar4 = __xstat64(3,__file,(stat64 *)&s);
  if ((iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000)) {
    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {
      unlink(this->name_);
      goto LAB_000f1a3d;
    }
    if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;
    iVar4 = 0x1b6;
    if ((parameters->options_->relocatable_).value == false) {
      __mask = umask(0);
      umask(__mask);
      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;
      chmod(this->name_,~__mask & s.st_mode);
      goto LAB_000f1a3d;
    }
  }
  else {
LAB_000f1a3d:
    if (parameters->options_ == (General_options *)0x0) {
LAB_000f1b40:
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
    }
    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;
  }
  __file = (char *)Descriptors::open((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,
                                     (int)this->name_,0x242,iVar4);
  if ((int)__file < 0) {
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    pcVar1 = this->name_;
    format = (char *)gettext("%s: open: %s");
                    /* WARNING: Subroutine does not return */
    gold_fatal(format,pcVar1,pcVar3);
  }
  this->o_ = (int)__file;
LAB_000f1a06:
  map(this);
  return (int)__file;
}



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

void FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  __mode_t __mask;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  stat64 local_7c;
  undefined4 uStack_14;
  
  uStack_14 = 0xf19b9;
  bVar8 = false;
  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';
  param_1[2] = param_2;
  param_1[3] = param_3;
  if (!bVar9) goto LAB_000f1a06;
  iVar5 = 2;
  pbVar6 = (byte *)*param_1;
  pbVar7 = &DAT_0028d758;
  do {
    if (iVar5 == 0) break;
    iVar5 = iVar5 + -1;
    bVar8 = *pbVar6 < *pbVar7;
    bVar9 = *pbVar6 == *pbVar7;
    pbVar6 = pbVar6 + 1;
    pbVar7 = pbVar7 + 1;
  } while (bVar9);
  if ((!bVar8 && !bVar9) == bVar8) {
    param_1[1] = 1;
    goto LAB_000f1a06;
  }
  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);
  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {
    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {
      unlink((char *)*param_1);
      goto LAB_000f1a3d;
    }
    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;
    iVar5 = 0x1b6;
    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {
      __mask = umask(0);
      umask(__mask);
      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;
      chmod((char *)*param_1,~__mask & local_7c.st_mode);
      goto LAB_000f1a3d;
    }
  }
  else {
LAB_000f1a3d:
    if (*(int *)(DAT_0038f378 + 8) == 0) {
LAB_000f1b40:
                    /* WARNING: Subroutine does not return */
      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);
    }
    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;
  }
  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);
  if (iVar5 < 0) {
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    uVar1 = *param_1;
    uVar4 = gettext("%s: open: %s");
                    /* WARNING: Subroutine does not return */
    FUN_00065450(uVar4,uVar1,pcVar3);
  }
  param_1[1] = iVar5;
LAB_000f1a06:
  FUN_000f1900(param_1);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x29d647
SUB ESP,0x6c
MOV EBP,dword ptr [ESP + 0x80]
MOV EAX,dword ptr [ESP + 0x84]
MOV EDX,dword ptr [ESP + 0x88]
CMP byte ptr [EBP + 0x16],0x0
MOV dword ptr [EBP + 0x8],EAX
MOV dword ptr [EBP + 0xc],EDX
JNZ 0x000f1a06
MOV EAX,dword ptr [EBP]
MOV ECX,0x2
LEA EDI,[EBX + 0xffefe758]
MOV ESI,EAX
CMPSB.REPE ES:EDI,ESI
SETA DL
SBB DL,0x0
TEST DL,DL
JNZ 0x000f1a20
MOV dword ptr [EBP + 0x4],0x1
SUB ESP,0xc
PUSH EBP
CALL 0x000f1900
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EDX,[ESP + 0x4]
PUSH EDX
PUSH EAX
PUSH 0x3
CALL 0x000291b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000f1a88
LEA ESI,[EBX + 0x378]
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000f1b40
CMP byte ptr [EAX + 0x318d],0x1
SBB EAX,EAX
AND EAX,0x49
ADD EAX,0x1b6
SUB ESP,0xc
PUSH EAX
PUSH 0x242
PUSH dword ptr [EBP]
PUSH -0x1
PUSH dword ptr [EBX + 0xfffffeac]
CALL 0x001a0bd0
ADD ESP,0x20
TEST EAX,EAX
JS 0x000f1b13
MOV dword ptr [EBP + 0x4],EAX
JMP 0x000f1a06
MOV EAX,dword ptr [ESP + 0x10]
AND EAX,0xd000
CMP EAX,0x8000
JNZ 0x000f1a37
MOV EAX,dword ptr [ESP + 0x30]
OR EAX,dword ptr [ESP + 0x2c]
JNZ 0x000f1b00
LEA ESI,[EBX + 0x378]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x000f1b40
CMP byte ptr [EDX + 0x318d],0x0
MOV EAX,0x1b6
JNZ 0x000f1a5b
SUB ESP,0xc
PUSH 0x0
CALL 0x00029550
MOV dword ptr [ESP],EAX
MOV EDI,EAX
CALL 0x00029550
MOV EDX,dword ptr [ESP + 0x20]
NOT EDI
MOV EAX,EDX
SHR EAX,0x2
AND EAX,0x49
OR EAX,EDX
AND EDI,EAX
MOV dword ptr [ESP + 0x20],EAX
POP EDX
POP ECX
PUSH EDI
PUSH dword ptr [EBP]
CALL 0x00029360
ADD ESP,0x10
JMP 0x000f1a3d
SUB ESP,0xc
PUSH dword ptr [EBP]
CALL 0x00029640
ADD ESP,0x10
JMP 0x000f1a37
CALL 0x00029090
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x00029100
MOV ESI,dword ptr [EBP]
MOV EDI,EAX
LEA EAX,[EBX + 0xfff033bc]
MOV dword ptr [ESP],EAX
CALL 0x000293b0
ADD ESP,0xc
PUSH EDI
PUSH ESI
PUSH EAX
CALL 0x00065450
LEA EAX,[EBX + 0xfff05318]
PUSH ESI
PUSH EAX
LEA EAX,[EBX + 0xffef8210]
PUSH 0x5c
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000f19b0(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  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "__mode_t __mask;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "stat64 local_7c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xf19b9;" (assignment_expression "uStack_14 = 0xf19b9" identifier = number_literal) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = *(char *)((int)param_1 + 0x16) == '\0';" (assignment_expression "bVar9 = *(char *)((int)param_1 + 0x16) == '\0'" identifier = (binary_expression "*(char *)((int)param_1 + 0x16) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x16)" * (cast_expression "(char *)((int)param_1 + 0x16)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x16)" ( (binary_expression "(int)param_1 + 0x16" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (!bVar9) goto LAB_000f1a06;" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (goto_statement "goto LAB_000f1a06;" goto statement_identifier ;)) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "pbVar6 = (byte *)*param_1;" (assignment_expression "pbVar6 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar7 = &DAT_0028d758;" (assignment_expression "pbVar7 = &DAT_0028d758" identifier = (pointer_expression "&DAT_0028d758" & identifier)) ;) (do_statement "do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);" do (compound_statement "{\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  }" { (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }" { (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_000f1a06;" goto statement_identifier ;) })) (expression_statement "iVar5 = __xstat64(3,(char *)*param_1,&local_7c);" (assignment_expression "iVar5 = __xstat64(3,(char *)*param_1,&local_7c)" identifier = (call_expression "__xstat64(3,(char *)*param_1,&local_7c)" identifier (argument_list "(3,(char *)*param_1,&local_7c)" ( number_literal , (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (pointer_expression "&local_7c" & identifier) )))) ;) (if_statement "if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" if (parenthesized_expression "((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000))" ( (binary_expression "(iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "((local_7c.st_mode & 0xd000) == 0x8000)" ( (binary_expression "(local_7c.st_mode & 0xd000) == 0x8000" (parenthesized_expression "(local_7c.st_mode & 0xd000)" ( (binary_expression "local_7c.st_mode & 0xd000" (field_expression "local_7c.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }" { (if_statement "if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }" if (parenthesized_expression "(local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0)" ( (binary_expression "local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0" (binary_expression "local_7c.st_size._4_4_ != 0" (field_expression "local_7c.st_size._4_4_" (field_expression "local_7c.st_size" identifier . field_identifier) . field_identifier) != number_literal) || (binary_expression "(int)local_7c.st_size != 0" (cast_expression "(int)local_7c.st_size" ( (type_descriptor "int" primitive_type) ) (field_expression "local_7c.st_size" identifier . field_identifier)) != number_literal)) )) (compound_statement "{\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }" { (expression_statement "unlink((char *)*param_1);" (call_expression "unlink((char *)*param_1)" identifier (argument_list "((char *)*param_1)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (goto_statement "goto LAB_000f1a3d;" goto statement_identifier ;) })) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000f1b40;" goto statement_identifier ;)) (expression_statement "iVar5 = 0x1b6;" (assignment_expression "iVar5 = 0x1b6" identifier = number_literal) ;) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }" { (expression_statement "__mask = umask(0);" (assignment_expression "__mask = umask(0)" identifier = (call_expression "umask(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "umask(__mask);" (call_expression "umask(__mask)" identifier (argument_list "(__mask)" ( identifier ))) ;) (expression_statement "local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;" (assignment_expression "local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode" (field_expression "local_7c.st_mode" identifier . field_identifier) = (binary_expression "local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode" (binary_expression "local_7c.st_mode >> 2 & 0x49" (binary_expression "local_7c.st_mode >> 2" (field_expression "local_7c.st_mode" identifier . field_identifier) >> number_literal) & number_literal) | (field_expression "local_7c.st_mode" identifier . field_identifier))) ;) (expression_statement "chmod((char *)*param_1,~__mask & local_7c.st_mode);" (call_expression "chmod((char *)*param_1,~__mask & local_7c.st_mode)" identifier (argument_list "((char *)*param_1,~__mask & local_7c.st_mode)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (binary_expression "~__mask & local_7c.st_mode" (unary_expression "~__mask" ~ identifier) & (field_expression "local_7c.st_mode" identifier . field_identifier)) ))) ;) (goto_statement "goto LAB_000f1a3d;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" else (compound_statement "{\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" { (labeled_statement "LAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" statement_identifier : (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" { (labeled_statement "LAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);" statement_identifier : comment (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",&DAT_0038f378)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , (pointer_expression "&DAT_0038f378" & identifier) ))) ;)) }))) (expression_statement "iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;" (assignment_expression "iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6" identifier = (binary_expression "(-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6" (parenthesized_expression "(-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49)" ( (binary_expression "-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49" (unary_expression "-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" - (call_expression "(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);" (assignment_expression "iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" identifier = (call_expression "FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" identifier (argument_list "(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" ( identifier , number_literal , (pointer_expression "*param_1" * identifier) , number_literal , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = gettext("%s: open: %s");" (assignment_expression "uVar4 = gettext("%s: open: %s")" identifier = (call_expression "gettext("%s: open: %s")" identifier (argument_list "("%s: open: %s")" ( (string_literal ""%s: open: %s"" " string_content ") )))) ;) comment (expression_statement "FUN_00065450(uVar4,uVar1,pcVar3);" (call_expression "FUN_00065450(uVar4,uVar1,pcVar3)" identifier (argument_list "(uVar4,uVar1,pcVar3)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_000f1a06:\n  FUN_000f1900(param_1);" statement_identifier : (expression_statement "FUN_000f1900(param_1);" (call_expression "FUN_000f1900(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void open(Output_file * this, off_t file_size) */\n\nint __thiscall gold::Output_file::open(Output_file *this,char *__file,int __oflag,...)\n\n{\n  char *pcVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  char *format;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  stat s;\n  \n  bVar7 = false;\n  bVar8 = this->is_temporary_ == false;\n  *(char **)&this->file_size_ = __file;\n  *(int *)((int)&this->file_size_ + 4) = __oflag;\n  if (!bVar8) goto LAB_000f1a06;\n  __file = this->name_;\n  iVar4 = 2;\n  pbVar5 = (byte *)__file;\n  pbVar6 = &DAT_0028d758;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + 1;\n    pbVar6 = pbVar6 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) == bVar7) {\n    this->o_ = 1;\n    goto LAB_000f1a06;\n  }\n  iVar4 = __xstat64(3,__file,(stat64 *)&s);\n  if ((iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000)) {\n    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }\n    if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;\n    iVar4 = 0x1b6;\n    if ((parameters->options_->relocatable_).value == false) {\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;\n  }\n  __file = (char *)Descriptors::open((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,\n                                     (int)this->name_,0x242,iVar4);\n  if ((int)__file < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    pcVar1 = this->name_;\n    format = (char *)gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    gold_fatal(format,pcVar1,pcVar3);\n  }\n  this->o_ = (int)__file;\nLAB_000f1a06:\n  map(this);\n  return (int)__file;\n}\n\n" comment comment comment (function_definition "int __thiscall gold::Output_file::open(Output_file *this,char *__file,int __oflag,...)\n\n{\n  char *pcVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  char *format;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  stat s;\n  \n  bVar7 = false;\n  bVar8 = this->is_temporary_ == false;\n  *(char **)&this->file_size_ = __file;\n  *(int *)((int)&this->file_size_ + 4) = __oflag;\n  if (!bVar8) goto LAB_000f1a06;\n  __file = this->name_;\n  iVar4 = 2;\n  pbVar5 = (byte *)__file;\n  pbVar6 = &DAT_0028d758;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + 1;\n    pbVar6 = pbVar6 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) == bVar7) {\n    this->o_ = 1;\n    goto LAB_000f1a06;\n  }\n  iVar4 = __xstat64(3,__file,(stat64 *)&s);\n  if ((iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000)) {\n    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }\n    if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;\n    iVar4 = 0x1b6;\n    if ((parameters->options_->relocatable_).value == false) {\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;\n  }\n  __file = (char *)Descriptors::open((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,\n                                     (int)this->name_,0x242,iVar4);\n  if ((int)__file < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    pcVar1 = this->name_;\n    format = (char *)gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    gold_fatal(format,pcVar1,pcVar3);\n  }\n  this->o_ = (int)__file;\nLAB_000f1a06:\n  map(this);\n  return (int)__file;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_file::" identifier : : identifier : :) (function_declarator "open(Output_file *this,char *__file,int __oflag,...)" identifier (parameter_list "(Output_file *this,char *__file,int __oflag,...)" ( (parameter_declaration "Output_file *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  char *pcVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  char *format;\n  int iVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  bool bVar7;\n  bool bVar8;\n  stat s;\n  \n  bVar7 = false;\n  bVar8 = this->is_temporary_ == false;\n  *(char **)&this->file_size_ = __file;\n  *(int *)((int)&this->file_size_ + 4) = __oflag;\n  if (!bVar8) goto LAB_000f1a06;\n  __file = this->name_;\n  iVar4 = 2;\n  pbVar5 = (byte *)__file;\n  pbVar6 = &DAT_0028d758;\n  do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + 1;\n    pbVar6 = pbVar6 + 1;\n  } while (bVar8);\n  if ((!bVar7 && !bVar8) == bVar7) {\n    this->o_ = 1;\n    goto LAB_000f1a06;\n  }\n  iVar4 = __xstat64(3,__file,(stat64 *)&s);\n  if ((iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000)) {\n    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }\n    if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;\n    iVar4 = 0x1b6;\n    if ((parameters->options_->relocatable_).value == false) {\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;\n  }\n  __file = (char *)Descriptors::open((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,\n                                     (int)this->name_,0x242,iVar4);\n  if ((int)__file < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    pcVar1 = this->name_;\n    format = (char *)gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    gold_fatal(format,pcVar1,pcVar3);\n  }\n  this->o_ = (int)__file;\nLAB_000f1a06:\n  map(this);\n  return (int)__file;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "__mode_t __mask;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "stat s;" type_identifier identifier ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = this->is_temporary_ == false;" (assignment_expression "bVar8 = this->is_temporary_ == false" identifier = (binary_expression "this->is_temporary_ == false" (field_expression "this->is_temporary_" identifier -> field_identifier) == false)) ;) (expression_statement "*(char **)&this->file_size_ = __file;" (assignment_expression "*(char **)&this->file_size_ = __file" (pointer_expression "*(char **)&this->file_size_" * (cast_expression "(char **)&this->file_size_" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&this->file_size_" & (field_expression "this->file_size_" identifier -> field_identifier)))) = identifier) ;) (expression_statement "*(int *)((int)&this->file_size_ + 4) = __oflag;" (assignment_expression "*(int *)((int)&this->file_size_ + 4) = __oflag" (pointer_expression "*(int *)((int)&this->file_size_ + 4)" * (cast_expression "(int *)((int)&this->file_size_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&this->file_size_ + 4)" ( (binary_expression "(int)&this->file_size_ + 4" (cast_expression "(int)&this->file_size_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&this->file_size_" & (field_expression "this->file_size_" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if (!bVar8) goto LAB_000f1a06;" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (goto_statement "goto LAB_000f1a06;" goto statement_identifier ;)) (expression_statement "__file = this->name_;" (assignment_expression "__file = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (expression_statement "pbVar5 = (byte *)__file;" (assignment_expression "pbVar5 = (byte *)__file" identifier = (cast_expression "(byte *)__file" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar6 = &DAT_0028d758;" (assignment_expression "pbVar6 = &DAT_0028d758" identifier = (pointer_expression "&DAT_0028d758" & identifier)) ;) (do_statement "do {\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + 1;\n    pbVar6 = pbVar6 + 1;\n  } while (bVar8);" do (compound_statement "{\n    if (iVar4 == 0) break;\n    iVar4 = iVar4 + -1;\n    bVar7 = *pbVar5 < *pbVar6;\n    bVar8 = *pbVar5 == *pbVar6;\n    pbVar5 = pbVar5 + 1;\n    pbVar6 = pbVar6 + 1;\n  }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar8) == bVar7) {\n    this->o_ = 1;\n    goto LAB_000f1a06;\n  }" if (parenthesized_expression "((!bVar7 && !bVar8) == bVar7)" ( (binary_expression "(!bVar7 && !bVar8) == bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier) )) (compound_statement "{\n    this->o_ = 1;\n    goto LAB_000f1a06;\n  }" { (expression_statement "this->o_ = 1;" (assignment_expression "this->o_ = 1" (field_expression "this->o_" identifier -> field_identifier) = number_literal) ;) (goto_statement "goto LAB_000f1a06;" goto statement_identifier ;) })) (expression_statement "iVar4 = __xstat64(3,__file,(stat64 *)&s);" (assignment_expression "iVar4 = __xstat64(3,__file,(stat64 *)&s)" identifier = (call_expression "__xstat64(3,__file,(stat64 *)&s)" identifier (argument_list "(3,__file,(stat64 *)&s)" ( number_literal , identifier , (cast_expression "(stat64 *)&s" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s" & identifier)) )))) ;) (if_statement "if ((iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000)) {\n    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }\n    if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;\n    iVar4 = 0x1b6;\n    if ((parameters->options_->relocatable_).value == false) {\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;\n  }" if (parenthesized_expression "((iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000))" ( (binary_expression "(iVar4 == 0) && ((s.st_mode & 0xd000) == 0x8000)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "((s.st_mode & 0xd000) == 0x8000)" ( (binary_expression "(s.st_mode & 0xd000) == 0x8000" (parenthesized_expression "(s.st_mode & 0xd000)" ( (binary_expression "s.st_mode & 0xd000" (field_expression "s.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }\n    if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;\n    iVar4 = 0x1b6;\n    if ((parameters->options_->relocatable_).value == false) {\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }" { (if_statement "if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }" if (parenthesized_expression "(s.st_size._4_4_ != 0 || (int)s.st_size != 0)" ( (binary_expression "s.st_size._4_4_ != 0 || (int)s.st_size != 0" (binary_expression "s.st_size._4_4_ != 0" (field_expression "s.st_size._4_4_" (field_expression "s.st_size" identifier . field_identifier) . field_identifier) != number_literal) || (binary_expression "(int)s.st_size != 0" (cast_expression "(int)s.st_size" ( (type_descriptor "int" primitive_type) ) (field_expression "s.st_size" identifier . field_identifier)) != number_literal)) )) (compound_statement "{\n      unlink(this->name_);\n      goto LAB_000f1a3d;\n    }" { (expression_statement "unlink(this->name_);" (call_expression "unlink(this->name_)" identifier (argument_list "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) ))) ;) (goto_statement "goto LAB_000f1a3d;" goto statement_identifier ;) })) (if_statement "if (parameters->options_ == (General_options *)0x0) goto LAB_000f1b40;" if (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)) )) (goto_statement "goto LAB_000f1b40;" goto statement_identifier ;)) (expression_statement "iVar4 = 0x1b6;" (assignment_expression "iVar4 = 0x1b6" identifier = number_literal) ;) (if_statement "if ((parameters->options_->relocatable_).value == false) {\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }" if (parenthesized_expression "((parameters->options_->relocatable_).value == false)" ( (binary_expression "(parameters->options_->relocatable_).value == false" (field_expression "(parameters->options_->relocatable_).value" (parenthesized_expression "(parameters->options_->relocatable_)" ( (field_expression "parameters->options_->relocatable_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) == false) )) (compound_statement "{\n      __mask = umask(0);\n      umask(__mask);\n      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;\n      chmod(this->name_,~__mask & s.st_mode);\n      goto LAB_000f1a3d;\n    }" { (expression_statement "__mask = umask(0);" (assignment_expression "__mask = umask(0)" identifier = (call_expression "umask(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "umask(__mask);" (call_expression "umask(__mask)" identifier (argument_list "(__mask)" ( identifier ))) ;) (expression_statement "s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;" (assignment_expression "s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode" (field_expression "s.st_mode" identifier . field_identifier) = (binary_expression "s.st_mode >> 2 & 0x49 | s.st_mode" (binary_expression "s.st_mode >> 2 & 0x49" (binary_expression "s.st_mode >> 2" (field_expression "s.st_mode" identifier . field_identifier) >> number_literal) & number_literal) | (field_expression "s.st_mode" identifier . field_identifier))) ;) (expression_statement "chmod(this->name_,~__mask & s.st_mode);" (call_expression "chmod(this->name_,~__mask & s.st_mode)" identifier (argument_list "(this->name_,~__mask & s.st_mode)" ( (field_expression "this->name_" identifier -> field_identifier) , (binary_expression "~__mask & s.st_mode" (unary_expression "~__mask" ~ identifier) & (field_expression "s.st_mode" identifier . field_identifier)) ))) ;) (goto_statement "goto LAB_000f1a3d;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;\n  }" else (compound_statement "{\nLAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }\n    iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;\n  }" { (labeled_statement "LAB_000f1a3d:\n    if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }" statement_identifier : (if_statement "if (parameters->options_ == (General_options *)0x0) {\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }" if (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)) )) (compound_statement "{\nLAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n    }" { (labeled_statement "LAB_000f1b40:\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" statement_identifier : comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;)) }))) (expression_statement "iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;" (assignment_expression "iVar4 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6" identifier = (binary_expression "(-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6" (parenthesized_expression "(-(uint)((parameters->options_->relocatable_).value == false) & 0x49)" ( (binary_expression "-(uint)((parameters->options_->relocatable_).value == false) & 0x49" (unary_expression "-(uint)((parameters->options_->relocatable_).value == false)" - (call_expression "(uint)((parameters->options_->relocatable_).value == false)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((parameters->options_->relocatable_).value == false)" ( (binary_expression "(parameters->options_->relocatable_).value == false" (field_expression "(parameters->options_->relocatable_).value" (parenthesized_expression "(parameters->options_->relocatable_)" ( (field_expression "parameters->options_->relocatable_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) == false) )))) & number_literal) )) + number_literal)) ;) }))) (ERROR "__file = (char *)Descriptors::" (assignment_expression "__file = (char *)Descriptors" identifier = (cast_expression "(char *)Descriptors" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) : :) (expression_statement "open((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,\n                                     (int)this->name_,0x242,iVar4);" (call_expression "open((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,\n                                     (int)this->name_,0x242,iVar4)" identifier (argument_list "((Descriptors *)PTR_descriptors_0038eeac,(char *)0xffffffff,\n                                     (int)this->name_,0x242,iVar4)" ( (cast_expression "(Descriptors *)PTR_descriptors_0038eeac" ( (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_" ( (type_descriptor "int" primitive_type) ) (field_expression "this->name_" identifier -> field_identifier)) , number_literal , identifier ))) ;) (if_statement "if ((int)__file < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    pcVar1 = this->name_;\n    format = (char *)gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    gold_fatal(format,pcVar1,pcVar3);\n  }" if (parenthesized_expression "((int)__file < 0)" ( (binary_expression "(int)__file < 0" (cast_expression "(int)__file" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    pcVar1 = this->name_;\n    format = (char *)gettext("%s: open: %s");\n                    /* WARNING: Subroutine does not return */\n    gold_fatal(format,pcVar1,pcVar3);\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "pcVar1 = this->name_;" (assignment_expression "pcVar1 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("%s: open: %s");" (assignment_expression "format = (char *)gettext("%s: open: %s")" identifier = (cast_expression "(char *)gettext("%s: open: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: open: %s")" identifier (argument_list "("%s: open: %s")" ( (string_literal ""%s: open: %s"" " string_content ") ))))) ;) comment (expression_statement "gold_fatal(format,pcVar1,pcVar3);" (call_expression "gold_fatal(format,pcVar1,pcVar3)" identifier (argument_list "(format,pcVar1,pcVar3)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "this->o_ = (int)__file;" (assignment_expression "this->o_ = (int)__file" (field_expression "this->o_" identifier -> field_identifier) = (cast_expression "(int)__file" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (labeled_statement "LAB_000f1a06:\n  map(this);" statement_identifier : (expression_statement "map(this);" (call_expression "map(this)" identifier (argument_list "(this)" ( identifier ))) ;)) (return_statement "return (int)__file;" return (cast_expression "(int)__file" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "void FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000f19b0(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  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "__mode_t __mask;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "stat64 local_7c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xf19b9;" (assignment_expression "uStack_14 = 0xf19b9" identifier = number_literal) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (expression_statement "bVar9 = *(char *)((int)param_1 + 0x16) == '\0';" (assignment_expression "bVar9 = *(char *)((int)param_1 + 0x16) == '\0'" identifier = (binary_expression "*(char *)((int)param_1 + 0x16) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x16)" * (cast_expression "(char *)((int)param_1 + 0x16)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x16)" ( (binary_expression "(int)param_1 + 0x16" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (!bVar9) goto LAB_000f1a06;" if (parenthesized_expression "(!bVar9)" ( (unary_expression "!bVar9" ! identifier) )) (goto_statement "goto LAB_000f1a06;" goto statement_identifier ;)) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (expression_statement "pbVar6 = (byte *)*param_1;" (assignment_expression "pbVar6 = (byte *)*param_1" identifier = (cast_expression "(byte *)*param_1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pbVar7 = &DAT_0028d758;" (assignment_expression "pbVar7 = &DAT_0028d758" identifier = (pointer_expression "&DAT_0028d758" & identifier)) ;) (do_statement "do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);" do (compound_statement "{\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  }" { (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" identifier = (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" * identifier) < (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" identifier = (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" * identifier) == (pointer_expression "*pbVar7" * identifier))) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar9)" ( identifier )) ;) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }" if (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" ( (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" ( (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" ! identifier) && (unary_expression "!bVar9" ! identifier)) )) == identifier) )) (compound_statement "{\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }" { (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (goto_statement "goto LAB_000f1a06;" goto statement_identifier ;) })) (expression_statement "iVar5 = __xstat64(3,(char *)*param_1,&local_7c);" (assignment_expression "iVar5 = __xstat64(3,(char *)*param_1,&local_7c)" identifier = (call_expression "__xstat64(3,(char *)*param_1,&local_7c)" identifier (argument_list "(3,(char *)*param_1,&local_7c)" ( number_literal , (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (pointer_expression "&local_7c" & identifier) )))) ;) (if_statement "if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" if (parenthesized_expression "((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000))" ( (binary_expression "(iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)" (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) && (parenthesized_expression "((local_7c.st_mode & 0xd000) == 0x8000)" ( (binary_expression "(local_7c.st_mode & 0xd000) == 0x8000" (parenthesized_expression "(local_7c.st_mode & 0xd000)" ( (binary_expression "local_7c.st_mode & 0xd000" (field_expression "local_7c.st_mode" identifier . field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }" { (if_statement "if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }" if (parenthesized_expression "(local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0)" ( (binary_expression "local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0" (binary_expression "local_7c.st_size._4_4_ != 0" (field_expression "local_7c.st_size._4_4_" (field_expression "local_7c.st_size" identifier . field_identifier) . field_identifier) != number_literal) || (binary_expression "(int)local_7c.st_size != 0" (cast_expression "(int)local_7c.st_size" ( (type_descriptor "int" primitive_type) ) (field_expression "local_7c.st_size" identifier . field_identifier)) != number_literal)) )) (compound_statement "{\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }" { (expression_statement "unlink((char *)*param_1);" (call_expression "unlink((char *)*param_1)" identifier (argument_list "((char *)*param_1)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (goto_statement "goto LAB_000f1a3d;" goto statement_identifier ;) })) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000f1b40;" goto statement_identifier ;)) (expression_statement "iVar5 = 0x1b6;" (assignment_expression "iVar5 = 0x1b6" identifier = number_literal) ;) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }" { (expression_statement "__mask = umask(0);" (assignment_expression "__mask = umask(0)" identifier = (call_expression "umask(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "umask(__mask);" (call_expression "umask(__mask)" identifier (argument_list "(__mask)" ( identifier ))) ;) (expression_statement "local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;" (assignment_expression "local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode" (field_expression "local_7c.st_mode" identifier . field_identifier) = (binary_expression "local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode" (binary_expression "local_7c.st_mode >> 2 & 0x49" (binary_expression "local_7c.st_mode >> 2" (field_expression "local_7c.st_mode" identifier . field_identifier) >> number_literal) & number_literal) | (field_expression "local_7c.st_mode" identifier . field_identifier))) ;) (expression_statement "chmod((char *)*param_1,~__mask & local_7c.st_mode);" (call_expression "chmod((char *)*param_1,~__mask & local_7c.st_mode)" identifier (argument_list "((char *)*param_1,~__mask & local_7c.st_mode)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (binary_expression "~__mask & local_7c.st_mode" (unary_expression "~__mask" ~ identifier) & (field_expression "local_7c.st_mode" identifier . field_identifier)) ))) ;) (goto_statement "goto LAB_000f1a3d;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" else (compound_statement "{\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" { (labeled_statement "LAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" statement_identifier : (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" { (labeled_statement "LAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);" statement_identifier : (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",&DAT_0038f378)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , (pointer_expression "&DAT_0038f378" & identifier) ))) ;)) }))) (expression_statement "iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;" (assignment_expression "iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6" identifier = (binary_expression "(-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6" (parenthesized_expression "(-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49)" ( (binary_expression "-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49" (unary_expression "-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" - (call_expression "(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )))) & number_literal) )) + number_literal)) ;) }))) (expression_statement "iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);" (assignment_expression "iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" identifier = (call_expression "FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" identifier (argument_list "(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" ( identifier , number_literal , (pointer_expression "*param_1" * identifier) , number_literal , identifier )))) ;) (if_statement "if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" identifier = (call_expression "strerror(*piVar2)" identifier (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) )))) ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar4 = gettext("%s: open: %s");" (assignment_expression "uVar4 = gettext("%s: open: %s")" identifier = (call_expression "gettext("%s: open: %s")" identifier (argument_list "("%s: open: %s")" ( (string_literal ""%s: open: %s"" " string_content ") )))) ;) (expression_statement "FUN_00065450(uVar4,uVar1,pcVar3);" (call_expression "FUN_00065450(uVar4,uVar1,pcVar3)" identifier (argument_list "(uVar4,uVar1,pcVar3)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_000f1a06:\n  FUN_000f1900(param_1);" statement_identifier : (expression_statement "FUN_000f1900(param_1);" (call_expression "FUN_000f1900(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) != LIT) || (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) != LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (binary_expression (binary_expression (field_expression IDENT . field_identifier) >> LIT) & LIT) | (field_expression IDENT . field_identifier))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (binary_expression (unary_expression ~ IDENT) & (field_expression IDENT . field_identifier)) ))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , (pointer_expression & IDENT) ))) ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == (char_literal ' escape_sequence ')) )))) & LIT) )) + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * IDENT) , LIT , 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) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000f19b0(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000f19b0") (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  __mode_t __mask;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int iVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  bool bVar8;\n  bool bVar9;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xf19b9;\n  bVar8 = false;\n  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';\n  param_1[2] = param_2;\n  param_1[3] = param_3;\n  if (!bVar9) goto LAB_000f1a06;\n  iVar5 = 2;\n  pbVar6 = (byte *)*param_1;\n  pbVar7 = &DAT_0028d758;\n  do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);\n  if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }\n  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);\n  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }\n  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);\n  if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }\n  param_1[1] = iVar5;\nLAB_000f1a06:\n  FUN_000f1900(param_1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "__mode_t __mask;" (type_identifier "__mode_t") (identifier "__mask") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (declaration "stat64 local_7c;" (type_identifier "stat64") (identifier "local_7c") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xf19b9;" (assignment_expression "uStack_14 = 0xf19b9" (identifier "uStack_14") (= "=") (number_literal "0xf19b9")) (; ";")) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (expression_statement "bVar9 = *(char *)((int)param_1 + 0x16) == '\0';" (assignment_expression "bVar9 = *(char *)((int)param_1 + 0x16) == '\0'" (identifier "bVar9") (= "=") (binary_expression "*(char *)((int)param_1 + 0x16) == '\0'" (pointer_expression "*(char *)((int)param_1 + 0x16)" (* "*") (cast_expression "(char *)((int)param_1 + 0x16)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x16)" (( "(") (binary_expression "(int)param_1 + 0x16" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x16")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) (; ";")) (expression_statement "param_1[2] = param_2;" (assignment_expression "param_1[2] = param_2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[3] = param_3;" (assignment_expression "param_1[3] = param_3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (!bVar9) goto LAB_000f1a06;" (if "if") (parenthesized_expression "(!bVar9)" (( "(") (unary_expression "!bVar9" (! "!") (identifier "bVar9")) () ")")) (goto_statement "goto LAB_000f1a06;" (goto "goto") (statement_identifier "LAB_000f1a06") (; ";"))) (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" (identifier "iVar5") (= "=") (number_literal "2")) (; ";")) (expression_statement "pbVar6 = (byte *)*param_1;" (assignment_expression "pbVar6 = (byte *)*param_1" (identifier "pbVar6") (= "=") (cast_expression "(byte *)*param_1" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "pbVar7 = &DAT_0028d758;" (assignment_expression "pbVar7 = &DAT_0028d758" (identifier "pbVar7") (= "=") (pointer_expression "&DAT_0028d758" (& "&") (identifier "DAT_0028d758"))) (; ";")) (do_statement "do {\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  } while (bVar9);" (do "do") (compound_statement "{\n    if (iVar5 == 0) break;\n    iVar5 = iVar5 + -1;\n    bVar8 = *pbVar6 < *pbVar7;\n    bVar9 = *pbVar6 == *pbVar7;\n    pbVar6 = pbVar6 + 1;\n    pbVar7 = pbVar7 + 1;\n  }" ({ "{") (if_statement "if (iVar5 == 0) break;" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar5 = iVar5 + -1;" (assignment_expression "iVar5 = iVar5 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar8 = *pbVar6 < *pbVar7;" (assignment_expression "bVar8 = *pbVar6 < *pbVar7" (identifier "bVar8") (= "=") (binary_expression "*pbVar6 < *pbVar7" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (< "<") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")))) (; ";")) (expression_statement "bVar9 = *pbVar6 == *pbVar7;" (assignment_expression "bVar9 = *pbVar6 == *pbVar7" (identifier "bVar9") (= "=") (binary_expression "*pbVar6 == *pbVar7" (pointer_expression "*pbVar6" (* "*") (identifier "pbVar6")) (== "==") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7")))) (; ";")) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar7 = pbVar7 + 1;" (assignment_expression "pbVar7 = pbVar7 + 1" (identifier "pbVar7") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (; ";")) (if_statement "if ((!bVar8 && !bVar9) == bVar8) {\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }" (if "if") (parenthesized_expression "((!bVar8 && !bVar9) == bVar8)" (( "(") (binary_expression "(!bVar8 && !bVar9) == bVar8" (parenthesized_expression "(!bVar8 && !bVar9)" (( "(") (binary_expression "!bVar8 && !bVar9" (unary_expression "!bVar8" (! "!") (identifier "bVar8")) (&& "&&") (unary_expression "!bVar9" (! "!") (identifier "bVar9"))) () ")")) (== "==") (identifier "bVar8")) () ")")) (compound_statement "{\n    param_1[1] = 1;\n    goto LAB_000f1a06;\n  }" ({ "{") (expression_statement "param_1[1] = 1;" (assignment_expression "param_1[1] = 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000f1a06;" (goto "goto") (statement_identifier "LAB_000f1a06") (; ";")) (} "}"))) (expression_statement "iVar5 = __xstat64(3,(char *)*param_1,&local_7c);" (assignment_expression "iVar5 = __xstat64(3,(char *)*param_1,&local_7c)" (identifier "iVar5") (= "=") (call_expression "__xstat64(3,(char *)*param_1,&local_7c)" (identifier "__xstat64") (argument_list "(3,(char *)*param_1,&local_7c)" (( "(") (number_literal "3") (, ",") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (pointer_expression "&local_7c" (& "&") (identifier "local_7c")) () ")")))) (; ";")) (if_statement "if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }\n  else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" (if "if") (parenthesized_expression "((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000))" (( "(") (binary_expression "(iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)" (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((local_7c.st_mode & 0xd000) == 0x8000)" (( "(") (binary_expression "(local_7c.st_mode & 0xd000) == 0x8000" (parenthesized_expression "(local_7c.st_mode & 0xd000)" (( "(") (binary_expression "local_7c.st_mode & 0xd000" (field_expression "local_7c.st_mode" (identifier "local_7c") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xd000")) () ")")) (== "==") (number_literal "0x8000")) () ")"))) () ")")) (compound_statement "{\n    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }\n    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;\n    iVar5 = 0x1b6;\n    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }\n  }" ({ "{") (if_statement "if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }" (if "if") (parenthesized_expression "(local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0)" (( "(") (binary_expression "local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0" (binary_expression "local_7c.st_size._4_4_ != 0" (field_expression "local_7c.st_size._4_4_" (field_expression "local_7c.st_size" (identifier "local_7c") (. ".") (field_identifier "st_size")) (. ".") (field_identifier "_4_4_")) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(int)local_7c.st_size != 0" (cast_expression "(int)local_7c.st_size" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "local_7c.st_size" (identifier "local_7c") (. ".") (field_identifier "st_size"))) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      unlink((char *)*param_1);\n      goto LAB_000f1a3d;\n    }" ({ "{") (expression_statement "unlink((char *)*param_1);" (call_expression "unlink((char *)*param_1)" (identifier "unlink") (argument_list "((char *)*param_1)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (goto_statement "goto LAB_000f1a3d;" (goto "goto") (statement_identifier "LAB_000f1a3d") (; ";")) (} "}"))) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;" (if "if") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f1b40;" (goto "goto") (statement_identifier "LAB_000f1b40") (; ";"))) (expression_statement "iVar5 = 0x1b6;" (assignment_expression "iVar5 = 0x1b6" (identifier "iVar5") (= "=") (number_literal "0x1b6")) (; ";")) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" (* "*") (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x318d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      __mask = umask(0);\n      umask(__mask);\n      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;\n      chmod((char *)*param_1,~__mask & local_7c.st_mode);\n      goto LAB_000f1a3d;\n    }" ({ "{") (expression_statement "__mask = umask(0);" (assignment_expression "__mask = umask(0)" (identifier "__mask") (= "=") (call_expression "umask(0)" (identifier "umask") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "umask(__mask);" (call_expression "umask(__mask)" (identifier "umask") (argument_list "(__mask)" (( "(") (identifier "__mask") () ")"))) (; ";")) (expression_statement "local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;" (assignment_expression "local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode" (field_expression "local_7c.st_mode" (identifier "local_7c") (. ".") (field_identifier "st_mode")) (= "=") (binary_expression "local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode" (binary_expression "local_7c.st_mode >> 2 & 0x49" (binary_expression "local_7c.st_mode >> 2" (field_expression "local_7c.st_mode" (identifier "local_7c") (. ".") (field_identifier "st_mode")) (>> ">>") (number_literal "2")) (& "&") (number_literal "0x49")) (| "|") (field_expression "local_7c.st_mode" (identifier "local_7c") (. ".") (field_identifier "st_mode")))) (; ";")) (expression_statement "chmod((char *)*param_1,~__mask & local_7c.st_mode);" (call_expression "chmod((char *)*param_1,~__mask & local_7c.st_mode)" (identifier "chmod") (argument_list "((char *)*param_1,~__mask & local_7c.st_mode)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "~__mask & local_7c.st_mode" (unary_expression "~__mask" (~ "~") (identifier "__mask")) (& "&") (field_expression "local_7c.st_mode" (identifier "local_7c") (. ".") (field_identifier "st_mode"))) () ")"))) (; ";")) (goto_statement "goto LAB_000f1a3d;" (goto "goto") (statement_identifier "LAB_000f1a3d") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" (else "else") (compound_statement "{\nLAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }\n    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;\n  }" ({ "{") (labeled_statement "LAB_000f1a3d:\n    if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" (statement_identifier "LAB_000f1a3d") (: ":") (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" (if "if") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);\n    }" ({ "{") (labeled_statement "LAB_000f1b40:\n                    \n      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);" (statement_identifier "LAB_000f1b40") (: ":") (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378)" (identifier "FUN_00069d00") (argument_list "("../../gold/parameters.h",0x5c,"options",&DAT_0038f378)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (pointer_expression "&DAT_0038f378" (& "&") (identifier "DAT_0038f378")) () ")"))) (; ";"))) (} "}")))) (expression_statement "iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;" (assignment_expression "iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6" (identifier "iVar5") (= "=") (binary_expression "(-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6" (parenthesized_expression "(-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49)" (( "(") (binary_expression "-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49" (unary_expression "-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" (- "-") (call_expression "(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" (* "*") (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x318d)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x318d" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x318d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")))) (& "&") (number_literal "0x49")) () ")")) (+ "+") (number_literal "0x1b6"))) (; ";")) (} "}")))) (expression_statement "iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);" (assignment_expression "iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" (identifier "iVar5") (= "=") (call_expression "FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" (identifier "FUN_001a0bd0") (argument_list "(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5)" (( "(") (identifier "PTR_DAT_0038eeac") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0x242") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (iVar5 < 0) {\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = __errno_location();\n    pcVar3 = strerror(*piVar2);\n    uVar1 = *param_1;\n    uVar4 = gettext("%s: open: %s");\n                    \n    FUN_00065450(uVar4,uVar1,pcVar3);\n  }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar3 = strerror(*piVar2);" (assignment_expression "pcVar3 = strerror(*piVar2)" (identifier "pcVar3") (= "=") (call_expression "strerror(*piVar2)" (identifier "strerror") (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")")))) (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar4 = gettext("%s: open: %s");" (assignment_expression "uVar4 = gettext("%s: open: %s")" (identifier "uVar4") (= "=") (call_expression "gettext("%s: open: %s")" (identifier "gettext") (argument_list "("%s: open: %s")" (( "(") (string_literal ""%s: open: %s"" (" """) (string_content "%s: open: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00065450(uVar4,uVar1,pcVar3);" (call_expression "FUN_00065450(uVar4,uVar1,pcVar3)" (identifier "FUN_00065450") (argument_list "(uVar4,uVar1,pcVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar1") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[1] = iVar5;" (assignment_expression "param_1[1] = iVar5" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (labeled_statement "LAB_000f1a06:\n  FUN_000f1900(param_1);" (statement_identifier "LAB_000f1a06") (: ":") (expression_statement "FUN_000f1900(param_1);" (call_expression "FUN_000f1900(param_1)" (identifier "FUN_000f1900") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void open(Output_file * this, off_t file_size) */

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

{
  char *pcVar1;
  type_2 __mask;
  int *piVar2;
  char *pcVar3;
  char *format;
  int var_1;
  type_3 *var_2;
  type_3 *var_3;
  bool var_4;
  bool bVar8;
  type_4 s;
  
  var_4 = false;
  bVar8 = this->is_temporary_ == false;
  *(char **)&this->file_size_ = __file;
  *(int *)((int)&this->file_size_ + 4) = __oflag;
  if (!bVar8) goto LAB_000f1a06;
  __file = this->name_;
  var_1 = 2;
  var_2 = (type_3 *)__file;
  var_3 = &DAT_0028d758;
  do {
    if (var_1 == 0) break;
    var_1 = var_1 + -1;
    var_4 = *var_2 < *var_3;
    bVar8 = *var_2 == *var_3;
    var_2 = var_2 + 1;
    var_3 = var_3 + 1;
  } while (bVar8);
  if ((!var_4 && !bVar8) == var_4) {
    this->o_ = 1;
    goto LAB_000f1a06;
  }
  var_1 = var_5(3,__file,(type_5 *)&s);
  if ((var_1 == 0) && ((s.st_mode & 0xd000) == 0x8000)) {
    if (s.st_size._4_4_ != 0 || (int)s.st_size != 0) {
      var_6(this->name_);
      goto LAB_000f1a3d;
    }
    if (parameters->options_ == (type_6 *)0x0) goto LAB_000f1b40;
    var_1 = 0x1b6;
    if ((parameters->options_->relocatable_).value == false) {
      __mask = var_7(0);
      var_7(__mask);
      s.st_mode = s.st_mode >> 2 & 0x49 | s.st_mode;
      var_8(this->name_,~__mask & s.st_mode);
      goto LAB_000f1a3d;
    }
  }
  else {
LAB_000f1a3d:
    if (parameters->options_ == (type_6 *)0x0) {
LAB_000f1b40:
                    /* WARNING: Subroutine does not return */
      var_9("../../gold/parameters.h",0x5c,"options");
    }
    var_1 = (-(uint)((parameters->options_->relocatable_).value == false) & 0x49) + 0x1b6;
  }
  __file = (char *)type_7::function_1((type_7 *)PTR_descriptors_0038eeac,(char *)0xffffffff,
                                     (int)this->name_,0x242,var_1);
  if ((int)__file < 0) {
    piVar2 = var_10();
    pcVar3 = var_11(*piVar2);
    pcVar1 = this->name_;
    format = (char *)var_12("%s: open: %s");
                    /* WARNING: Subroutine does not return */
    var_13(format,pcVar1,pcVar3);
  }
  this->o_ = (int)__file;
LAB_000f1a06:
  var_14(this);
  return (int)__file;
}


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

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

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

{
  undefined4 uVar1;
  __mode_t __mask;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  int iVar5;
  byte *pbVar6;
  byte *pbVar7;
  bool bVar8;
  bool bVar9;
  stat64 local_7c;
  undefined4 uStack_14;
  
  uStack_14 = 0xf19b9;
  bVar8 = false;
  bVar9 = *(char *)((int)param_1 + 0x16) == '\0';
  param_1[2] = param_2;
  param_1[3] = param_3;
  if (!bVar9) goto LAB_000f1a06;
  iVar5 = 2;
  pbVar6 = (byte *)*param_1;
  pbVar7 = &DAT_0028d758;
  do {
    if (iVar5 == 0) break;
    iVar5 = iVar5 + -1;
    bVar8 = *pbVar6 < *pbVar7;
    bVar9 = *pbVar6 == *pbVar7;
    pbVar6 = pbVar6 + 1;
    pbVar7 = pbVar7 + 1;
  } while (bVar9);
  if ((!bVar8 && !bVar9) == bVar8) {
    param_1[1] = 1;
    goto LAB_000f1a06;
  }
  iVar5 = __xstat64(3,(char *)*param_1,&local_7c);
  if ((iVar5 == 0) && ((local_7c.st_mode & 0xd000) == 0x8000)) {
    if (local_7c.st_size._4_4_ != 0 || (int)local_7c.st_size != 0) {
      unlink((char *)*param_1);
      goto LAB_000f1a3d;
    }
    if (*(int *)(DAT_0038f378 + 8) == 0) goto LAB_000f1b40;
    iVar5 = 0x1b6;
    if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') {
      __mask = umask(0);
      umask(__mask);
      local_7c.st_mode = local_7c.st_mode >> 2 & 0x49 | local_7c.st_mode;
      chmod((char *)*param_1,~__mask & local_7c.st_mode);
      goto LAB_000f1a3d;
    }
  }
  else {
LAB_000f1a3d:
    if (*(int *)(DAT_0038f378 + 8) == 0) {
LAB_000f1b40:
                    /* WARNING: Subroutine does not return */
      FUN_00069d00("../../gold/parameters.h",0x5c,"options",&DAT_0038f378);
    }
    iVar5 = (-(uint)(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x318d) == '\0') & 0x49) + 0x1b6;
  }
  iVar5 = FUN_001a0bd0(PTR_DAT_0038eeac,0xffffffff,*param_1,0x242,iVar5);
  if (iVar5 < 0) {
    piVar2 = __errno_location();
    pcVar3 = strerror(*piVar2);
    uVar1 = *param_1;
    uVar4 = gettext("%s: open: %s");
                    /* WARNING: Subroutine does not return */
    FUN_00065450(uVar4,uVar1,pcVar3);
  }
  param_1[1] = iVar5;
LAB_000f1a06:
  FUN_000f1900(param_1);
  return;
}

