
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool map_no_anonymous(Output_file * this, bool writable) */

bool __thiscall gold::Output_file::map_no_anonymous(Output_file *this,bool writable)

{
  off_t *poVar1;
  int __fildes;
  char *pcVar2;
  __off64_t __len;
  __off64_t __length;
  int iVar3;
  uchar *puVar4;
  int *piVar5;
  char *pcVar6;
  char *format;
  size_t local_84;
  stat statbuf;
  
  __fildes = this->o_;
  if (__fildes - 1U < 2) {
    return false;
  }
  iVar3 = __fxstat64(3,__fildes,(stat64 *)&statbuf);
  if (iVar3 != 0) {
    return false;
  }
  if ((statbuf.st_mode & 0xf000) != 0x8000) {
    return false;
  }
  if (this->is_temporary_ != false) {
    return false;
  }
  poVar1 = &this->file_size_;
  local_84 = (size_t)*poVar1;
  __length = *poVar1;
  __len = *poVar1;
  iVar3 = 1;
  if (!writable) goto LAB_000ebec3;
  if ((int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4)) {
    iVar3 = 3;
    goto LAB_000ebec3;
  }
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  if (((((parameters->options_->posix_fallocate_).value == false) ||
       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||
      (iVar3 == 0x5f)) &&
     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)
      ))) {
    iVar3 = ftruncate64(__fildes,__length);
    if (iVar3 < 0) {
      piVar5 = __errno_location();
      iVar3 = *piVar5;
      goto LAB_000ebf82;
    }
  }
  else {
LAB_000ebf82:
    if (iVar3 != 0) {
      pcVar6 = strerror(iVar3);
      pcVar2 = this->name_;
      format = (char *)gettext("%s: %s");
                    /* WARNING: Subroutine does not return */
      gold_fatal(format,pcVar2,pcVar6);
    }
  }
  local_84 = (size_t)this->file_size_;
  iVar3 = 3;
LAB_000ebec3:
  puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);
  if (puVar4 == (uchar *)0xffffffff) {
    return false;
  }
  this->base_ = puVar4;
  this->map_is_anonymous_ = false;
  return true;
}



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

undefined4 FUN_000ebe50(undefined4 *param_1,char param_2)

{
  size_t *psVar1;
  int __fildes;
  undefined4 uVar2;
  __off64_t __len;
  __off64_t __length;
  int iVar3;
  void *pvVar4;
  int *piVar5;
  char *pcVar6;
  undefined4 uVar7;
  size_t local_84;
  stat64 local_7c;
  undefined4 uStack_14;
  
  uStack_14 = 0xebe59;
  __fildes = param_1[1];
  if (__fildes - 1U < 2) {
    return 0;
  }
  iVar3 = __fxstat64(3,__fildes,&local_7c);
  if (iVar3 != 0) {
    return 0;
  }
  if ((local_7c.st_mode & 0xf000) != 0x8000) {
    return 0;
  }
  if (*(char *)((int)param_1 + 0x16) != '\0') {
    return 0;
  }
  psVar1 = param_1 + 2;
  local_84 = *psVar1;
  __length = *(__off64_t *)psVar1;
  __len = *(__off64_t *)psVar1;
  iVar3 = 1;
  if (param_2 == '\0') goto LAB_000ebec3;
  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {
    iVar3 = 3;
    goto LAB_000ebec3;
  }
  if (*(int *)(DAT_0033f2f0 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);
  }
  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||
       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),
       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&
     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)
      ))) {
    iVar3 = ftruncate64(__fildes,__length);
    if (iVar3 < 0) {
      piVar5 = __errno_location();
      iVar3 = *piVar5;
      goto LAB_000ebf82;
    }
  }
  else {
LAB_000ebf82:
    if (iVar3 != 0) {
      pcVar6 = strerror(iVar3);
      uVar2 = *param_1;
      uVar7 = gettext("%s: %s");
                    /* WARNING: Subroutine does not return */
      FUN_00082870(uVar7,uVar2,pcVar6);
    }
  }
  local_84 = param_1[2];
  iVar3 = 3;
LAB_000ebec3:
  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);
  if (pvVar4 == (void *)0xffffffff) {
    return 0;
  }
  param_1[4] = pvVar4;
  *(undefined1 *)(param_1 + 5) = 0;
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x2531a7
SUB ESP,0x7c
MOV EDI,dword ptr [ESP + 0x90]
MOV EBP,dword ptr [ESP + 0x94]
MOV ESI,dword ptr [EDI + 0x4]
LEA EAX,[ESI + -0x1]
CMP EAX,0x1
JBE 0x000ebef8
SUB ESP,0x4
LEA EAX,[ESP + 0x14]
PUSH EAX
PUSH ESI
PUSH 0x3
CALL 0x00028910
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000ebef8
MOV EDX,dword ptr [ESP + 0x20]
AND EDX,0xf000
CMP EDX,0x8000
JNZ 0x000ebef8
CMP byte ptr [EDI + 0x16],0x0
JNZ 0x000ebef8
MOV ECX,dword ptr [EDI + 0xc]
MOV EDX,dword ptr [EDI + 0x8]
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,EBP
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,0x1
TEST CL,CL
JNZ 0x000ebf08
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH ESI
PUSH 0x1
PUSH EDX
PUSH dword ptr [ESP + 0x20]
PUSH 0x0
CALL 0x00028a50
ADD ESP,0x20
CMP EAX,-0x1
JZ 0x000ebef8
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,0x1
MOV byte ptr [EDI + 0x14],0x0
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x7c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
CMP EAX,EDX
SBB EAX,ECX
JGE 0x000ebfc8
LEA EAX,[EBX + 0x2f0]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x000ebfd2
CMP byte ptr [EAX + 0x2d5d],0x0
JZ 0x000ebf5b
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x18]
PUSH 0x0
PUSH 0x0
PUSH ESI
CALL 0x000287e0
ADD ESP,0x20
LEA EBP,[EAX + -0x16]
AND EBP,0xffffffef
JZ 0x000ebf5b
CMP EAX,0x5f
JNZ 0x000ebf82
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
PUSH 0x0
PUSH 0x0
PUSH 0x0
PUSH ESI
CALL 0x000289d0
ADD ESP,0x20
LEA EBP,[EAX + -0x16]
AND EBP,0xffffffef
JZ 0x000ebfa0
CMP EAX,0x5f
JZ 0x000ebfa0
TEST EAX,EAX
JNZ 0x000ebfe8
MOV EDX,dword ptr [EDI + 0xc]
MOV EAX,dword ptr [EDI + 0x8]
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,0x3
MOV dword ptr [ESP + 0x8],EAX
JMP 0x000ebec3
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
PUSH ESI
CALL 0x00028790
ADD ESP,0x10
TEST EAX,EAX
JNS 0x000ebf86
CALL 0x00028090
MOV EAX,dword ptr [EAX]
JMP 0x000ebf82
MOV EDX,0x3
JMP 0x000ebec3
PUSH EAX
LEA EAX,[EBX + 0xfff1efe0]
PUSH EAX
LEA EAX,[EBX + 0xfff0726d]
PUSH 0x5c
PUSH EAX
CALL 0x0008b620
SUB ESP,0xc
PUSH EAX
CALL 0x00028100
MOV ESI,dword ptr [EDI]
MOV EBP,EAX
LEA EAX,[EBX + 0xfff17835]
MOV dword ptr [ESP],EAX
CALL 0x000283c0
ADD ESP,0xc
PUSH EBP
PUSH ESI
PUSH EAX
CALL 0x00082870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000ebe50(undefined4 *param_1,char param_2)\n\n{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_000ebe50(undefined4 *param_1,char param_2)\n\n{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_000ebe50(undefined4 *param_1,char param_2)" identifier (parameter_list "(undefined4 *param_1,char param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "int __fildes;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "__off64_t __len;" type_identifier identifier ;) (declaration "__off64_t __length;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "stat64 local_7c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xebe59;" (assignment_expression "uStack_14 = 0xebe59" identifier = number_literal) ;) (expression_statement "__fildes = param_1[1];" (assignment_expression "__fildes = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (__fildes - 1U < 2) {\n    return 0;\n  }" if (parenthesized_expression "(__fildes - 1U < 2)" ( (binary_expression "__fildes - 1U < 2" (binary_expression "__fildes - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = __fxstat64(3,__fildes,&local_7c);" (assignment_expression "iVar3 = __fxstat64(3,__fildes,&local_7c)" identifier = (call_expression "__fxstat64(3,__fildes,&local_7c)" identifier (argument_list "(3,__fildes,&local_7c)" ( number_literal , identifier , (pointer_expression "&local_7c" & identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }" if (parenthesized_expression "((local_7c.st_mode & 0xf000) != 0x8000)" ( (binary_expression "(local_7c.st_mode & 0xf000) != 0x8000" (parenthesized_expression "(local_7c.st_mode & 0xf000)" ( (binary_expression "local_7c.st_mode & 0xf000" (field_expression "local_7c.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x16) != '\0')" ( (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 ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "psVar1 = param_1 + 2;" (assignment_expression "psVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "local_84 = *psVar1;" (assignment_expression "local_84 = *psVar1" identifier = (pointer_expression "*psVar1" * identifier)) ;) (expression_statement "__length = *(__off64_t *)psVar1;" (assignment_expression "__length = *(__off64_t *)psVar1" identifier = (pointer_expression "*(__off64_t *)psVar1" * (cast_expression "(__off64_t *)psVar1" ( (type_descriptor "__off64_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "__len = *(__off64_t *)psVar1;" (assignment_expression "__len = *(__off64_t *)psVar1" identifier = (pointer_expression "*(__off64_t *)psVar1" * (cast_expression "(__off64_t *)psVar1" ( (type_descriptor "__off64_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (param_2 == '\0') goto LAB_000ebec3;" if (parenthesized_expression "(param_2 == '\0')" ( (binary_expression "param_2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000ebec3;" goto statement_identifier ;)) (if_statement "if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" if (parenthesized_expression "((int)(uint)(local_84 != 0) <= (int)-param_1[3])" ( (binary_expression "(int)(uint)(local_84 != 0) <= (int)-param_1[3]" (cast_expression "(int)(uint)(local_84 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(local_84 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_84 != 0)" ( (binary_expression "local_84 != 0" identifier != number_literal) )))) <= (cast_expression "(int)-param_1[3]" ( (type_descriptor "int" primitive_type) ) (unary_expression "-param_1[3]" - (subscript_expression "param_1[3]" identifier [ number_literal ])))) )) (compound_statement "{\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" { (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" identifier = number_literal) ;) (goto_statement "goto LAB_000ebec3;" goto statement_identifier ;) })) (if_statement "if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 8) == 0" (pointer_expression "*(int *)(DAT_0033f2f0 + 8)" * (cast_expression "(int *)(DAT_0033f2f0 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 8)" ( (binary_expression "DAT_0033f2f0 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }" { comment (expression_statement "FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0008b620("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" if (parenthesized_expression "((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )))" ( (binary_expression "(((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" (parenthesized_expression "(((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f))" ( (binary_expression "((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)" (parenthesized_expression "((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0))" ( (binary_expression "(*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)" (parenthesized_expression "(*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" * (cast_expression "(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 8) + 0x2d5d" (pointer_expression "*(int *)(DAT_0033f2f0 + 8)" * (cast_expression "(int *)(DAT_0033f2f0 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 8)" ( (binary_expression "DAT_0033f2f0 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)" ( (comma_expression "iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0" (assignment_expression "iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1)" identifier = (call_expression "posix_fallocate64(__fildes,0,*(__off64_t *)psVar1)" identifier (argument_list "(__fildes,0,*(__off64_t *)psVar1)" ( identifier , number_literal , (pointer_expression "*(__off64_t *)psVar1" * (cast_expression "(__off64_t *)psVar1" ( (type_descriptor "__off64_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" ( (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" identifier - number_literal) & number_literal) )) == number_literal)) ))) )) || (parenthesized_expression "(iVar3 == 0x5f)" ( (binary_expression "iVar3 == 0x5f" identifier == number_literal) ))) )) && (parenthesized_expression "((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" ( (parenthesized_expression "(iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )" ( (comma_expression "iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (assignment_expression "iVar3 = fallocate64(__fildes,0,0,__len)" identifier = (call_expression "fallocate64(__fildes,0,0,__len)" identifier (argument_list "(__fildes,0,0,__len)" ( identifier , number_literal , number_literal , identifier )))) , (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" ( (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" identifier - number_literal) & number_literal) )) == number_literal) || (parenthesized_expression "(iVar3 == 0x5f)" ( (binary_expression "iVar3 == 0x5f" identifier == number_literal) )))) )) ))) )) (compound_statement "{\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }" { (expression_statement "iVar3 = ftruncate64(__fildes,__length);" (assignment_expression "iVar3 = ftruncate64(__fildes,__length)" identifier = (call_expression "ftruncate64(__fildes,__length)" identifier (argument_list "(__fildes,__length)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (goto_statement "goto LAB_000ebf82;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" else (compound_statement "{\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" { (labeled_statement "LAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" statement_identifier : (if_statement "if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" { (expression_statement "pcVar6 = strerror(iVar3);" (assignment_expression "pcVar6 = strerror(iVar3)" identifier = (call_expression "strerror(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar7 = gettext("%s: %s");" (assignment_expression "uVar7 = gettext("%s: %s")" identifier = (call_expression "gettext("%s: %s")" identifier (argument_list "("%s: %s")" ( (string_literal ""%s: %s"" " string_content ") )))) ;) comment (expression_statement "FUN_00082870(uVar7,uVar2,pcVar6);" (call_expression "FUN_00082870(uVar7,uVar2,pcVar6)" identifier (argument_list "(uVar7,uVar2,pcVar6)" ( identifier , identifier , identifier ))) ;) }))) }))) (expression_statement "local_84 = param_1[2];" (assignment_expression "local_84 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" identifier = number_literal) ;) (labeled_statement "LAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" statement_identifier : (expression_statement "pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" (assignment_expression "pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" identifier = (call_expression "mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" identifier (argument_list "((void *)0x0,local_84,iVar3,1,__fildes,0)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal , identifier , number_literal )))) ;)) (if_statement "if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }" if (parenthesized_expression "(pvVar4 == (void *)0xffffffff)" ( (binary_expression "pvVar4 == (void *)0xffffffff" identifier == (cast_expression "(void *)0xffffffff" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[4] = pvVar4;" (assignment_expression "param_1[4] = pvVar4" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 5) = 0" (pointer_expression "*(undefined1 *)(param_1 + 5)" * (cast_expression "(undefined1 *)(param_1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(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/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: bool map_no_anonymous(Output_file * this, bool writable) */\n\nbool __thiscall gold::Output_file::map_no_anonymous(Output_file *this,bool writable)\n\n{\n  off_t *poVar1;\n  int __fildes;\n  char *pcVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  uchar *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *format;\n  size_t local_84;\n  stat statbuf;\n  \n  __fildes = this->o_;\n  if (__fildes - 1U < 2) {\n    return false;\n  }\n  iVar3 = __fxstat64(3,__fildes,(stat64 *)&statbuf);\n  if (iVar3 != 0) {\n    return false;\n  }\n  if ((statbuf.st_mode & 0xf000) != 0x8000) {\n    return false;\n  }\n  if (this->is_temporary_ != false) {\n    return false;\n  }\n  poVar1 = &this->file_size_;\n  local_84 = (size_t)*poVar1;\n  __length = *poVar1;\n  __len = *poVar1;\n  iVar3 = 1;\n  if (!writable) goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4)) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if (((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }\n  }\n  local_84 = (size_t)this->file_size_;\n  iVar3 = 3;\nLAB_000ebec3:\n  puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (puVar4 == (uchar *)0xffffffff) {\n    return false;\n  }\n  this->base_ = puVar4;\n  this->map_is_anonymous_ = false;\n  return true;\n}\n\n" comment comment comment comment (function_definition "bool __thiscall gold::Output_file::map_no_anonymous(Output_file *this,bool writable)\n\n{\n  off_t *poVar1;\n  int __fildes;\n  char *pcVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  uchar *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *format;\n  size_t local_84;\n  stat statbuf;\n  \n  __fildes = this->o_;\n  if (__fildes - 1U < 2) {\n    return false;\n  }\n  iVar3 = __fxstat64(3,__fildes,(stat64 *)&statbuf);\n  if (iVar3 != 0) {\n    return false;\n  }\n  if ((statbuf.st_mode & 0xf000) != 0x8000) {\n    return false;\n  }\n  if (this->is_temporary_ != false) {\n    return false;\n  }\n  poVar1 = &this->file_size_;\n  local_84 = (size_t)*poVar1;\n  __length = *poVar1;\n  __len = *poVar1;\n  iVar3 = 1;\n  if (!writable) goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4)) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if (((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }\n  }\n  local_84 = (size_t)this->file_size_;\n  iVar3 = 3;\nLAB_000ebec3:\n  puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (puVar4 == (uchar *)0xffffffff) {\n    return false;\n  }\n  this->base_ = puVar4;\n  this->map_is_anonymous_ = false;\n  return true;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_file::" identifier : : identifier : :) (function_declarator "map_no_anonymous(Output_file *this,bool writable)" identifier (parameter_list "(Output_file *this,bool writable)" ( (parameter_declaration "Output_file *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "bool writable" primitive_type identifier) ))) (compound_statement "{\n  off_t *poVar1;\n  int __fildes;\n  char *pcVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  uchar *puVar4;\n  int *piVar5;\n  char *pcVar6;\n  char *format;\n  size_t local_84;\n  stat statbuf;\n  \n  __fildes = this->o_;\n  if (__fildes - 1U < 2) {\n    return false;\n  }\n  iVar3 = __fxstat64(3,__fildes,(stat64 *)&statbuf);\n  if (iVar3 != 0) {\n    return false;\n  }\n  if ((statbuf.st_mode & 0xf000) != 0x8000) {\n    return false;\n  }\n  if (this->is_temporary_ != false) {\n    return false;\n  }\n  poVar1 = &this->file_size_;\n  local_84 = (size_t)*poVar1;\n  __length = *poVar1;\n  __len = *poVar1;\n  iVar3 = 1;\n  if (!writable) goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4)) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if (((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }\n  }\n  local_84 = (size_t)this->file_size_;\n  iVar3 = 3;\nLAB_000ebec3:\n  puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (puVar4 == (uchar *)0xffffffff) {\n    return false;\n  }\n  this->base_ = puVar4;\n  this->map_is_anonymous_ = false;\n  return true;\n}" { (declaration "off_t *poVar1;" type_identifier (pointer_declarator "*poVar1" * identifier) ;) (declaration "int __fildes;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "__off64_t __len;" type_identifier identifier ;) (declaration "__off64_t __length;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "stat statbuf;" type_identifier identifier ;) (expression_statement "__fildes = this->o_;" (assignment_expression "__fildes = this->o_" identifier = (field_expression "this->o_" identifier -> field_identifier)) ;) (if_statement "if (__fildes - 1U < 2) {\n    return false;\n  }" if (parenthesized_expression "(__fildes - 1U < 2)" ( (binary_expression "__fildes - 1U < 2" (binary_expression "__fildes - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar3 = __fxstat64(3,__fildes,(stat64 *)&statbuf);" (assignment_expression "iVar3 = __fxstat64(3,__fildes,(stat64 *)&statbuf)" identifier = (call_expression "__fxstat64(3,__fildes,(stat64 *)&statbuf)" identifier (argument_list "(3,__fildes,(stat64 *)&statbuf)" ( number_literal , identifier , (cast_expression "(stat64 *)&statbuf" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&statbuf" & identifier)) )))) ;) (if_statement "if (iVar3 != 0) {\n    return false;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (if_statement "if ((statbuf.st_mode & 0xf000) != 0x8000) {\n    return false;\n  }" if (parenthesized_expression "((statbuf.st_mode & 0xf000) != 0x8000)" ( (binary_expression "(statbuf.st_mode & 0xf000) != 0x8000" (parenthesized_expression "(statbuf.st_mode & 0xf000)" ( (binary_expression "statbuf.st_mode & 0xf000" (field_expression "statbuf.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (if_statement "if (this->is_temporary_ != false) {\n    return false;\n  }" if (parenthesized_expression "(this->is_temporary_ != false)" ( (binary_expression "this->is_temporary_ != false" (field_expression "this->is_temporary_" identifier -> field_identifier) != false) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "poVar1 = &this->file_size_;" (assignment_expression "poVar1 = &this->file_size_" identifier = (pointer_expression "&this->file_size_" & (field_expression "this->file_size_" identifier -> field_identifier))) ;) (expression_statement "local_84 = (size_t)*poVar1;" (assignment_expression "local_84 = (size_t)*poVar1" identifier = (cast_expression "(size_t)*poVar1" ( (type_descriptor "size_t" primitive_type) ) (pointer_expression "*poVar1" * identifier))) ;) (expression_statement "__length = *poVar1;" (assignment_expression "__length = *poVar1" identifier = (pointer_expression "*poVar1" * identifier)) ;) (expression_statement "__len = *poVar1;" (assignment_expression "__len = *poVar1" identifier = (pointer_expression "*poVar1" * identifier)) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (!writable) goto LAB_000ebec3;" if (parenthesized_expression "(!writable)" ( (unary_expression "!writable" ! identifier) )) (goto_statement "goto LAB_000ebec3;" goto statement_identifier ;)) (if_statement "if ((int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4)) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" if (parenthesized_expression "((int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4))" ( (binary_expression "(int)(uint)(local_84 != 0) <= -*(int *)((int)&this->file_size_ + 4)" (cast_expression "(int)(uint)(local_84 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(local_84 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_84 != 0)" ( (binary_expression "local_84 != 0" identifier != number_literal) )))) <= (unary_expression "-*(int *)((int)&this->file_size_ + 4)" - (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) )))))) )) (compound_statement "{\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" { (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" identifier = number_literal) ;) (goto_statement "goto LAB_000ebec3;" goto statement_identifier ;) })) (if_statement "if (parameters->options_ == (General_options *)0x0) {\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 "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" { 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 ") ))) ;) })) (if_statement "if (((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }\n  }" if (parenthesized_expression "(((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )))" ( (binary_expression "((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" (parenthesized_expression "((((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f))" ( (binary_expression "(((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)) ||\n      (iVar3 == 0x5f)" (parenthesized_expression "(((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0))" ( (binary_expression "((parameters->options_->posix_fallocate_).value == false) ||\n       (iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)" (parenthesized_expression "((parameters->options_->posix_fallocate_).value == false)" ( (binary_expression "(parameters->options_->posix_fallocate_).value == false" (field_expression "(parameters->options_->posix_fallocate_).value" (parenthesized_expression "(parameters->options_->posix_fallocate_)" ( (field_expression "parameters->options_->posix_fallocate_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) == false) )) || (parenthesized_expression "(iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0)" ( (comma_expression "iVar3 = posix_fallocate64(__fildes,0,*poVar1), (iVar3 - 0x16U & 0xffffffef) == 0" (assignment_expression "iVar3 = posix_fallocate64(__fildes,0,*poVar1)" identifier = (call_expression "posix_fallocate64(__fildes,0,*poVar1)" identifier (argument_list "(__fildes,0,*poVar1)" ( identifier , number_literal , (pointer_expression "*poVar1" * identifier) )))) , (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" ( (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" identifier - number_literal) & number_literal) )) == number_literal)) ))) )) || (parenthesized_expression "(iVar3 == 0x5f)" ( (binary_expression "iVar3 == 0x5f" identifier == number_literal) ))) )) && (parenthesized_expression "((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" ( (parenthesized_expression "(iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )" ( (comma_expression "iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (assignment_expression "iVar3 = fallocate64(__fildes,0,0,__len)" identifier = (call_expression "fallocate64(__fildes,0,0,__len)" identifier (argument_list "(__fildes,0,0,__len)" ( identifier , number_literal , number_literal , identifier )))) , (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" ( (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" identifier - number_literal) & number_literal) )) == number_literal) || (parenthesized_expression "(iVar3 == 0x5f)" ( (binary_expression "iVar3 == 0x5f" identifier == number_literal) )))) )) ))) )) (compound_statement "{\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }" { (expression_statement "iVar3 = ftruncate64(__fildes,__length);" (assignment_expression "iVar3 = ftruncate64(__fildes,__length)" identifier = (call_expression "ftruncate64(__fildes,__length)" identifier (argument_list "(__fildes,__length)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (goto_statement "goto LAB_000ebf82;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }\n  }" else (compound_statement "{\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }\n  }" { (labeled_statement "LAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }" statement_identifier : (if_statement "if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar6 = strerror(iVar3);\n      pcVar2 = this->name_;\n      format = (char *)gettext("%s: %s");\n                    /* WARNING: Subroutine does not return */\n      gold_fatal(format,pcVar2,pcVar6);\n    }" { (expression_statement "pcVar6 = strerror(iVar3);" (assignment_expression "pcVar6 = strerror(iVar3)" identifier = (call_expression "strerror(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "pcVar2 = this->name_;" (assignment_expression "pcVar2 = this->name_" identifier = (field_expression "this->name_" identifier -> field_identifier)) ;) (expression_statement "format = (char *)gettext("%s: %s");" (assignment_expression "format = (char *)gettext("%s: %s")" identifier = (cast_expression "(char *)gettext("%s: %s")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("%s: %s")" identifier (argument_list "("%s: %s")" ( (string_literal ""%s: %s"" " string_content ") ))))) ;) comment (expression_statement "gold_fatal(format,pcVar2,pcVar6);" (call_expression "gold_fatal(format,pcVar2,pcVar6)" identifier (argument_list "(format,pcVar2,pcVar6)" ( identifier , identifier , identifier ))) ;) }))) }))) (expression_statement "local_84 = (size_t)this->file_size_;" (assignment_expression "local_84 = (size_t)this->file_size_" identifier = (cast_expression "(size_t)this->file_size_" ( (type_descriptor "size_t" primitive_type) ) (field_expression "this->file_size_" identifier -> field_identifier))) ;) (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" identifier = number_literal) ;) (labeled_statement "LAB_000ebec3:\n  puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" statement_identifier : (expression_statement "puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" (assignment_expression "puVar4 = (uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" identifier = (cast_expression "(uchar *)mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" identifier (argument_list "((void *)0x0,local_84,iVar3,1,__fildes,0)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal , identifier , number_literal ))))) ;)) (if_statement "if (puVar4 == (uchar *)0xffffffff) {\n    return false;\n  }" if (parenthesized_expression "(puVar4 == (uchar *)0xffffffff)" ( (binary_expression "puVar4 == (uchar *)0xffffffff" identifier == (cast_expression "(uchar *)0xffffffff" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (expression_statement "this->base_ = puVar4;" (assignment_expression "this->base_ = puVar4" (field_expression "this->base_" identifier -> field_identifier) = identifier) ;) (expression_statement "this->map_is_anonymous_ = false;" (assignment_expression "this->map_is_anonymous_ = false" (field_expression "this->map_is_anonymous_" identifier -> field_identifier) = false) ;) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 FUN_000ebe50(undefined4 *param_1,char param_2)\n\n{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_000ebe50(undefined4 *param_1,char param_2)\n\n{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_000ebe50(undefined4 *param_1,char param_2)" identifier (parameter_list "(undefined4 *param_1,char param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char param_2" primitive_type identifier) ))) (compound_statement "{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "int __fildes;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "__off64_t __len;" type_identifier identifier ;) (declaration "__off64_t __length;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "size_t local_84;" primitive_type identifier ;) (declaration "stat64 local_7c;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xebe59;" (assignment_expression "uStack_14 = 0xebe59" identifier = number_literal) ;) (expression_statement "__fildes = param_1[1];" (assignment_expression "__fildes = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (__fildes - 1U < 2) {\n    return 0;\n  }" if (parenthesized_expression "(__fildes - 1U < 2)" ( (binary_expression "__fildes - 1U < 2" (binary_expression "__fildes - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar3 = __fxstat64(3,__fildes,&local_7c);" (assignment_expression "iVar3 = __fxstat64(3,__fildes,&local_7c)" identifier = (call_expression "__fxstat64(3,__fildes,&local_7c)" identifier (argument_list "(3,__fildes,&local_7c)" ( number_literal , identifier , (pointer_expression "&local_7c" & identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }" if (parenthesized_expression "((local_7c.st_mode & 0xf000) != 0x8000)" ( (binary_expression "(local_7c.st_mode & 0xf000) != 0x8000" (parenthesized_expression "(local_7c.st_mode & 0xf000)" ( (binary_expression "local_7c.st_mode & 0xf000" (field_expression "local_7c.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }" if (parenthesized_expression "(*(char *)((int)param_1 + 0x16) != '\0')" ( (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 ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "psVar1 = param_1 + 2;" (assignment_expression "psVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "local_84 = *psVar1;" (assignment_expression "local_84 = *psVar1" identifier = (pointer_expression "*psVar1" * identifier)) ;) (expression_statement "__length = *(__off64_t *)psVar1;" (assignment_expression "__length = *(__off64_t *)psVar1" identifier = (pointer_expression "*(__off64_t *)psVar1" * (cast_expression "(__off64_t *)psVar1" ( (type_descriptor "__off64_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "__len = *(__off64_t *)psVar1;" (assignment_expression "__len = *(__off64_t *)psVar1" identifier = (pointer_expression "*(__off64_t *)psVar1" * (cast_expression "(__off64_t *)psVar1" ( (type_descriptor "__off64_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) (if_statement "if (param_2 == '\0') goto LAB_000ebec3;" if (parenthesized_expression "(param_2 == '\0')" ( (binary_expression "param_2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000ebec3;" goto statement_identifier ;)) (if_statement "if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" if (parenthesized_expression "((int)(uint)(local_84 != 0) <= (int)-param_1[3])" ( (binary_expression "(int)(uint)(local_84 != 0) <= (int)-param_1[3]" (cast_expression "(int)(uint)(local_84 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(local_84 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_84 != 0)" ( (binary_expression "local_84 != 0" identifier != number_literal) )))) <= (cast_expression "(int)-param_1[3]" ( (type_descriptor "int" primitive_type) ) (unary_expression "-param_1[3]" - (subscript_expression "param_1[3]" identifier [ number_literal ])))) )) (compound_statement "{\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" { (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" identifier = number_literal) ;) (goto_statement "goto LAB_000ebec3;" goto statement_identifier ;) })) (if_statement "if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }" if (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 8) == 0" (pointer_expression "*(int *)(DAT_0033f2f0 + 8)" * (cast_expression "(int *)(DAT_0033f2f0 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 8)" ( (binary_expression "DAT_0033f2f0 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }" { (expression_statement "FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0008b620("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })) (if_statement "if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" if (parenthesized_expression "((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )))" ( (binary_expression "(((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" (parenthesized_expression "(((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f))" ( (binary_expression "((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)" (parenthesized_expression "((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0))" ( (binary_expression "(*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)" (parenthesized_expression "(*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" * (cast_expression "(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" ( (binary_expression "*(int *)(DAT_0033f2f0 + 8) + 0x2d5d" (pointer_expression "*(int *)(DAT_0033f2f0 + 8)" * (cast_expression "(int *)(DAT_0033f2f0 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0033f2f0 + 8)" ( (binary_expression "DAT_0033f2f0 + 8" identifier + number_literal) )))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)" ( (comma_expression "iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0" (assignment_expression "iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1)" identifier = (call_expression "posix_fallocate64(__fildes,0,*(__off64_t *)psVar1)" identifier (argument_list "(__fildes,0,*(__off64_t *)psVar1)" ( identifier , number_literal , (pointer_expression "*(__off64_t *)psVar1" * (cast_expression "(__off64_t *)psVar1" ( (type_descriptor "__off64_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" ( (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" identifier - number_literal) & number_literal) )) == number_literal)) ))) )) || (parenthesized_expression "(iVar3 == 0x5f)" ( (binary_expression "iVar3 == 0x5f" identifier == number_literal) ))) )) && (parenthesized_expression "((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" ( (parenthesized_expression "(iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )" ( (comma_expression "iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (assignment_expression "iVar3 = fallocate64(__fildes,0,0,__len)" identifier = (call_expression "fallocate64(__fildes,0,0,__len)" identifier (argument_list "(__fildes,0,0,__len)" ( identifier , number_literal , number_literal , identifier )))) , (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" ( (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" identifier - number_literal) & number_literal) )) == number_literal) || (parenthesized_expression "(iVar3 == 0x5f)" ( (binary_expression "iVar3 == 0x5f" identifier == number_literal) )))) )) ))) )) (compound_statement "{\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }" { (expression_statement "iVar3 = ftruncate64(__fildes,__length);" (assignment_expression "iVar3 = ftruncate64(__fildes,__length)" identifier = (call_expression "ftruncate64(__fildes,__length)" identifier (argument_list "(__fildes,__length)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (goto_statement "goto LAB_000ebf82;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" else (compound_statement "{\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" { (labeled_statement "LAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" statement_identifier : (if_statement "if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" { (expression_statement "pcVar6 = strerror(iVar3);" (assignment_expression "pcVar6 = strerror(iVar3)" identifier = (call_expression "strerror(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar7 = gettext("%s: %s");" (assignment_expression "uVar7 = gettext("%s: %s")" identifier = (call_expression "gettext("%s: %s")" identifier (argument_list "("%s: %s")" ( (string_literal ""%s: %s"" " string_content ") )))) ;) (expression_statement "FUN_00082870(uVar7,uVar2,pcVar6);" (call_expression "FUN_00082870(uVar7,uVar2,pcVar6)" identifier (argument_list "(uVar7,uVar2,pcVar6)" ( identifier , identifier , identifier ))) ;) }))) }))) (expression_statement "local_84 = param_1[2];" (assignment_expression "local_84 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" identifier = number_literal) ;) (labeled_statement "LAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" statement_identifier : (expression_statement "pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" (assignment_expression "pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" identifier = (call_expression "mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" identifier (argument_list "((void *)0x0,local_84,iVar3,1,__fildes,0)" ( (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , number_literal , identifier , number_literal )))) ;)) (if_statement "if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }" if (parenthesized_expression "(pvVar4 == (void *)0xffffffff)" ( (binary_expression "pvVar4 == (void *)0xffffffff" identifier == (cast_expression "(void *)0xffffffff" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1[4] = pvVar4;" (assignment_expression "param_1[4] = pvVar4" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 5) = 0" (pointer_expression "*(undefined1 *)(param_1 + 5)" * (cast_expression "(undefined1 *)(param_1 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 5)" ( (binary_expression "param_1 + 5" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (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 ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) <= (cast_expression ( (type_descriptor TYPE) ) (unary_expression - (subscript_expression IDENT [ LIT ])))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (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 ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) == LIT)) ))) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT )))) , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) )) == LIT) || (parenthesized_expression ( (binary_expression IDENT == LIT) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , IDENT , IDENT , LIT , IDENT , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000ebe50(undefined4 *param_1,char param_2)\n\n{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000ebe50(undefined4 *param_1,char param_2)" (identifier "FUN_000ebe50") (parameter_list "(undefined4 *param_1,char param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) () ")"))) (compound_statement "{\n  size_t *psVar1;\n  int __fildes;\n  undefined4 uVar2;\n  __off64_t __len;\n  __off64_t __length;\n  int iVar3;\n  void *pvVar4;\n  int *piVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  size_t local_84;\n  stat64 local_7c;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xebe59;\n  __fildes = param_1[1];\n  if (__fildes - 1U < 2) {\n    return 0;\n  }\n  iVar3 = __fxstat64(3,__fildes,&local_7c);\n  if (iVar3 != 0) {\n    return 0;\n  }\n  if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }\n  if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }\n  psVar1 = param_1 + 2;\n  local_84 = *psVar1;\n  __length = *(__off64_t *)psVar1;\n  __len = *(__off64_t *)psVar1;\n  iVar3 = 1;\n  if (param_2 == '\0') goto LAB_000ebec3;\n  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }\n  if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }\n  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }\n  local_84 = param_1[2];\n  iVar3 = 3;\nLAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);\n  if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }\n  param_1[4] = pvVar4;\n  *(undefined1 *)(param_1 + 5) = 0;\n  return 1;\n}" ({ "{") (declaration "size_t *psVar1;" (primitive_type "size_t") (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "int __fildes;" (primitive_type "int") (identifier "__fildes") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "__off64_t __len;" (type_identifier "__off64_t") (identifier "__len") (; ";")) (declaration "__off64_t __length;" (type_identifier "__off64_t") (identifier "__length") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "void *pvVar4;" (primitive_type "void") (pointer_declarator "*pvVar4" (* "*") (identifier "pvVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "size_t local_84;" (primitive_type "size_t") (identifier "local_84") (; ";")) (declaration "stat64 local_7c;" (type_identifier "stat64") (identifier "local_7c") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xebe59;" (assignment_expression "uStack_14 = 0xebe59" (identifier "uStack_14") (= "=") (number_literal "0xebe59")) (; ";")) (expression_statement "__fildes = param_1[1];" (assignment_expression "__fildes = param_1[1]" (identifier "__fildes") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (__fildes - 1U < 2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(__fildes - 1U < 2)" (( "(") (binary_expression "__fildes - 1U < 2" (binary_expression "__fildes - 1U" (identifier "__fildes") (- "-") (number_literal "1U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar3 = __fxstat64(3,__fildes,&local_7c);" (assignment_expression "iVar3 = __fxstat64(3,__fildes,&local_7c)" (identifier "iVar3") (= "=") (call_expression "__fxstat64(3,__fildes,&local_7c)" (identifier "__fxstat64") (argument_list "(3,__fildes,&local_7c)" (( "(") (number_literal "3") (, ",") (identifier "__fildes") (, ",") (pointer_expression "&local_7c" (& "&") (identifier "local_7c")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((local_7c.st_mode & 0xf000) != 0x8000) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((local_7c.st_mode & 0xf000) != 0x8000)" (( "(") (binary_expression "(local_7c.st_mode & 0xf000) != 0x8000" (parenthesized_expression "(local_7c.st_mode & 0xf000)" (( "(") (binary_expression "local_7c.st_mode & 0xf000" (field_expression "local_7c.st_mode" (identifier "local_7c") (. ".") (field_identifier "st_mode")) (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0x8000")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(char *)((int)param_1 + 0x16) != '\0') {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(char *)((int)param_1 + 0x16) != '\0')" (( "(") (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") (' "'"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "psVar1 = param_1 + 2;" (assignment_expression "psVar1 = param_1 + 2" (identifier "psVar1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "local_84 = *psVar1;" (assignment_expression "local_84 = *psVar1" (identifier "local_84") (= "=") (pointer_expression "*psVar1" (* "*") (identifier "psVar1"))) (; ";")) (expression_statement "__length = *(__off64_t *)psVar1;" (assignment_expression "__length = *(__off64_t *)psVar1" (identifier "__length") (= "=") (pointer_expression "*(__off64_t *)psVar1" (* "*") (cast_expression "(__off64_t *)psVar1" (( "(") (type_descriptor "__off64_t *" (type_identifier "__off64_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar1")))) (; ";")) (expression_statement "__len = *(__off64_t *)psVar1;" (assignment_expression "__len = *(__off64_t *)psVar1" (identifier "__len") (= "=") (pointer_expression "*(__off64_t *)psVar1" (* "*") (cast_expression "(__off64_t *)psVar1" (( "(") (type_descriptor "__off64_t *" (type_identifier "__off64_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar1")))) (; ";")) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" (identifier "iVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_2 == '\0') goto LAB_000ebec3;" (if "if") (parenthesized_expression "(param_2 == '\0')" (( "(") (binary_expression "param_2 == '\0'" (identifier "param_2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000ebec3;" (goto "goto") (statement_identifier "LAB_000ebec3") (; ";"))) (if_statement "if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" (if "if") (parenthesized_expression "((int)(uint)(local_84 != 0) <= (int)-param_1[3])" (( "(") (binary_expression "(int)(uint)(local_84 != 0) <= (int)-param_1[3]" (cast_expression "(int)(uint)(local_84 != 0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(local_84 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_84 != 0)" (( "(") (binary_expression "local_84 != 0" (identifier "local_84") (!= "!=") (number_literal "0")) () ")")))) (<= "<=") (cast_expression "(int)-param_1[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (unary_expression "-param_1[3]" (- "-") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))))) () ")")) (compound_statement "{\n    iVar3 = 3;\n    goto LAB_000ebec3;\n  }" ({ "{") (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" (identifier "iVar3") (= "=") (number_literal "3")) (; ";")) (goto_statement "goto LAB_000ebec3;" (goto "goto") (statement_identifier "LAB_000ebec3") (; ";")) (} "}"))) (if_statement "if (*(int *)(DAT_0033f2f0 + 8) == 0) {\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_0033f2f0 + 8) == 0" (pointer_expression "*(int *)(DAT_0033f2f0 + 8)" (* "*") (cast_expression "(int *)(DAT_0033f2f0 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0033f2f0 + 8)" (( "(") (binary_expression "DAT_0033f2f0 + 8" (identifier "DAT_0033f2f0") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);\n  }" ({ "{") (expression_statement "FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0008b620("../../gold/parameters.h",0x5c,"options",0)" (identifier "FUN_0008b620") (argument_list "("../../gold/parameters.h",0x5c,"options",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (if_statement "if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))) {\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }\n  else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" (if "if") (parenthesized_expression "((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )))" (( "(") (binary_expression "(((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&\n     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" (parenthesized_expression "(((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f))" (( "(") (binary_expression "((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)" (parenthesized_expression "((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0))" (( "(") (binary_expression "(*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||\n       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)" (parenthesized_expression "(*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" (* "*") (cast_expression "(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d)" (( "(") (binary_expression "*(int *)(DAT_0033f2f0 + 8) + 0x2d5d" (pointer_expression "*(int *)(DAT_0033f2f0 + 8)" (* "*") (cast_expression "(int *)(DAT_0033f2f0 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0033f2f0 + 8)" (( "(") (binary_expression "DAT_0033f2f0 + 8" (identifier "DAT_0033f2f0") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x2d5d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0)" (( "(") (comma_expression "iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),\n       (iVar3 - 0x16U & 0xffffffef) == 0" (assignment_expression "iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1)" (identifier "iVar3") (= "=") (call_expression "posix_fallocate64(__fildes,0,*(__off64_t *)psVar1)" (identifier "posix_fallocate64") (argument_list "(__fildes,0,*(__off64_t *)psVar1)" (( "(") (identifier "__fildes") (, ",") (number_literal "0") (, ",") (pointer_expression "*(__off64_t *)psVar1" (* "*") (cast_expression "(__off64_t *)psVar1" (( "(") (type_descriptor "__off64_t *" (type_identifier "__off64_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "psVar1"))) () ")")))) (, ",") (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" (( "(") (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" (identifier "iVar3") (- "-") (number_literal "0x16U")) (& "&") (number_literal "0xffffffef")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar3 == 0x5f)" (( "(") (binary_expression "iVar3 == 0x5f" (identifier "iVar3") (== "==") (number_literal "0x5f")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      ))" (( "(") (parenthesized_expression "(iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)\n      )" (( "(") (comma_expression "iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (assignment_expression "iVar3 = fallocate64(__fildes,0,0,__len)" (identifier "iVar3") (= "=") (call_expression "fallocate64(__fildes,0,0,__len)" (identifier "fallocate64") (argument_list "(__fildes,0,0,__len)" (( "(") (identifier "__fildes") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "__len") () ")")))) (, ",") (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)" (binary_expression "(iVar3 - 0x16U & 0xffffffef) == 0" (parenthesized_expression "(iVar3 - 0x16U & 0xffffffef)" (( "(") (binary_expression "iVar3 - 0x16U & 0xffffffef" (binary_expression "iVar3 - 0x16U" (identifier "iVar3") (- "-") (number_literal "0x16U")) (& "&") (number_literal "0xffffffef")) () ")")) (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(iVar3 == 0x5f)" (( "(") (binary_expression "iVar3 == 0x5f" (identifier "iVar3") (== "==") (number_literal "0x5f")) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = ftruncate64(__fildes,__length);\n    if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }\n  }" ({ "{") (expression_statement "iVar3 = ftruncate64(__fildes,__length);" (assignment_expression "iVar3 = ftruncate64(__fildes,__length)" (identifier "iVar3") (= "=") (call_expression "ftruncate64(__fildes,__length)" (identifier "ftruncate64") (argument_list "(__fildes,__length)" (( "(") (identifier "__fildes") (, ",") (identifier "__length") () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar5 = __errno_location();\n      iVar3 = *piVar5;\n      goto LAB_000ebf82;\n    }" ({ "{") (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" (identifier "piVar5") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" (identifier "iVar3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (goto_statement "goto LAB_000ebf82;" (goto "goto") (statement_identifier "LAB_000ebf82") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" (else "else") (compound_statement "{\nLAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }\n  }" ({ "{") (labeled_statement "LAB_000ebf82:\n    if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" (statement_identifier "LAB_000ebf82") (: ":") (if_statement "if (iVar3 != 0) {\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar6 = strerror(iVar3);\n      uVar2 = *param_1;\n      uVar7 = gettext("%s: %s");\n                    \n      FUN_00082870(uVar7,uVar2,pcVar6);\n    }" ({ "{") (expression_statement "pcVar6 = strerror(iVar3);" (assignment_expression "pcVar6 = strerror(iVar3)" (identifier "pcVar6") (= "=") (call_expression "strerror(iVar3)" (identifier "strerror") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar7 = gettext("%s: %s");" (assignment_expression "uVar7 = gettext("%s: %s")" (identifier "uVar7") (= "=") (call_expression "gettext("%s: %s")" (identifier "gettext") (argument_list "("%s: %s")" (( "(") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00082870(uVar7,uVar2,pcVar6);" (call_expression "FUN_00082870(uVar7,uVar2,pcVar6)" (identifier "FUN_00082870") (argument_list "(uVar7,uVar2,pcVar6)" (( "(") (identifier "uVar7") (, ",") (identifier "uVar2") (, ",") (identifier "pcVar6") () ")"))) (; ";")) (} "}")))) (} "}")))) (expression_statement "local_84 = param_1[2];" (assignment_expression "local_84 = param_1[2]" (identifier "local_84") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar3 = 3;" (assignment_expression "iVar3 = 3" (identifier "iVar3") (= "=") (number_literal "3")) (; ";")) (labeled_statement "LAB_000ebec3:\n  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" (statement_identifier "LAB_000ebec3") (: ":") (expression_statement "pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);" (assignment_expression "pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" (identifier "pvVar4") (= "=") (call_expression "mmap64((void *)0x0,local_84,iVar3,1,__fildes,0)" (identifier "mmap64") (argument_list "((void *)0x0,local_84,iVar3,1,__fildes,0)" (( "(") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (identifier "local_84") (, ",") (identifier "iVar3") (, ",") (number_literal "1") (, ",") (identifier "__fildes") (, ",") (number_literal "0") () ")")))) (; ";"))) (if_statement "if (pvVar4 == (void *)0xffffffff) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(pvVar4 == (void *)0xffffffff)" (( "(") (binary_expression "pvVar4 == (void *)0xffffffff" (identifier "pvVar4") (== "==") (cast_expression "(void *)0xffffffff" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1[4] = pvVar4;" (assignment_expression "param_1[4] = pvVar4" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "pvVar4")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 5) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 5) = 0" (pointer_expression "*(undefined1 *)(param_1 + 5)" (* "*") (cast_expression "(undefined1 *)(param_1 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 5)" (( "(") (binary_expression "param_1 + 5" (identifier "param_1") (+ "+") (number_literal "5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: bool map_no_anonymous(Output_file * this, bool writable) */

bool __thiscall gold::type_1::function_1(type_1 *this,bool writable)

{
  type_2 *poVar1;
  int var_1;
  char *pcVar2;
  type_3 __len;
  type_3 __length;
  int var_3;
  type_4 *var_14;
  int *piVar5;
  char *pcVar6;
  char *format;
  size_t var_4;
  type_5 statbuf;
  
  var_1 = this->o_;
  if (var_1 - 1U < 2) {
    return false;
  }
  var_3 = var_2(3,var_1,(type_6 *)&statbuf);
  if (var_3 != 0) {
    return false;
  }
  if ((statbuf.st_mode & 0xf000) != 0x8000) {
    return false;
  }
  if (this->is_temporary_ != false) {
    return false;
  }
  poVar1 = &this->file_size_;
  var_4 = (size_t)*poVar1;
  __length = *poVar1;
  __len = *poVar1;
  var_3 = 1;
  if (!writable) goto LAB_000ebec3;
  if ((int)(uint)(var_4 != 0) <= -*(int *)((int)&this->file_size_ + 4)) {
    var_3 = 3;
    goto LAB_000ebec3;
  }
  if (parameters->options_ == (type_7 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_5("../../gold/parameters.h",0x5c,"options");
  }
  if (((((parameters->options_->posix_fallocate_).value == false) ||
       (var_3 = var_6(var_1,0,*poVar1), (var_3 - 0x16U & 0xffffffef) == 0)) ||
      (var_3 == 0x5f)) &&
     ((var_3 = var_7(var_1,0,0,__len), (var_3 - 0x16U & 0xffffffef) == 0 || (var_3 == 0x5f)
      ))) {
    var_3 = var_8(var_1,__length);
    if (var_3 < 0) {
      piVar5 = var_9();
      var_3 = *piVar5;
      goto LAB_000ebf82;
    }
  }
  else {
LAB_000ebf82:
    if (var_3 != 0) {
      pcVar6 = var_10(var_3);
      pcVar2 = this->name_;
      format = (char *)var_11("%s: %s");
                    /* WARNING: Subroutine does not return */
      var_12(format,pcVar2,pcVar6);
    }
  }
  var_4 = (size_t)this->file_size_;
  var_3 = 3;
LAB_000ebec3:
  var_14 = (type_4 *)var_13((void *)0x0,var_4,var_3,1,var_1,0);
  if (var_14 == (type_4 *)0xffffffff) {
    return false;
  }
  this->base_ = var_14;
  this->map_is_anonymous_ = false;
  return true;
}


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

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

undefined4 MASKED(undefined4 *param_1,char param_2)

{
  size_t *psVar1;
  int __fildes;
  undefined4 uVar2;
  __off64_t __len;
  __off64_t __length;
  int iVar3;
  void *pvVar4;
  int *piVar5;
  char *pcVar6;
  undefined4 uVar7;
  size_t local_84;
  stat64 local_7c;
  undefined4 uStack_14;
  
  uStack_14 = 0xebe59;
  __fildes = param_1[1];
  if (__fildes - 1U < 2) {
    return 0;
  }
  iVar3 = __fxstat64(3,__fildes,&local_7c);
  if (iVar3 != 0) {
    return 0;
  }
  if ((local_7c.st_mode & 0xf000) != 0x8000) {
    return 0;
  }
  if (*(char *)((int)param_1 + 0x16) != '\0') {
    return 0;
  }
  psVar1 = param_1 + 2;
  local_84 = *psVar1;
  __length = *(__off64_t *)psVar1;
  __len = *(__off64_t *)psVar1;
  iVar3 = 1;
  if (param_2 == '\0') goto LAB_000ebec3;
  if ((int)(uint)(local_84 != 0) <= (int)-param_1[3]) {
    iVar3 = 3;
    goto LAB_000ebec3;
  }
  if (*(int *)(DAT_0033f2f0 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620("../../gold/parameters.h",0x5c,"options",0);
  }
  if ((((*(char *)(*(int *)(DAT_0033f2f0 + 8) + 0x2d5d) == '\0') ||
       (iVar3 = posix_fallocate64(__fildes,0,*(__off64_t *)psVar1),
       (iVar3 - 0x16U & 0xffffffef) == 0)) || (iVar3 == 0x5f)) &&
     ((iVar3 = fallocate64(__fildes,0,0,__len), (iVar3 - 0x16U & 0xffffffef) == 0 || (iVar3 == 0x5f)
      ))) {
    iVar3 = ftruncate64(__fildes,__length);
    if (iVar3 < 0) {
      piVar5 = __errno_location();
      iVar3 = *piVar5;
      goto LAB_000ebf82;
    }
  }
  else {
LAB_000ebf82:
    if (iVar3 != 0) {
      pcVar6 = strerror(iVar3);
      uVar2 = *param_1;
      uVar7 = gettext("%s: %s");
                    /* WARNING: Subroutine does not return */
      FUN_00082870(uVar7,uVar2,pcVar6);
    }
  }
  local_84 = param_1[2];
  iVar3 = 3;
LAB_000ebec3:
  pvVar4 = mmap64((void *)0x0,local_84,iVar3,1,__fildes,0);
  if (pvVar4 == (void *)0xffffffff) {
    return 0;
  }
  param_1[4] = pvVar4;
  *(undefined1 *)(param_1 + 5) = 0;
  return 1;
}

